|
|
@ -16,7 +16,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: ghc
|
|
|
|
Name: ghc
|
|
|
|
Version: 6.10.0.20081007
|
|
|
|
Version: 6.10.0.20081007
|
|
|
|
Release: 8%{?dist}
|
|
|
|
Release: 9%{?dist}
|
|
|
|
Summary: Glasgow Haskell Compilation system
|
|
|
|
Summary: Glasgow Haskell Compilation system
|
|
|
|
# See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=239713
|
|
|
|
# See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=239713
|
|
|
|
ExcludeArch: alpha ppc64
|
|
|
|
ExcludeArch: alpha ppc64
|
|
|
@ -140,9 +140,6 @@ cat rpm-dir.files rpm-lib.files > rpm-base-filelist
|
|
|
|
cat rpm-dir.files rpm-prof.files > rpm-prof-filelist
|
|
|
|
cat rpm-dir.files rpm-prof.files > rpm-prof-filelist
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# create package.conf.old
|
|
|
|
|
|
|
|
touch $RPM_BUILD_ROOT%{_libdir}/ghc-%{version}/package.conf.old
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# these are handled as alternatives
|
|
|
|
# these are handled as alternatives
|
|
|
|
for i in hsc2hs runhaskell; do
|
|
|
|
for i in hsc2hs runhaskell; do
|
|
|
|
if [ -x ${RPM_BUILD_ROOT}%{_bindir}/$i-ghc ]; then
|
|
|
|
if [ -x ${RPM_BUILD_ROOT}%{_bindir}/$i-ghc ]; then
|
|
|
@ -176,7 +173,6 @@ update-alternatives --install %{_bindir}/runhaskell runhaskell \
|
|
|
|
update-alternatives --install %{_bindir}/hsc2hs hsc2hs \
|
|
|
|
update-alternatives --install %{_bindir}/hsc2hs hsc2hs \
|
|
|
|
%{_bindir}/hsc2hs-ghc 500
|
|
|
|
%{_bindir}/hsc2hs-ghc 500
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post doc
|
|
|
|
%post doc
|
|
|
|
( cd %{_docdir}/ghc/libraries && ./gen_contents_index ) || :
|
|
|
|
( cd %{_docdir}/ghc/libraries && ./gen_contents_index ) || :
|
|
|
|
|
|
|
|
|
|
|
@ -186,7 +182,6 @@ if test "$1" = 0; then
|
|
|
|
update-alternatives --remove hsc2hs %{_bindir}/hsc2hs-ghc
|
|
|
|
update-alternatives --remove hsc2hs %{_bindir}/hsc2hs-ghc
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -f rpm-base-filelist
|
|
|
|
%files -f rpm-base-filelist
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc ANNOUNCE HACKING LICENSE README
|
|
|
|
%doc ANNOUNCE HACKING LICENSE README
|
|
|
@ -194,19 +189,17 @@ fi
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_sysconfdir}/rpm/macros.ghc
|
|
|
|
%{_sysconfdir}/rpm/macros.ghc
|
|
|
|
%config(noreplace) %{_libdir}/ghc-%{version}/package.conf
|
|
|
|
%config(noreplace) %{_libdir}/ghc-%{version}/package.conf
|
|
|
|
%ghost %{_libdir}/ghc-%{version}/package.conf.old
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{build_prof}
|
|
|
|
%if %{build_prof}
|
|
|
|
%files prof -f rpm-prof-filelist
|
|
|
|
%files prof -f rpm-prof-filelist
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{build_doc}
|
|
|
|
%if %{build_doc}
|
|
|
|
%files doc -f rpm-doc-dir.files
|
|
|
|
%files doc -f rpm-doc-dir.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_docdir}/%{name}
|
|
|
|
%dir %{_docdir}/%{name}
|
|
|
|
|
|
|
|
%{_docdir}/%{name}/LICENSE
|
|
|
|
%{_docdir}/%{name}/index.html
|
|
|
|
%{_docdir}/%{name}/index.html
|
|
|
|
%{_docdir}/%{name}/libraries/gen_contents_index
|
|
|
|
%{_docdir}/%{name}/libraries/gen_contents_index
|
|
|
|
%dir %{_docdir}/%{name}/libraries
|
|
|
|
%dir %{_docdir}/%{name}/libraries
|
|
|
@ -219,8 +212,12 @@ fi
|
|
|
|
%ghost %{_docdir}/%{name}/libraries/plus.gif
|
|
|
|
%ghost %{_docdir}/%{name}/libraries/plus.gif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu Oct 23 2008 Jens Petersen <petersen@redhat.com> - 6.10.0.20081007-9
|
|
|
|
|
|
|
|
- remove redundant --haddockdir from cabal_configure
|
|
|
|
|
|
|
|
- actually ghc-pkg no longer seems to create package.conf.old backups
|
|
|
|
|
|
|
|
- include LICENSE in doc
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 23 2008 Jens Petersen <petersen@redhat.com> - 6.10.0.20081007-8
|
|
|
|
* Thu Oct 23 2008 Jens Petersen <petersen@redhat.com> - 6.10.0.20081007-8
|
|
|
|
- need to create ghost package.conf.old for ghc-6.10
|
|
|
|
- need to create ghost package.conf.old for ghc-6.10
|
|
|
|
|
|
|
|
|
|
|
|