2012-01-12 16:33:07 +01:00
|
|
|
# For Haskell Packaging Guidelines see:
|
|
|
|
# - https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
|
|
|
|
|
|
|
# Copyright (c) 2012 Peter Trommler peter.trommler@ohm-hochschule.de
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
%global pkg_name zlib
|
|
|
|
|
|
|
|
# common part of summary for all the subpackages
|
|
|
|
%global common_summary Haskell %{pkg_name} library
|
|
|
|
|
|
|
|
# main description used for all the subpackages
|
|
|
|
%global common_description A %{pkg_name} library for Haskell.
|
|
|
|
|
|
|
|
Name: ghc-zlib
|
|
|
|
Version: 0.5.3.1
|
|
|
|
Release: 1
|
|
|
|
Summary: %{common_summary}
|
|
|
|
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
License: @LICENSE@
|
|
|
|
# BEGIN cabal2spec
|
|
|
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
|
|
|
ExclusiveArch: %{ix86} x86_64 %{ghc_arches}
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
%if %{undefined without_hscolour}
|
|
|
|
BuildRequires: hscolour
|
|
|
|
%endif
|
|
|
|
# END cabal2spec
|
|
|
|
# BR any C devel dependency here
|
|
|
|
# list ghc-*-prof dependencies:
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
2009-08-02 20:37:56 +02:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
|
|
%description
|
2012-01-12 16:33:07 +01:00
|
|
|
%{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
%package -n ghc-%{pkg_name}-devel
|
|
|
|
Summary: Development files for %{common_summary}
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
# BEGIN cabal2spec
|
|
|
|
%{?ghc_devel_requires}
|
|
|
|
Obsoletes: ghc-%{pkg_name}-prof < %{version}-%{release}
|
|
|
|
Provides: ghc-%{pkg_name}-prof = %{version}-%{release}
|
|
|
|
# END cabal2spec
|
|
|
|
# remember to require any C devel dependency here
|
|
|
|
# Haskell devel dependencies are autogenerated by ghc-deps.sh
|
2009-08-02 20:37:56 +02:00
|
|
|
Requires: zlib-devel
|
|
|
|
|
2012-01-12 16:33:07 +01:00
|
|
|
%description -n ghc-%{pkg_name}-devel
|
|
|
|
%{common_description}
|
2009-08-02 20:37:56 +02:00
|
|
|
|
2012-01-12 16:33:07 +01:00
|
|
|
This package contains the development files.
|
2009-08-02 20:37:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2012-01-12 16:33:07 +01:00
|
|
|
#%%define cabal_configure_options -f "opt1 -opt2 ..."
|
|
|
|
%ghc_lib_build
|
2009-08-02 20:37:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2012-01-12 16:33:07 +01:00
|
|
|
%ghc_lib_install
|
2009-08-02 20:37:56 +02:00
|
|
|
|
|
|
|
|
2012-01-12 16:33:07 +01:00
|
|
|
%post -n ghc-%{pkg_name}-devel
|
|
|
|
%ghc_pkg_recache
|
2009-08-02 20:37:56 +02:00
|
|
|
|
|
|
|
|
2012-01-12 16:33:07 +01:00
|
|
|
%postun -n ghc-%{pkg_name}-devel
|
|
|
|
%ghc_pkg_recache
|
2009-08-02 20:37:56 +02:00
|
|
|
|
|
|
|
|
2012-01-12 16:33:07 +01:00
|
|
|
%if %{undefined ghc_without_shared}
|
|
|
|
%files -n ghc-%{pkg_name} -f ghc-%{pkg_name}.files
|
2009-08-02 20:37:56 +02:00
|
|
|
%defattr(-,root,root,-)
|
2012-01-12 16:33:07 +01:00
|
|
|
%endif
|
2009-08-02 20:37:56 +02:00
|
|
|
|
|
|
|
|
2012-01-12 16:33:07 +01:00
|
|
|
%files -n ghc-%{pkg_name}-devel -f ghc-%{pkg_name}-devel.files
|
2009-08-02 20:37:56 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2012-01-12 16:33:07 +01:00
|
|
|
* Thu Dec 15 2011 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.5.3.1-0
|
|
|
|
- initial packaging for Fedora automatically generated by cabal2spec-0.24.1
|