2009-02-27 04:12:58 +00:00
|
|
|
%global pkg_name zlib
|
2008-12-01 08:06:59 +00:00
|
|
|
|
2009-12-25 15:39:20 +00:00
|
|
|
%global common_summary Haskell compression and decompression library
|
|
|
|
|
|
|
|
%global common_description This package provides a pure Haskell interface for compressing and\
|
|
|
|
decompressing streams of data represented as lazy ByteStrings. It uses\
|
|
|
|
the zlib C library so it has high performance. It supports the "zlib",\
|
|
|
|
"gzip" and "raw" compression formats.\
|
|
|
|
\
|
|
|
|
It provides a convenient high level API suitable for most tasks. For\
|
|
|
|
the few cases where more control is needed, it provides access to the\
|
|
|
|
full zlib feature set.
|
|
|
|
|
2008-12-17 05:41:58 +00:00
|
|
|
%bcond_without doc
|
2009-02-26 23:35:10 +00:00
|
|
|
%bcond_without prof
|
2009-12-16 10:00:18 +00:00
|
|
|
%bcond_without shared
|
2008-12-01 08:06:59 +00:00
|
|
|
|
2009-12-25 15:39:20 +00:00
|
|
|
# stripping produces smaller .so
|
|
|
|
#%%global debug_package %{nil}
|
2008-11-28 01:12:47 +00:00
|
|
|
|
2009-02-27 04:12:58 +00:00
|
|
|
Name: ghc-%{pkg_name}
|
2009-09-16 09:31:12 +00:00
|
|
|
# part of haskell-platform-2009.2.0.2
|
2009-02-27 04:12:58 +00:00
|
|
|
Version: 0.5.0.0
|
2009-12-25 15:39:20 +00:00
|
|
|
Release: 12%{?dist}
|
|
|
|
Summary: %{common_summary}
|
2009-02-26 23:35:10 +00:00
|
|
|
|
2009-12-22 09:12:01 +00:00
|
|
|
Group: System Environment/Libraries
|
2009-02-27 04:12:58 +00:00
|
|
|
License: BSD
|
|
|
|
URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name}
|
2009-12-16 10:00:18 +00:00
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
2009-02-27 04:12:58 +00:00
|
|
|
# fedora ghc archs:
|
|
|
|
ExclusiveArch: %{ix86} x86_64 ppc alpha
|
2009-12-25 15:39:20 +00:00
|
|
|
BuildRequires: ghc, ghc-rpm-macros >= 0.4.0
|
2009-02-09 13:08:39 +00:00
|
|
|
%if %{with doc}
|
2009-04-24 13:44:58 +00:00
|
|
|
BuildRequires: ghc-doc
|
2009-02-09 13:08:39 +00:00
|
|
|
%endif
|
|
|
|
%if %{with prof}
|
2009-04-24 13:44:58 +00:00
|
|
|
BuildRequires: ghc-prof
|
2009-02-09 13:08:39 +00:00
|
|
|
%endif
|
2009-02-27 04:12:58 +00:00
|
|
|
BuildRequires: zlib-devel
|
2008-11-28 01:12:47 +00:00
|
|
|
|
|
|
|
%description
|
2009-12-25 15:39:20 +00:00
|
|
|
%{common_description}
|
|
|
|
%if %{with shared}
|
|
|
|
This package provides the shared library.
|
|
|
|
%endif
|
2008-11-28 01:12:47 +00:00
|
|
|
|
|
|
|
|
2009-02-26 23:35:10 +00:00
|
|
|
%package devel
|
2009-12-25 15:39:20 +00:00
|
|
|
Summary: %{common_summary} development files
|
2009-02-27 04:12:58 +00:00
|
|
|
Group: Development/Libraries
|
2009-12-25 15:39:20 +00:00
|
|
|
%{?ghc_requires}
|
2009-12-16 10:00:18 +00:00
|
|
|
Requires: zlib-devel
|
2009-02-26 23:35:10 +00:00
|
|
|
|
|
|
|
%description devel
|
2009-12-25 15:39:20 +00:00
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
This package contains the development files.
|
2009-02-26 23:35:10 +00:00
|
|
|
|
2008-11-28 01:12:47 +00:00
|
|
|
|
2009-02-09 13:08:39 +00:00
|
|
|
%if %{with doc}
|
|
|
|
%package doc
|
2009-12-25 15:39:20 +00:00
|
|
|
Summary: Documentation for %{common_summary}
|
2009-04-24 13:44:58 +00:00
|
|
|
Group: Development/Libraries
|
2009-12-25 15:39:20 +00:00
|
|
|
%{?ghc_doc_requires}
|
2009-02-09 13:08:39 +00:00
|
|
|
|
|
|
|
%description doc
|
2009-12-25 15:39:20 +00:00
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
This package contains development documentation files.
|
2009-02-09 13:08:39 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2008-12-17 05:41:58 +00:00
|
|
|
%if %{with prof}
|
2008-11-28 01:12:47 +00:00
|
|
|
%package prof
|
2009-12-25 15:39:20 +00:00
|
|
|
Summary: Profiling libraries for %{common_summary}
|
2009-04-24 13:44:58 +00:00
|
|
|
Group: Development/Libraries
|
2009-12-25 15:39:20 +00:00
|
|
|
%{?ghc_prof_requires}
|
2008-11-28 01:12:47 +00:00
|
|
|
|
|
|
|
%description prof
|
2009-12-25 15:39:20 +00:00
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
This package contains the profiling library.
|
2008-12-01 08:06:59 +00:00
|
|
|
%endif
|
2008-11-28 01:12:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2009-04-24 13:44:58 +00:00
|
|
|
%cabal_configure --ghc %{?with_prof:-p}
|
2008-11-28 01:12:47 +00:00
|
|
|
%cabal build
|
2008-12-17 05:41:58 +00:00
|
|
|
%if %{with doc}
|
2008-11-28 01:12:47 +00:00
|
|
|
%cabal haddock
|
2008-12-01 08:06:59 +00:00
|
|
|
%endif
|
2008-11-28 01:12:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cabal_install
|
2009-12-16 10:00:18 +00:00
|
|
|
%cabal_pkg_conf
|
|
|
|
|
2008-11-28 01:12:47 +00:00
|
|
|
%ghc_gen_filelists %{name}
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
2008-12-01 08:06:59 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2008-11-28 01:12:47 +00:00
|
|
|
|
|
|
|
|
2009-02-26 23:35:10 +00:00
|
|
|
%post devel
|
2009-12-16 10:00:18 +00:00
|
|
|
ghc-pkg recache
|
2009-02-09 13:08:39 +00:00
|
|
|
|
|
|
|
|
2008-12-17 05:41:58 +00:00
|
|
|
%if %{with doc}
|
2009-02-09 13:08:39 +00:00
|
|
|
%post doc
|
2008-11-28 01:12:47 +00:00
|
|
|
%ghc_reindex_haddock
|
2008-12-01 08:06:59 +00:00
|
|
|
%endif
|
2008-11-28 01:12:47 +00:00
|
|
|
|
|
|
|
|
2009-12-16 10:00:18 +00:00
|
|
|
%postun devel
|
|
|
|
ghc-pkg recache
|
2008-11-28 01:12:47 +00:00
|
|
|
|
|
|
|
|
2008-12-17 05:41:58 +00:00
|
|
|
%if %{with doc}
|
2009-02-09 13:08:39 +00:00
|
|
|
%postun doc
|
|
|
|
if [ "$1" -eq 0 ] ; then
|
2008-11-28 01:12:47 +00:00
|
|
|
%ghc_reindex_haddock
|
|
|
|
fi
|
2009-02-09 13:08:39 +00:00
|
|
|
%endif
|
2008-11-28 01:12:47 +00:00
|
|
|
|
|
|
|
|
2009-12-16 10:00:18 +00:00
|
|
|
%if %{with shared}
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_docdir}/%{name}-%{version}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2009-02-26 23:35:10 +00:00
|
|
|
%files devel -f %{name}-devel.files
|
2008-11-28 01:12:47 +00:00
|
|
|
%defattr(-,root,root,-)
|
2009-12-22 09:12:01 +00:00
|
|
|
%if %{without shared}
|
2009-02-27 06:21:43 +00:00
|
|
|
%{_docdir}/%{name}-%{version}
|
2009-12-22 09:12:01 +00:00
|
|
|
%endif
|
2009-02-09 13:08:39 +00:00
|
|
|
|
|
|
|
|
2008-12-17 05:41:58 +00:00
|
|
|
%if %{with doc}
|
2009-04-24 13:44:58 +00:00
|
|
|
%files doc -f %{name}-doc.files
|
2009-02-09 13:08:39 +00:00
|
|
|
%defattr(-,root,root,-)
|
2008-12-01 08:06:59 +00:00
|
|
|
%endif
|
2008-11-28 01:12:47 +00:00
|
|
|
|
|
|
|
|
2008-12-17 05:41:58 +00:00
|
|
|
%if %{with prof}
|
2008-11-28 01:12:47 +00:00
|
|
|
%files prof -f %{name}-prof.files
|
|
|
|
%defattr(-,root,root,-)
|
2008-12-01 08:06:59 +00:00
|
|
|
%endif
|
2008-11-28 01:12:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2009-12-25 15:39:20 +00:00
|
|
|
* Sat Dec 26 2009 Jens Petersen <petersen@redhat.com> - 0.5.0.0-12
|
|
|
|
- update to cabal2spec-0.20 and ghc-rpm-macros-0.4.0:
|
|
|
|
- use common_summary and common_description
|
|
|
|
- reenable debuginfo for stripping
|
|
|
|
- use ghc_requires, ghc_doc_requires, and ghc_prof_requires
|
|
|
|
|
2009-12-22 09:12:01 +00:00
|
|
|
* Tue Dec 22 2009 Jens Petersen <petersen@redhat.com>
|
|
|
|
- fix base Group and devel Summary
|
|
|
|
- only include docdir in devel if not shared build
|
|
|
|
|
2009-12-16 10:00:18 +00:00
|
|
|
* Wed Dec 16 2009 Jens Petersen <petersen@redhat.com> - 0.5.0.0-11
|
|
|
|
- build for ghc-6.12.1
|
|
|
|
- added shared library support: needs ghc-rpm-macros 0.3.1
|
|
|
|
- use cabal_pkg_conf to generate package.conf.d file and use ghc-pkg recache
|
|
|
|
|
2009-07-25 00:05:57 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0.0-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-16 04:53:56 +00:00
|
|
|
* Sat May 16 2009 Jens Petersen <petersen@redhat.com> - 0.5.0.0-9
|
|
|
|
- buildrequires ghc-rpm-macros (cabal2spec-0.16)
|
|
|
|
|
2009-04-24 13:44:58 +00:00
|
|
|
* Fri Apr 24 2009 Jens Petersen <petersen@redhat.com> - 0.5.0.0-8
|
|
|
|
- sync with cabal2spec-0.14
|
|
|
|
|
2009-02-26 23:35:10 +00:00
|
|
|
* Fri Feb 27 2009 Jens Petersen <petersen@redhat.com> - 0.5.0.0-7
|
2009-02-27 04:12:58 +00:00
|
|
|
- update to cabal2spec-0.11:
|
2009-02-26 23:35:10 +00:00
|
|
|
- add devel subpackage
|
2009-02-27 04:12:58 +00:00
|
|
|
- use ix86 macro for archs and add alpha
|
2009-02-26 23:35:10 +00:00
|
|
|
- use global rather than define
|
2009-12-16 10:00:18 +00:00
|
|
|
- make devel subpackage own docdir for now
|
2009-02-26 23:35:10 +00:00
|
|
|
|
2009-02-24 21:17:49 +00:00
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-09 13:08:39 +00:00
|
|
|
* Mon Feb 9 2009 Jens Petersen <petersen@redhat.com> - 0.5.0.0-5
|
|
|
|
- rebuild to fix unexpanded post preun macros
|
|
|
|
- add doc subpackage and BR ghc-doc
|
|
|
|
- add doc requires(post) ghc-doc
|
|
|
|
|
|
|
|
* Mon Dec 22 2008 Jens Petersen <petersen@redhat.com> - 0.5.0.0-4
|
2008-12-17 05:41:58 +00:00
|
|
|
- use bcond for doc and prof build flags (Till Maas, #426751)
|
|
|
|
|
2008-12-01 08:06:59 +00:00
|
|
|
* Mon Dec 1 2008 Jens Petersen <petersen@redhat.com> - 0.5.0.0-3
|
|
|
|
- sync with lib template:
|
|
|
|
- add build_prof and build_doc
|
|
|
|
- prof requires main package
|
|
|
|
- update scriptlet macro names
|
|
|
|
|
2008-11-28 01:12:47 +00:00
|
|
|
* Tue Nov 25 2008 Jens Petersen <petersen@redhat.com> - 0.5.0.0-2
|
|
|
|
- build with ghc-6.10.1
|
|
|
|
- no longer buildrequire haddock09
|
|
|
|
- provide devel
|
|
|
|
- add exclusivearch for current ghc archs
|
|
|
|
- reindex haddock docs only when uninstalling in postun
|
|
|
|
|
|
|
|
* Tue Nov 11 2008 Bryan O'Sullivan <bos@serpentine.com> - 0.5.0.0-1
|
|
|
|
- Update to 0.5.0.0
|
|
|
|
|
|
|
|
* Thu Oct 23 2008 Jens Petersen <petersen@redhat.com> - 0.4.0.4-2
|
|
|
|
- update for current rawhide
|
|
|
|
- add pkg_docdir and remove hsc_name
|
|
|
|
- use haddock09
|
|
|
|
|
|
|
|
* Tue Oct 14 2008 Bryan O'Sullivan <bos@serpentine.com> - 0.4.0.4-1
|
|
|
|
- Revised to follow Haskell packaging guidelines
|
|
|
|
|
|
|
|
* Sun Feb 17 2008 Yaakov Nemoy <haskell.rpms@hexago.nl> - 0.4.0.2-1
|
|
|
|
- added in url
|
|
|
|
|
|
|
|
* Sun Feb 17 2008 cabal-rpm <cabal-devel@haskell.org> - 0.4.0.2-1
|
|
|
|
- spec file autogenerated by cabal-rpm
|