ghc-zip-archive/ghc-zip-archive.spec

170 lines
4.6 KiB
RPMSpec
Raw Permalink Normal View History

# generated by cabal-rpm-2.1.0
2020-06-04 11:29:17 +00:00
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
2012-01-06 12:14:56 +00:00
2011-01-04 09:38:44 +00:00
%global pkg_name zip-archive
2017-02-22 03:25:04 +00:00
%global pkgver %{pkg_name}-%{version}
2011-01-04 09:38:44 +00:00
2015-01-28 11:59:59 +00:00
%ifnarch armv7hl
2014-10-30 08:52:00 +00:00
%bcond_without tests
2015-01-28 11:59:59 +00:00
%endif
2014-10-30 08:52:00 +00:00
2011-01-04 09:38:44 +00:00
Name: ghc-%{pkg_name}
Version: 0.4.2.2
Release: %autorelease -e rvre0
Summary: Library for creating and modifying zip archives
2011-01-04 09:38:44 +00:00
License: BSD-3-Clause
2015-01-23 05:26:24 +00:00
Url: https://hackage.haskell.org/package/%{pkg_name}
2019-02-17 14:48:02 +00:00
# Begin cabal-rpm sources:
2017-02-22 03:25:04 +00:00
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
2019-02-17 14:48:02 +00:00
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
# End cabal-rpm sources
2019-02-17 14:48:02 +00:00
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-array-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-binary-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-digest-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-pretty-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-unix-devel
BuildRequires: ghc-zlib-devel
%if %{with ghc_prof}
BuildRequires: ghc-array-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-binary-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-containers-prof
BuildRequires: ghc-digest-prof
BuildRequires: ghc-directory-prof
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-pretty-prof
BuildRequires: ghc-text-prof
BuildRequires: ghc-time-prof
BuildRequires: ghc-unix-prof
BuildRequires: ghc-zlib-prof
%endif
2014-10-30 08:52:00 +00:00
%if %{with tests}
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-process-devel
2017-02-22 03:25:04 +00:00
BuildRequires: ghc-temporary-devel
2020-06-19 08:57:55 +00:00
BuildRequires: unzip
2014-10-30 08:52:00 +00:00
%endif
# End cabal-rpm deps
2011-01-04 09:38:44 +00:00
%description
2014-10-30 08:52:00 +00:00
The zip-archive library provides functions for creating, modifying, and
2019-07-25 17:07:26 +00:00
extracting files from zip archives. The zip archive format is documented in
<http://www.pkware.com/documents/casestudies/APPNOTE.TXT>.
Certain simplifying assumptions are made about the zip archives: in particular,
there is no support for strong encryption, zip files that span multiple disks,
ZIP64, OS-specific file attributes, or compression methods other than Deflate.
However, the library should be able to read the most common zip archives, and
the archives it produces should be readable by all standard unzip programs.
Archives are built and extracted in memory, so manipulating large zip files
will consume a lot of memory. If you work with large zip files or need features
not supported by this library, a better choice may be
<http://hackage.haskell.org/package/zip zip>, which uses a memory-efficient
streaming approach. However, zip can only read and write archives inside
instances of MonadIO, so zip-archive is a better choice if you want to
manipulate zip archives in "pure" contexts.
As an example of the use of the library, a standalone zip archiver and
extracter is provided in the source distribution.
%package devel
Summary: Haskell %{pkg_name} library development files
2014-10-30 08:52:00 +00:00
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-static%{?_isa} = %{version}-%{release}
2018-01-24 13:12:27 +00:00
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
2018-01-24 13:12:27 +00:00
%endif
2014-10-30 08:52:00 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
2011-01-04 09:38:44 +00:00
%if %{with haddock}
%package doc
Summary: Haskell %{pkg_name} library documentation
2020-02-08 14:53:06 +00:00
BuildArch: noarch
2021-07-07 16:30:14 +00:00
Requires: ghc-filesystem
%description doc
This package provides the Haskell %{pkg_name} library documentation.
%endif
%if %{with ghc_prof}
%package prof
Summary: Haskell %{pkg_name} profiling library
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
2020-02-08 14:53:06 +00:00
Supplements: (%{name}-devel and ghc-prof)
%description prof
This package provides the Haskell %{pkg_name} profiling library.
%endif
2011-01-04 09:38:44 +00:00
%prep
2019-02-17 14:48:02 +00:00
# Begin cabal-rpm setup:
2017-02-22 03:25:04 +00:00
%setup -q -n %{pkgver}
2019-02-17 14:48:02 +00:00
cp -bp %{SOURCE1} %{pkg_name}.cabal
# End cabal-rpm setup
2011-01-04 09:38:44 +00:00
%build
2019-02-17 14:48:02 +00:00
# Begin cabal-rpm build:
2011-01-04 09:38:44 +00:00
%ghc_lib_build
2019-02-17 14:48:02 +00:00
# End cabal-rpm build
2011-01-04 09:38:44 +00:00
%install
2019-02-17 14:48:02 +00:00
# Begin cabal-rpm install
2011-01-04 09:38:44 +00:00
%ghc_lib_install
2019-02-17 14:48:02 +00:00
# End cabal-rpm install
2011-01-04 09:38:44 +00:00
2012-01-06 12:14:56 +00:00
2014-10-30 08:52:00 +00:00
%check
2021-07-07 16:30:14 +00:00
%if %{with tests}
2016-09-27 10:15:58 +00:00
%cabal_test
2021-07-07 16:30:14 +00:00
%endif
2014-10-30 08:52:00 +00:00
%files -f %{name}.files
2019-02-17 14:48:02 +00:00
# Begin cabal-rpm files:
2016-09-28 09:32:27 +00:00
%license LICENSE
2019-02-17 14:48:02 +00:00
# End cabal-rpm files
2012-01-06 12:14:56 +00:00
%files devel -f %{name}-devel.files
2017-02-22 03:25:04 +00:00
%doc README.markdown changelog
2011-02-15 11:39:09 +00:00
%if %{with haddock}
%files doc -f %{name}-doc.files
2020-02-08 14:53:06 +00:00
%license LICENSE
%endif
%if %{with ghc_prof}
%files prof -f %{name}-prof.files
%endif
2011-01-04 09:38:44 +00:00
%changelog
2023-01-15 12:54:07 +00:00
%autochangelog