rpms/ghc-HTTP/devel ghc-HTTP.spec,1.4,1.5
Jens Petersen
petersen at fedoraproject.org
Fri Feb 27 06:55:03 UTC 2009
Author: petersen
Update of /cvs/pkgs/rpms/ghc-HTTP/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30465
Modified Files:
ghc-HTTP.spec
Log Message:
- update url
- update to cabal2spec-0.12:
- use ix86 in archs and add alpha
- add devel subpackage
- use global rather than define
- devel owns docdir
Index: ghc-HTTP.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ghc-HTTP/devel/ghc-HTTP.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ghc-HTTP.spec 24 Feb 2009 21:15:05 -0000 1.4
+++ ghc-HTTP.spec 27 Feb 2009 06:54:33 -0000 1.5
@@ -1,29 +1,27 @@
-%define pkg_name HTTP
-%define ghc_version 6.10.1
+%global pkg_name HTTP
+%global ghc_version 6.10.1
-%define pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{version}
-%define pkg_docdir %{_docdir}/ghc/libraries/%{pkg_name}-%{version}
+%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
-%define debug_package %{nil}
+%global debug_package %{nil}
Name: ghc-%{pkg_name}
Version: 4000.0.4
-Release: 2%{?dist}
-Summary: HTTP library for Haskell
+Release: 3%{?dist}
+Summary: Haskell HTTP client library
Group: Development/Libraries
License: BSD
-URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name}
+URL: http://projects.haskell.org/http/
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}
@@ -31,6 +29,14 @@
%if %{with prof}
BuildRequires: ghc-prof = %{ghc_version}
%endif
+
+%description
+A Haskell library for client-side HTTP.
+
+
+%package devel
+Summary: Haskell %{pkg_name} library
+Group: Development/Libraries
Requires: ghc = %{ghc_version}
Requires(post): ghc = %{ghc_version}
Requires(preun): ghc = %{ghc_version}
@@ -38,6 +44,9 @@
%description
A Haskell library for client-side HTTP.
+This package contains the development files for %{name}
+built for ghc-%{ghc_version}.
+
%if %{with doc}
%package doc
@@ -56,7 +65,7 @@
%package prof
Summary: Profiling libraries for %{name}
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}-devel = %{version}-%{release}
Requires: ghc-prof = %{ghc_version}
%description prof
@@ -88,7 +97,7 @@
rm -rf $RPM_BUILD_ROOT
-%post
+%post devel
%ghc_register_pkg
@@ -98,7 +107,7 @@
%endif
-%preun
+%preun devel
if [ "$1" -eq 0 ] ; then
%ghc_unregister_pkg
fi
@@ -112,9 +121,9 @@
%endif
-%files -f %{name}.files
+%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
-%doc LICENSE
+%{_docdir}/%{name}-%{version}
%if %{with doc}
@@ -131,6 +140,14 @@
%changelog
+* Fri Feb 27 2009 Jens Petersen <petersen at redhat.com> - 4000.0.4-3
+- update url
+- update to cabal2spec-0.12:
+- use ix86 in archs and add alpha
+- add devel subpackage
+- use global rather than define
+- devel owns docdir
+
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4000.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
More information about the fedora-extras-commits
mailing list