- 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
|
%global pkg_name HTTP
|
||||||
%define ghc_version 6.10.1
|
%global ghc_version 6.10.1
|
||||||
|
|
||||||
%define pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{version}
|
%global pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{version}
|
||||||
%define pkg_docdir %{_docdir}/ghc/libraries/%{pkg_name}-%{version}
|
%global pkg_docdir %{_docdir}/ghc/libraries/%{pkg_name}-%{version}
|
||||||
|
|
||||||
%bcond_without prof
|
|
||||||
%bcond_without doc
|
%bcond_without doc
|
||||||
|
%bcond_without prof
|
||||||
|
|
||||||
# ghc does not emit debug information
|
# ghc does not emit debug information
|
||||||
%define debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 4000.0.4
|
Version: 4000.0.4
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: HTTP library for Haskell
|
Summary: Haskell HTTP client library
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: BSD
|
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
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
# fedora ghc archs:
|
||||||
Provides: %{name}-devel = %{version}-%{release}
|
ExclusiveArch: %{ix86} x86_64 ppc alpha
|
||||||
# ghc has only been bootstrapped on the following archs:
|
|
||||||
ExclusiveArch: i386 x86_64 ppc
|
|
||||||
BuildRequires: ghc = %{ghc_version}
|
BuildRequires: ghc = %{ghc_version}
|
||||||
%if %{with doc}
|
%if %{with doc}
|
||||||
BuildRequires: ghc-doc = %{ghc_version}
|
BuildRequires: ghc-doc = %{ghc_version}
|
||||||
@ -31,6 +29,14 @@ BuildRequires: ghc-doc = %{ghc_version}
|
|||||||
%if %{with prof}
|
%if %{with prof}
|
||||||
BuildRequires: ghc-prof = %{ghc_version}
|
BuildRequires: ghc-prof = %{ghc_version}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
A Haskell library for client-side HTTP.
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Haskell %{pkg_name} library
|
||||||
|
Group: Development/Libraries
|
||||||
Requires: ghc = %{ghc_version}
|
Requires: ghc = %{ghc_version}
|
||||||
Requires(post): ghc = %{ghc_version}
|
Requires(post): ghc = %{ghc_version}
|
||||||
Requires(preun): ghc = %{ghc_version}
|
Requires(preun): ghc = %{ghc_version}
|
||||||
@ -38,6 +44,9 @@ Requires(preun): ghc = %{ghc_version}
|
|||||||
%description
|
%description
|
||||||
A Haskell library for client-side HTTP.
|
A Haskell library for client-side HTTP.
|
||||||
|
|
||||||
|
This package contains the development files for %{name}
|
||||||
|
built for ghc-%{ghc_version}.
|
||||||
|
|
||||||
|
|
||||||
%if %{with doc}
|
%if %{with doc}
|
||||||
%package doc
|
%package doc
|
||||||
@ -56,7 +65,7 @@ This package contains development documentation files for the %{name} library.
|
|||||||
%package prof
|
%package prof
|
||||||
Summary: Profiling libraries for %{name}
|
Summary: Profiling libraries for %{name}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name}-devel = %{version}-%{release}
|
||||||
Requires: ghc-prof = %{ghc_version}
|
Requires: ghc-prof = %{ghc_version}
|
||||||
|
|
||||||
%description prof
|
%description prof
|
||||||
@ -88,7 +97,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post devel
|
||||||
%ghc_register_pkg
|
%ghc_register_pkg
|
||||||
|
|
||||||
|
|
||||||
@ -98,7 +107,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%preun
|
%preun devel
|
||||||
if [ "$1" -eq 0 ] ; then
|
if [ "$1" -eq 0 ] ; then
|
||||||
%ghc_unregister_pkg
|
%ghc_unregister_pkg
|
||||||
fi
|
fi
|
||||||
@ -112,9 +121,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files devel -f %{name}-devel.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE
|
%{_docdir}/%{name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%if %{with doc}
|
%if %{with doc}
|
||||||
@ -131,6 +140,14 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user