more template fixes:
- version pkg_docdir - put provides in lib subsubpackage - binlib scripts are for lib subpackage
This commit is contained in:
parent
18d2312b75
commit
644d44d682
@ -1,7 +1,7 @@
|
|||||||
%define ghc_version @GHC_VERSION@
|
%define ghc_version @GHC_VERSION@
|
||||||
|
|
||||||
%define pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{name}-%{version}
|
%define pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{name}-%{version}
|
||||||
%define pkg_docdir %{_docdir}/ghc/libraries/%{name}
|
%define pkg_docdir %{_docdir}/ghc/libraries/%{name}-%{version}
|
||||||
|
|
||||||
%define build_prof 1
|
%define build_prof 1
|
||||||
%define build_doc 1
|
%define build_doc 1
|
||||||
@ -18,7 +18,6 @@ Group: *FIXME*
|
|||||||
License: BSD?
|
License: BSD?
|
||||||
URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{name}
|
URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{name}
|
||||||
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
|
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
|
||||||
Provides: %{name}-devel = %{version}-%{release}
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
# ghc has only been bootstrapped on the following archs:
|
# ghc has only been bootstrapped on the following archs:
|
||||||
ExclusiveArch: i386 x86_64 ppc
|
ExclusiveArch: i386 x86_64 ppc
|
||||||
@ -41,23 +40,23 @@ Requires(preun): ghc = %{ghc_version}
|
|||||||
Requires(postun): ghc = %{ghc_version}
|
Requires(postun): ghc = %{ghc_version}
|
||||||
|
|
||||||
%description -n ghc-%{name}
|
%description -n ghc-%{name}
|
||||||
Haskell %{name} library for ghc-%{ghc_version}. *FIXME*
|
Haskell %{name} library. *FIXME*
|
||||||
|
|
||||||
|
|
||||||
%if %{build_prof}
|
%if %{build_prof}
|
||||||
%package prof
|
%package -n ghc-%{name}-prof
|
||||||
Summary: Profiling libraries for ghc-%{name}
|
Summary: Profiling libraries for %{name}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: ghc-%{name} = %{version}-%{release}
|
Requires: ghc-%{name} = %{version}-%{release}
|
||||||
Requires: ghc-prof = %{ghc_version}
|
Requires: ghc-prof = %{ghc_version}
|
||||||
|
|
||||||
%description prof
|
%description -n ghc-%{name}-prof
|
||||||
This package contains profiling libraries for ghc %{ghc_version}.
|
This package contains profiling libraries for %{name}.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -78,44 +77,47 @@ This package contains profiling libraries for ghc %{ghc_version}.
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%cabal_install
|
%cabal_install
|
||||||
%ghc_install_scripts
|
%ghc_install_scripts
|
||||||
%ghc_gen_filelists %{name}
|
%ghc_gen_filelists ghc-%{name}
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post -n ghc-%{name}
|
||||||
%ghc_register_pkg
|
%ghc_register_pkg
|
||||||
%if %{build_doc}
|
%if %{build_doc}
|
||||||
%ghc_reindex_haddock
|
%ghc_reindex_haddock
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%preun
|
%preun -n ghc-%{name}
|
||||||
if [ "$1" -eq 0 ] ; then
|
if [ "$1" -eq 0 ] ; then
|
||||||
%ghc_unregister_pkg
|
%ghc_unregister_pkg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%postun
|
%postun -n ghc-%{name}
|
||||||
if [ "$1" -eq 0 ] ; then
|
if [ "$1" -eq 0 ] ; then
|
||||||
%if %{build_doc}
|
%if %{build_doc}
|
||||||
%ghc_reindex_haddock
|
%ghc_reindex_haddock
|
||||||
%endif
|
%endif
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%files
|
||||||
%files -f %{name}.files
|
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
|
||||||
|
%files -n ghc-%{name} -f ghc-%{name}.files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
%if %{build_doc}
|
%if %{build_doc}
|
||||||
%{pkg_docdir}
|
%{pkg_docdir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %{build_prof}
|
%if %{build_prof}
|
||||||
%files prof -f %{name}-prof.files
|
%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
%define ghc_version @GHC_VERSION@
|
%define ghc_version @GHC_VERSION@
|
||||||
|
|
||||||
%define pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{version}
|
%define pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{version}
|
||||||
%define pkg_docdir %{_docdir}/ghc/libraries/%{pkg_name}
|
%define pkg_docdir %{_docdir}/ghc/libraries/%{pkg_name}-%{version}
|
||||||
|
|
||||||
%define build_prof 1
|
%define build_prof 1
|
||||||
%define build_doc 1
|
%define build_doc 1
|
||||||
@ -44,7 +44,7 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
Requires: ghc-prof = %{ghc_version}
|
Requires: ghc-prof = %{ghc_version}
|
||||||
|
|
||||||
%description prof
|
%description prof
|
||||||
This package contains profiling libraries for ghc %{ghc_version}.
|
This package contains profiling libraries for %{name}.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
6
ghc.spec
6
ghc.spec
@ -229,6 +229,12 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 5 2008 Jens Petersen <petersen@redhat.com>
|
||||||
|
- more template fixes:
|
||||||
|
- version pkg_docdir
|
||||||
|
- put provides in lib subsubpackage
|
||||||
|
- binlib scripts are for lib subpackage
|
||||||
|
|
||||||
* Mon Dec 1 2008 Jens Petersen <petersen@redhat.com> - 6.10.1-6
|
* Mon Dec 1 2008 Jens Petersen <petersen@redhat.com> - 6.10.1-6
|
||||||
- update macros.ghc to latest proposed revised packaging guidelines:
|
- update macros.ghc to latest proposed revised packaging guidelines:
|
||||||
- use runghc
|
- use runghc
|
||||||
|
Loading…
Reference in New Issue
Block a user