From 2a45ca8be229b941f681466583951ce128b0cf96 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 21 May 2009 00:05:07 +0000 Subject: [PATCH] remove macros.ghc since they now live in ghc-rpm-macros --- ghc-rpm-macros.ghc | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 ghc-rpm-macros.ghc diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc deleted file mode 100644 index 6103094..0000000 --- a/ghc-rpm-macros.ghc +++ /dev/null @@ -1,38 +0,0 @@ -%cabal %{_bindir}/runghc Setup - -%cabal_configure \ -%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_docdir}/%{name}-%{version} --htmldir=%{ghcdocdir} --libsubdir='$compiler/$pkgid' - -%cabal_makefile \ -%cabal makefile -f cabal-rpm.mk \ -make -f cabal-rpm.mk %{_smp_mflags} \ -%{nil} - -%cabal_install %cabal copy --destdir=${RPM_BUILD_ROOT} -v - -%ghcdocdir %{_docdir}/ghc/libraries/%{?pkg_name}%{!?pkg_name:%{name}}-%{version} -%ghcpkgdir %{_libdir}/ghc-%(ghc --numeric-version)/%{?pkg_name}%{!?pkg_name:%name}-%{version} - -%ghc_gen_filelists() \ -rm -f %1-devel.files %1-prof.files %1-doc.files \ -echo '%defattr(-,root,root,-)' > %1-devel.files \ -find ${RPM_BUILD_ROOT}%{ghcpkgdir} -type d | sed 's/^/%dir /' >> %1-devel.files \ -find ${RPM_BUILD_ROOT}%{ghcpkgdir} ! \\( -type d -o -name '*_p.a' -o -name '*.p_hi' \\) >> %1-devel.files \ -echo '%defattr(-,root,root,-)' > %1-prof.files \ -find ${RPM_BUILD_ROOT}%{ghcpkgdir} \\( -name '*_p.a' -o -name '*.p_hi' \\) >> %1-prof.files \ -sed -i -e "s!${RPM_BUILD_ROOT}!!g" %1-devel.files %1-prof.files \ -echo '%defattr(-,root,root,-)' > %1-doc.files \ -echo '%{ghcdocdir}' >> %1-doc.files \ -%{nil} - -%ghc_gen_scripts %cabal register --gen-script ; %cabal unregister --gen-script - -%ghc_install_scripts install -m 755 register.sh unregister.sh ${RPM_BUILD_ROOT}%{ghcpkgdir} - -%ghc_register_pkg %{ghcpkgdir}/register.sh >/dev/null || : - -%ghc_unregister_pkg %{ghcpkgdir}/unregister.sh >/dev/null || : - -%ghc_reindex_haddock ( cd %{_docdir}/ghc/libraries && [ -x "./gen_contents_index" ] && ./gen_contents_index ) || : - -%ghc_version %(ghc --numeric-version)