Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > a3d550127a0ae52012dc8475ba673183 > files > 6

ecl-12.12.1-2.mga3.src.rpm

%define name			ecl
%define version			12.12.1
%define release			%mkrel 2
%define ecllibdir		%{_libdir}/%{name}-%{version}

%define before_configure	true
%define _disable_libtoolize	%{nil}

Name:           %{name}
Version:        %{version}
Release:        %{release}
Summary:        Embeddable Common-Lisp
Group:          Development/Other
License:        LGPLv2+
URL:            http://ecls.sourceforge.net
Source:         http://switch.dl.sourceforge.net/sourceforge/ecls/%{name}-%{version}.tgz
Patch0:         ecl-12.7.1-fdr-fix-atomic_ops.patch
Patch1:         ecl-12.7.1-fdr-sighandler.patch
Patch2:         ecl-12.7.1-fdr-signal_handling_thread.patch
Patch3:         ecl-12.7.1-fdr-warnings.patch

BuildRequires:  m4
BuildRequires:  texi2html
BuildRequires:	texinfo
BuildRequires:	texlive
BuildRequires:  gmp-devel
BuildRequires:  libgc-devel
BuildRequires:  libx11-devel
BuildRequires:  pkgconfig(atomic_ops)

# ECL permits to mix C code and Lisp, so users probably want gcc and 
# devel packages of libraries used by ecl
Suggests:       gcc
Suggests:       libgc-devel
Suggests:       gmp-devel

%description
ECL (Embeddable Common-Lisp) is an interpreter of the Common-Lisp
language as described in the X3J13 Ansi specification, featuring CLOS
(Common-Lisp Object System), conditions, loops, etc, plus a translator
to C, which can produce standalone executables.

# no -devel package for header files is split off
# since they are required by the main package

%package doc
Summary:      Documentation for Embeddable Common-Lisp
Group:        Development/Other
Requires:     %{name} = %{version}-%{release}

%description doc
ECL (Embeddable Common-Lisp) is an interpreter of the Common-Lisp
language as described in the X3J13 Ansi specification, featuring CLOS
(Common-Lisp Object System), conditions, loops, etc, plus a translator
to C, which can produce standalone executables.

This package contains the documentation for ECL.

%prep
%setup -q -n %{name}-%{version}
#%patch0
#%patch1
#%patch2
#%patch3
# set rpath to the final path
perl -pi -e 's|-Wl,--rpath,~A|-Wl,--rpath,%{_libdir}/ecl|' src/configure
find -name CVS | xargs rm -rf

%build
CONFIGURE_TOP=. \
%configure \
  --enable-boehm=included \
  --enable-threads=yes \
  --with-clx \
  --with-x
# Parallel make does not work
make

# documentation build broken
#(cd build/doc; make)

%install
%makeinstall_std

# documentation build broken
#(cd build/doc; %makeinstall_std)

# install man pages without invoking broken make rules and remove wrongly
# installed files
mkdir -p %{buildroot}/%{_mandir}/man1
cp -f build/doc/ecl{,-config}.man %{buildroot}/%{_mandir}/man1
lzma %{buildroot}/%{_mandir}/man1/*
rm -f %{buildroot}%{_libdir}/{Copyright,LGPL}

rm -fr %{buildroot}%{_infodir}/dir
rm -fr %{buildroot}%{_docdir}
rm -f %{buildroot}/%{ecllibdir}/BUILD-STAMP
find %{buildroot}%{ecllibdir} -name '*.lsp' | xargs chmod 0644 ||:

%files
%{_bindir}/ecl
%{_bindir}/ecl-config
%{ecllibdir}
%{_libdir}/libecl.so*
%{_includedir}/ecl
%{_mandir}/man*/*
%doc ANNOUNCEMENT Copyright

%files doc
%doc examples


%changelog

* Fri Jan 11 2013 umeabot <umeabot> 12.12.1-2.mga3
+ Revision: 349311
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Dec 20 2012 kamil <kamil> 12.12.1-1.mga3
+ Revision: 333283
- disable Fedora patches
- update Source
- new version 12.12.1

* Mon Dec 03 2012 shlomif <shlomif> 12.7.1-1.mga3
+ Revision: 325910
- Fix build by making boehm-gc into the included one.

  + kamil <kamil>
    - import patches (P0,1,2,3) from Fedora:
      * ecl-12.7.1-fdr-fix-atomic_ops.patch
      * ecl-12.7.1-fdr-sighandler.patch
      * ecl-12.7.1-fdr-signal_handling_thread.patch
      * ecl-12.7.1-fdr-warnings.patch

* Thu Apr 14 2011 tv <tv> 11.1.1-2.mga1
+ Revision: 85434
- imported package ecl