- initial packaging for Fedora automatically generated by cabal2spec-0.24.1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-zip-archive?expand=0&rev=2
This commit is contained in:
parent
183a9c7e55
commit
d0d153c6c1
3
_service
Normal file
3
_service
Normal file
@ -0,0 +1,3 @@
|
||||
<services>
|
||||
<service name="download_files"/>
|
||||
</services>
|
3
_service:download_files:zip-archive-0.1.1.7.tar.gz
Normal file
3
_service:download_files:zip-archive-0.1.1.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:88c096d469d8b4d816dbe15571f2c1e61e31c1cd67f931672240063a51d8a2e0
|
||||
size 16795
|
4
ghc-zip-archive.changes
Normal file
4
ghc-zip-archive.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 18 20:38:15 UTC 2012 - herbert@graeber-clan.de
|
||||
|
||||
- initial packaging for Fedora automatically generated by cabal2spec-0.24.1
|
@ -1,87 +1,75 @@
|
||||
%define pkg_name zip-archive
|
||||
%define ghc_version %(ghc --numeric-version)
|
||||
# For Haskell Packaging Guidelines see:
|
||||
# - https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
||||
|
||||
%define pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{version}
|
||||
%define pkg_docdir %{_datadir}/doc/ghc/libraries/%{pkg_name}-%{version}
|
||||
# Copyright (c) 2012 Herbert Graeber <herbert@graeber-clan.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.
|
||||
|
||||
# ghc does not emit debug information
|
||||
%define debug_package %{nil}
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%global pkg_name zip-archive
|
||||
|
||||
# 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-%{pkg_name}
|
||||
Version: 0.1.1.3
|
||||
Release: 0
|
||||
Summary: Library for creating and modifying zip archives
|
||||
Group: Development/Libraries
|
||||
License: GPL
|
||||
URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name}
|
||||
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: ghc, ghc-doc, ghc-prof
|
||||
BuildRequires: ghc-binary-devel, ghc-binary-prof, ghc-binary-doc
|
||||
BuildRequires: ghc-zlib-devel, ghc-zlib-prof, ghc-zlib-doc
|
||||
BuildRequires: ghc-digest-devel, ghc-digest-prof, ghc-digest-doc
|
||||
BuildRequires: ghc-utf8-string-devel, ghc-utf8-string-prof, ghc-utf8-string-doc
|
||||
BuildRequires: licenses
|
||||
Version: 0.1.1.7
|
||||
Release: 1
|
||||
Summary: %{common_summary}
|
||||
|
||||
Group: Development/Libraries/Other
|
||||
License: BSD3c
|
||||
# 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
|
||||
BuildRequires: ghc-binary-devel
|
||||
BuildRequires: ghc-bytestring-devel >= 0.9.0
|
||||
BuildRequires: ghc-digest-devel >= 0.0.0.1
|
||||
BuildRequires: ghc-mtl-devel
|
||||
BuildRequires: ghc-utf8-string-devel >= 0.3.1
|
||||
BuildRequires: ghc-zlib-devel
|
||||
|
||||
# END cabal2spec
|
||||
# BR any C devel dependency here
|
||||
# list ghc-*-prof dependencies:
|
||||
|
||||
%description
|
||||
The zip-archive library provides functions for creating, modifying, and
|
||||
extracting files from zip archives.
|
||||
|
||||
This package provides the Haskell %{pkg_name} library for ghc.
|
||||
%{common_description}
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Haskell %{pkg_name} library
|
||||
Group: Development/Libraries
|
||||
Requires: ghc = %{ghc_version}
|
||||
Requires(post): ghc = %{ghc_version}
|
||||
Requires(preun): ghc = %{ghc_version}
|
||||
Requires: ghc-binary-devel
|
||||
Requires: ghc-zlib-devel
|
||||
Requires: ghc-digest-devel
|
||||
Requires: ghc-utf8-string-devel
|
||||
Requires: licenses
|
||||
%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
|
||||
|
||||
%description devel
|
||||
The zip-archive library provides functions for creating, modifying, and
|
||||
extracting files from zip archives.
|
||||
%description -n ghc-%{pkg_name}-devel
|
||||
%{common_description}
|
||||
|
||||
This package contains the development files for %{name}
|
||||
built for ghc-%{ghc_version}.
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: ghc-doc = %{ghc_version}
|
||||
Requires(post): ghc-doc = %{ghc_version}
|
||||
Requires(postun): ghc-doc = %{ghc_version}
|
||||
Requires: ghc-binary-doc
|
||||
Requires: ghc-zlib-doc
|
||||
Requires: ghc-digest-doc
|
||||
Requires: ghc-utf8-string-doc
|
||||
|
||||
%description doc
|
||||
The zip-archive library provides functions for creating, modifying, and
|
||||
extracting files from zip archives.
|
||||
|
||||
This package contains development documentation files for the %{name} library.
|
||||
|
||||
|
||||
%package prof
|
||||
Summary: Profiling libraries for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name}-devel = %{version}-%{release}
|
||||
Requires: ghc-prof = %{ghc_version}
|
||||
Requires: ghc-binary-prof
|
||||
Requires: ghc-digest-prof
|
||||
Requires: ghc-utf8-string-prof
|
||||
|
||||
%description prof
|
||||
The zip-archive library provides functions for creating, modifying, and
|
||||
extracting files from zip archives.
|
||||
|
||||
This package contains profiling libraries for %{name}.
|
||||
This package contains the development files.
|
||||
|
||||
|
||||
%prep
|
||||
@ -89,65 +77,30 @@ This package contains profiling libraries for %{name}.
|
||||
|
||||
|
||||
%build
|
||||
%cabal_configure --ghc %{!?without_prof:-p}
|
||||
%cabal build
|
||||
%cabal haddock
|
||||
%ghc_gen_scripts
|
||||
#%%define cabal_configure_options -f "opt1 -opt2 ..."
|
||||
%ghc_lib_build
|
||||
|
||||
|
||||
%install
|
||||
%cabal_install
|
||||
%ghc_install_scripts
|
||||
%ghc_gen_filelists %{name}
|
||||
for FILE in LICENSE ; do
|
||||
MD5SUM=$(md5sum $FILE | sed 's/ .*//')
|
||||
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
|
||||
ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
|
||||
fi
|
||||
done
|
||||
%ghc_lib_install
|
||||
|
||||
|
||||
%post devel
|
||||
%ghc_register_pkg
|
||||
%post -n ghc-%{pkg_name}-devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%post doc
|
||||
%ghc_reindex_haddock
|
||||
%postun -n ghc-%{pkg_name}-devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%preun devel
|
||||
if [ "$1" -eq 0 ] ; then
|
||||
%ghc_unregister_pkg
|
||||
fi
|
||||
|
||||
|
||||
%postun doc
|
||||
if [ "$1" -eq 0 ] ; then
|
||||
%ghc_reindex_haddock
|
||||
fi
|
||||
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
%if %{undefined ghc_without_shared}
|
||||
%files -n ghc-%{pkg_name} -f ghc-%{pkg_name}.files
|
||||
%defattr(-,root,root,-)
|
||||
%{_docdir}/%{name}-%{version}
|
||||
%endif
|
||||
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%{pkg_docdir}
|
||||
|
||||
|
||||
%files prof -f %{name}-prof.files
|
||||
%files -n ghc-%{pkg_name}-devel -f ghc-%{pkg_name}-devel.files
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Aug 2 2009 Herbert Graeber <herbert@graeber-clan.de> - 0.1.1.3
|
||||
- Require ghc-binary
|
||||
|
||||
* Sat Aug 1 2009 Herbert Graeber <herbert@graeber-clan.de> - 0.1.1.3
|
||||
- Build requires ghc-utf8-string
|
||||
- Require ghc-zlib, ghc-digest and ghc-utf8-string
|
||||
|
||||
* Fri Jul 31 2009 Herbert Graeber <herbert@graeber-clan.de> - 0.1.1.3
|
||||
- Initial Package
|
||||
|
@ -1,6 +1 @@
|
||||
addFilter("devel-dependency gmp-devel")
|
||||
addFilter("devel-file-in-non-devel-package")
|
||||
addFilter("static-library-without-debuginfo")
|
||||
addFilter("useless-explicit-requires ghc")
|
||||
addFilter("useless-explicit-requires ghc-doc")
|
||||
addFilter("devel-dependency ghc-digest-devel")
|
||||
addFilter("useless-provides")
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2b0f0af4521411b40bdfbb30d46cfdb7824ea23683b3cf798b1ac52dfbf081b7
|
||||
size 15494
|
Loading…
Reference in New Issue
Block a user