- 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
This commit is contained in:
parent
bdeb4bcd8e
commit
acef45739d
@ -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 @@ BuildRequires: ghc-doc = %{ghc_version}
|
||||
%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 @@ Requires(preun): ghc = %{ghc_version}
|
||||
%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 @@ This package contains development documentation files for the %{name} library.
|
||||
%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
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%post
|
||||
%post devel
|
||||
%ghc_register_pkg
|
||||
|
||||
|
||||
@ -98,7 +107,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%endif
|
||||
|
||||
|
||||
%preun
|
||||
%preun devel
|
||||
if [ "$1" -eq 0 ] ; then
|
||||
%ghc_unregister_pkg
|
||||
fi
|
||||
@ -112,9 +121,9 @@ fi
|
||||
%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 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Feb 27 2009 Jens Petersen <petersen@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@lists.fedoraproject.org> - 4000.0.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user