rpms/ghc-haskell-src-exts/devel ghc-haskell-src-exts.spec,1.2,1.3

Conrad Meyer konradm at fedoraproject.org
Thu Mar 19 21:26:38 UTC 2009


Author: konradm

Update of /cvs/pkgs/rpms/ghc-haskell-src-exts/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15058

Modified Files:
	ghc-haskell-src-exts.spec 
Log Message:
* Thu Mar 19 2009 Conrad Meyer <konrad at tylerc.org> - 0.4.8-4
- Update to new cabal2spec template.



Index: ghc-haskell-src-exts.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ghc-haskell-src-exts/devel/ghc-haskell-src-exts.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ghc-haskell-src-exts.spec	7 Mar 2009 01:02:58 -0000	1.2
+++ ghc-haskell-src-exts.spec	19 Mar 2009 21:26:08 -0000	1.3
@@ -4,24 +4,23 @@
 %global pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{version}
 %global pkg_docdir %{_docdir}/ghc/libraries/%{pkg_name}-%{version}
 
-%bcond_without prof
 %bcond_without doc
+%bcond_without prof
 
 # ghc does not emit debug information
 %global debug_package %{nil}
 
 Name:           ghc-%{pkg_name}
 Version:        0.4.8
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Library for Manipulating Haskell source
 Group:          Development/Libraries
 License:        BSD
 URL:            http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name}
 Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Provides:       %{name}-devel = %{version}-%{release}
-# ghc has only been bootstrapped on the following archs:
-ExclusiveArch:  i386 x86_64 ppc
+# fedora ghc archs:
+ExclusiveArch:  %{ix86} x86_64 ppc alpha
 BuildRequires:  ghc = %{ghc_version}
 %if %{with doc}
 BuildRequires:  ghc-doc = %{ghc_version}
@@ -32,11 +31,8 @@
 BuildRequires:  ghc-cpphs-devel
 BuildRequires:  ghc-cpphs-prof
 BuildRequires:  happy
-Requires:       ghc = %{ghc_version}
 Requires:       cpphs
 Requires:       happy
-Requires(post): ghc = %{ghc_version}
-Requires(preun): ghc = %{ghc_version}
 
 %description
 Haskell-Source with Extensions (HSE, haskell-src-exts) is an extension
@@ -53,6 +49,18 @@
 XML syntax.
 
 
+%package devel
+Summary:        Haskell %{pkg_name} library
+Group:          Development/Libraries
+Requires:       ghc = %{ghc_version}
+Requires(post): ghc = %{ghc_version}
+Requires(preun): ghc = %{ghc_version}
+
+%description devel
+This package contains the development files for %{name}
+built for ghc-%{ghc_version}.
+
+
 %if %{with doc}
 %package doc
 Summary: Documentation for %{name}
@@ -71,12 +79,12 @@
 %package prof
 Summary: Profiling libraries for %{name}
 Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}-devel = %{version}-%{release}
 Requires: ghc-prof = %{ghc_version}
 Requires: ghc-cpphs-prof
 
 %description prof
-This package contains profiling libraries for ghc %{ghc_version}.
+This package contains profiling libraries for %{name}.
 %endif
 
 
@@ -104,7 +112,7 @@
 rm -rf $RPM_BUILD_ROOT
 
 
-%post
+%post devel
 %ghc_register_pkg
 
 
@@ -114,7 +122,7 @@
 %endif
 
 
-%preun 
+%preun devel
 if [ "$1" -eq 0 ] ; then
   %ghc_unregister_pkg
 fi
@@ -128,9 +136,10 @@
 %endif
 
 
-%files -f %{name}.files
+%files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
-%doc LICENSE
+#%%doc LICENSE
+%{_docdir}/%{name}-%{version}
 
 
 %if %{with doc}
@@ -147,6 +156,9 @@
 
 
 %changelog
+* Thu Mar 19 2009 Conrad Meyer <konrad at tylerc.org> - 0.4.8-4
+- Update to new cabal2spec template.
+
 * Mon Feb 16 2009 Conrad Meyer <konrad at tylerc.org> - 0.4.8-3
 - Update to new cabal2spec template.
 - Replace %%defines by %%globals.




More information about the fedora-extras-commits mailing list