rpms/ghc/devel cabal-binlib-template.spec.in, 1.2, 1.3 cabal-lib-template.spec.in, 1.2, 1.3 ghc.spec, 1.65, 1.66

Jens Petersen petersen at fedoraproject.org
Fri Dec 5 09:50:41 UTC 2008


Author: petersen

Update of /cvs/extras/rpms/ghc/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8535

Modified Files:
	cabal-binlib-template.spec.in cabal-lib-template.spec.in 
	ghc.spec 
Log Message:
more template fixes:
  - version pkg_docdir
  - put provides in lib subsubpackage
  - binlib scripts are for lib subpackage




Index: cabal-binlib-template.spec.in
===================================================================
RCS file: /cvs/extras/rpms/ghc/devel/cabal-binlib-template.spec.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- cabal-binlib-template.spec.in	1 Dec 2008 05:46:36 -0000	1.2
+++ cabal-binlib-template.spec.in	5 Dec 2008 09:50:10 -0000	1.3
@@ -1,7 +1,7 @@
 %define ghc_version @GHC_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_doc 1
@@ -18,7 +18,6 @@
 License:        BSD?
 URL:            http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{name}
 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)
 # ghc has only been bootstrapped on the following archs:
 ExclusiveArch:  i386 x86_64 ppc
@@ -41,23 +40,23 @@
 Requires(postun): ghc = %{ghc_version}
 
 %description -n ghc-%{name}
-Haskell %{name} library for ghc-%{ghc_version}. *FIXME*
+Haskell %{name} library. *FIXME*
 
 
 %if %{build_prof}
-%package prof
-Summary: Profiling libraries for ghc-%{name}
+%package -n ghc-%{name}-prof
+Summary: Profiling libraries for %{name}
 Group: Development/Libraries
 Requires: ghc-%{name} = %{version}-%{release}
 Requires: ghc-prof = %{ghc_version}
 
-%description prof
-This package contains profiling libraries for ghc %{ghc_version}.
+%description -n ghc-%{name}-prof
+This package contains profiling libraries for %{name}.
 %endif
 
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 
 
 %build
@@ -78,44 +77,47 @@
 rm -rf $RPM_BUILD_ROOT
 %cabal_install
 %ghc_install_scripts
-%ghc_gen_filelists %{name}
+%ghc_gen_filelists ghc-%{name}
 
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 
-%post 
+%post -n ghc-%{name}
 %ghc_register_pkg
 %if %{build_doc}
 %ghc_reindex_haddock
 %endif
 
 
-%preun 
+%preun -n ghc-%{name}
 if [ "$1" -eq 0 ] ; then
   %ghc_unregister_pkg
 fi
 
 
-%postun
+%postun -n ghc-%{name}
 if [ "$1" -eq 0 ] ; then
 %if %{build_doc}
   %ghc_reindex_haddock
 %endif
 fi
 
-
-%files -f %{name}.files
+%files
 %defattr(-,root,root,-)
 %doc LICENSE
+%{_bindir}/%{name}
+
+%files -n ghc-%{name} -f ghc-%{name}.files
+%defattr(-,root,root,-)
 %if %{build_doc}
 %{pkg_docdir}
 %endif
 
 
 %if %{build_prof}
-%files prof -f %{name}-prof.files
+%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files
 %defattr(-,root,root,-)
 %endif
 


Index: cabal-lib-template.spec.in
===================================================================
RCS file: /cvs/extras/rpms/ghc/devel/cabal-lib-template.spec.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- cabal-lib-template.spec.in	1 Dec 2008 05:46:36 -0000	1.2
+++ cabal-lib-template.spec.in	5 Dec 2008 09:50:10 -0000	1.3
@@ -2,7 +2,7 @@
 %define ghc_version @GHC_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_doc 1
@@ -44,7 +44,7 @@
 Requires: ghc-prof = %{ghc_version}
 
 %description prof
-This package contains profiling libraries for ghc %{ghc_version}.
+This package contains profiling libraries for %{name}.
 %endif
 
 


Index: ghc.spec
===================================================================
RCS file: /cvs/extras/rpms/ghc/devel/ghc.spec,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- ghc.spec	1 Dec 2008 05:49:24 -0000	1.65
+++ ghc.spec	5 Dec 2008 09:50:10 -0000	1.66
@@ -229,6 +229,12 @@
 %endif
 
 %changelog
+* Fri Dec  5 2008 Jens Petersen <petersen at 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 at redhat.com> - 6.10.1-6
 - update macros.ghc to latest proposed revised packaging guidelines:
   - use runghc




More information about the fedora-extras-commits mailing list