105 lines
2.6 KiB
RPMSpec
105 lines
2.6 KiB
RPMSpec
|
%ifnarch %{ix86}
|
||
|
%define bootstrap 1
|
||
|
%endif
|
||
|
Name: ghc
|
||
|
Version: 7.6.3
|
||
|
Release: 1mamba
|
||
|
Summary: A compiler and interactive environment for the functional language Haskell.
|
||
|
Group: Applications/Development
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://www.haskell.org/ghc/
|
||
|
Source: http://www.haskell.org/ghc/dist/%{version}/ghc-%{version}-src.tar.bz2
|
||
|
Patch0: ghc-7.6.3-pkgdir.patch
|
||
|
License: BSD
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libgcc
|
||
|
BuildRequires: libgmp-devel
|
||
|
BuildRequires: libncurses-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
%if "%{bootstrap}" == "1"
|
||
|
BuildRequires: ghc-bootstrap-compiler
|
||
|
%else
|
||
|
BuildRequires: ghc
|
||
|
%endif
|
||
|
Conflicts: ghc-bootstrap-compiler
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
GHC is a state-of-the-art, open source, compiler and interactive environment for the functional language Haskell.
|
||
|
|
||
|
%debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
#-D -T
|
||
|
%patch0 -p1
|
||
|
|
||
|
%define _use_internal_dependency_generator 0
|
||
|
%define __find_provides %{_builddir}/%{name}-%{version}/find_provides.sh
|
||
|
cat > %{_builddir}/%{name}-%{version}/find_provides.sh <<_EOF
|
||
|
#! /bin/sh
|
||
|
%{_prefix}/lib/rpm/find-provides %{buildroot} %{_target_cpu} | \
|
||
|
grep -v "libffi.so"
|
||
|
exit 0
|
||
|
_EOF
|
||
|
chmod +x %{_builddir}/%{name}-%{version}/find_provides.sh
|
||
|
|
||
|
%define __find_requires %{_builddir}/%{name}-%{version}/find_requires.sh
|
||
|
cat > %{_builddir}/%{name}-%{version}/find_requires.sh <<_EOF
|
||
|
#! /bin/sh
|
||
|
%{_prefix}/lib/rpm/find-requires %{buildroot} %{_target_cpu} 2>/dev/null
|
||
|
exit 0
|
||
|
_EOF
|
||
|
chmod +x %{_builddir}/%{name}-%{version}/find_requires.sh
|
||
|
|
||
|
%build
|
||
|
#:<< __EOF
|
||
|
./configure \
|
||
|
--prefix=%{_prefix} \
|
||
|
--libdir=%{_libdir}
|
||
|
|
||
|
%make
|
||
|
#__EOF
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/ghc
|
||
|
%{_bindir}/ghc-%{version}
|
||
|
%{_bindir}/ghc-pkg
|
||
|
%{_bindir}/ghc-pkg-%{version}
|
||
|
%{_bindir}/ghci
|
||
|
%{_bindir}/ghci-%{version}
|
||
|
%{_bindir}/haddock
|
||
|
%{_bindir}/haddock-ghc-%{version}
|
||
|
%{_bindir}/hp2ps
|
||
|
%{_bindir}/hpc
|
||
|
%{_bindir}/hsc2hs
|
||
|
%{_bindir}/runghc
|
||
|
%{_bindir}/runghc-%{version}
|
||
|
%{_bindir}/runhaskell
|
||
|
%dir %{_libdir}/ghc-%{version}
|
||
|
%{_libdir}/ghc-%{version}/*
|
||
|
%dir %{_datadir}/doc/ghc
|
||
|
%dir %{_datadir}/doc/ghc/html
|
||
|
%{_datadir}/doc/ghc/html/*
|
||
|
%{_datadir}/doc/ghc/haddock.pdf
|
||
|
%{_datadir}/doc/ghc/haddock.ps
|
||
|
%{_datadir}/doc/ghc/users_guide.pdf
|
||
|
%{_datadir}/doc/ghc/users_guide.ps
|
||
|
%{_mandir}/man1/ghc.1*
|
||
|
%doc LICENSE
|
||
|
|
||
|
%changelog
|
||
|
* Sat Sep 07 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 7.6.3-1mamba
|
||
|
- package created by silvan using the webbuild interface
|