- update to 0.5.2.0 (haskell-platform-2009.3.1)

- update to ghc-rpm-macros-0.5.1 and cabal2spec-0.21.1:
- drop doc and prof bcond
- use common summary and common_description
- use ghc_lib_package and ghc_pkg_c_deps
This commit is contained in:
Jens Petersen 2010-01-11 04:50:30 +00:00
parent 40b11069fc
commit 8b43ae0162
3 changed files with 22 additions and 104 deletions

View File

@ -1 +1 @@
zlib-0.5.0.0.tar.gz zlib-0.5.2.0.tar.gz

View File

@ -11,17 +11,17 @@ 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\ the few cases where more control is needed, it provides access to the\
full zlib feature set. full zlib feature set.
%bcond_without doc %global ghc_pkg_c_deps zlib-devel
%bcond_without prof
%bcond_without shared %bcond_without shared
# stripping produces smaller .so # debuginfo is not useful for ghc
#%%global debug_package %{nil} %global debug_package %{nil}
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
# part of haskell-platform-2009.2.0.2 # part of haskell-platform-2009.3.1
Version: 0.5.0.0 Version: 0.5.2.0
Release: 12%{?dist} Release: 1%{?dist}
Summary: %{common_summary} Summary: %{common_summary}
Group: System Environment/Libraries Group: System Environment/Libraries
@ -30,14 +30,11 @@ URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg
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
# fedora ghc archs: # fedora ghc archs:
ExclusiveArch: %{ix86} x86_64 ppc alpha ExclusiveArch: %{ix86} x86_64 ppc alpha
BuildRequires: ghc, ghc-rpm-macros >= 0.4.0 BuildRequires: ghc, ghc-rpm-macros >= 0.5.1
%if %{with doc}
BuildRequires: ghc-doc BuildRequires: ghc-doc
%endif
%if %{with prof}
BuildRequires: ghc-prof BuildRequires: ghc-prof
%endif %{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")}
BuildRequires: zlib-devel %{?ghc_pkg_c_deps:BuildRequires: %{ghc_pkg_c_deps}}
%description %description
%{common_description} %{common_description}
@ -46,42 +43,7 @@ This package provides the shared library.
%endif %endif
%package devel %ghc_lib_package
Summary: %{common_summary} development files
Group: Development/Libraries
%{?ghc_requires}
Requires: zlib-devel
%description devel
%{common_description}
This package contains the development files.
%if %{with doc}
%package doc
Summary: Documentation for %{common_summary}
Group: Development/Libraries
%{?ghc_doc_requires}
%description doc
%{common_description}
This package contains development documentation files.
%endif
%if %{with prof}
%package prof
Summary: Profiling libraries for %{common_summary}
Group: Development/Libraries
%{?ghc_prof_requires}
%description prof
%{common_description}
This package contains the profiling library.
%endif
%prep %prep
@ -89,73 +51,29 @@ This package contains the profiling library.
%build %build
%cabal_configure --ghc %{?with_prof:-p} %cabal_configure --ghc -p
%cabal build %cabal build
%if %{with doc}
%cabal haddock %cabal haddock
%endif
%install %install
%cabal_install %cabal_install
%cabal_pkg_conf %cabal_pkg_conf
%ghc_gen_filelists %{name} %ghc_gen_filelists
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%post devel
ghc-pkg recache
%if %{with doc}
%post doc
%ghc_reindex_haddock
%endif
%postun devel
ghc-pkg recache
%if %{with doc}
%postun doc
if [ "$1" -eq 0 ] ; then
%ghc_reindex_haddock
fi
%endif
%if %{with shared}
%files -f %{name}.files
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}
%endif
%files devel -f %{name}-devel.files
%defattr(-,root,root,-)
%if %{without shared}
%{_docdir}/%{name}-%{version}
%endif
%if %{with doc}
%files doc -f %{name}-doc.files
%defattr(-,root,root,-)
%endif
%if %{with prof}
%files prof -f %{name}-prof.files
%defattr(-,root,root,-)
%endif
%changelog %changelog
* Mon Jan 11 2010 Jens Petersen <petersen@redhat.com> - 0.5.2.0-1
- update to 0.5.2.0 (haskell-platform-2009.3.1)
- update to ghc-rpm-macros-0.5.1 and cabal2spec-0.21.1:
- drop doc and prof bcond
- use common summary and common_description
- use ghc_lib_package and ghc_pkg_c_deps
* Sat Dec 26 2009 Jens Petersen <petersen@redhat.com> - 0.5.0.0-12 * 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: - update to cabal2spec-0.20 and ghc-rpm-macros-0.4.0:
- use common_summary and common_description - use common_summary and common_description

View File

@ -1 +1 @@
22fa6d394c42c8584b234799b923f860 zlib-0.5.0.0.tar.gz 19859e241dc18ef1501a5d44d8523507 zlib-0.5.2.0.tar.gz