[Fedora-haskell-list] dropping ghc_lib_package and ghc_binlib_package?
Jens Petersen
petersen at redhat.com
Mon Jun 27 06:06:24 UTC 2011
> Below you can see the diff of the .spec changes for a current open
> package review.
Here it is:
--- ghc-pcre-light.spec~ 2011-06-27 13:37:48.000000000 +0900
+++ ghc-pcre-light.spec 2011-06-27 14:34:25.000000000 +0900
@@ -9,8 +9,6 @@
expression pattern matching using the same syntax and\
semantics as Perl 5.
-%global ghc_pkg_c_deps pcre-devel
-
Name: ghc-%{pkg_name}
Version: 0.4
Release: 4%{?dist}
@@ -24,13 +22,27 @@
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: hscolour
-%{?ghc_pkg_c_deps:BuildRequires: %{ghc_pkg_c_deps}}
+BuildRequires: pcre-devel
BuildRequires: ghc-bytestring-prof
%description
%{common_description}
+%package -n ghc-%{pkg_name}-devel
+Summary: Development files for %{common_summary}
+Group: Development/Libraries
+%{?ghc_devel_requires}
+Obsoletes: ghc-%{pkg_name}-prof < %{version}-%{release}
+Provides: ghc-%{pkg_name}-prof = %{version}-%{release}
+Requires: pcre-devel
+
+%description -n ghc-%{pkg_name}-devel
+%{common_description}
+
+This package contains the development files.
+
+
%prep
%setup -q -n %{pkg_name}-%{version}
@@ -43,7 +55,22 @@
%ghc_lib_install
-%ghc_lib_package
+%post -n ghc-%{pkg_name}-devel
+%ghc_pkg_recache
+
+
+%postun -n ghc-%{pkg_name}-devel
+%ghc_pkg_recache
+
+
+%if %{undefined ghc_without_shared}
+%files -n ghc-%{pkg_name} -f ghc-%{pkg_name}.files
+%defattr(-,root,root,-)
+%endif
+
+
+%files -n ghc-%{pkg_name}-devel -f ghc-%{pkg_name}-devel.files
+%defattr(-,root,root,-)
%changelog
More information about the haskell-devel
mailing list