2012-06-07 11:59:07 +02:00
|
|
|
#
|
2013-08-03 10:33:34 +02:00
|
|
|
# spec file for package ghc-zip-archive
|
2012-06-07 11:59:07 +02:00
|
|
|
#
|
2024-03-09 23:01:04 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2012-01-19 18:10:15 +01:00
|
|
|
#
|
|
|
|
# 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.
|
2009-08-02 20:38:09 +02:00
|
|
|
|
2018-10-18 11:53:28 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-01-19 18:10:15 +01:00
|
|
|
#
|
2009-08-02 20:38:09 +02:00
|
|
|
|
|
|
|
|
2013-08-03 10:33:34 +02:00
|
|
|
%global pkg_name zip-archive
|
2023-03-30 10:26:53 +02:00
|
|
|
%global pkgver %{pkg_name}-%{version}
|
2016-07-18 14:27:16 +02:00
|
|
|
%bcond_with tests
|
|
|
|
Name: ghc-%{pkg_name}
|
2024-04-21 16:36:11 +02:00
|
|
|
Version: 0.4.3.2
|
2013-08-03 10:33:34 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for creating and modifying zip archives
|
2012-02-29 13:54:23 +01:00
|
|
|
License: BSD-3-Clause
|
2017-08-15 16:09:27 +02:00
|
|
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
2016-07-18 14:27:16 +02:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
2024-05-27 15:00:26 +02:00
|
|
|
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
|
2012-01-19 18:10:15 +01:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2013-08-03 10:33:34 +02:00
|
|
|
BuildRequires: ghc-array-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-array-prof
|
|
|
|
BuildRequires: ghc-base-devel
|
|
|
|
BuildRequires: ghc-base-prof
|
2012-01-19 18:10:15 +01:00
|
|
|
BuildRequires: ghc-binary-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-binary-prof
|
2013-08-03 10:33:34 +02:00
|
|
|
BuildRequires: ghc-bytestring-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-bytestring-prof
|
2013-08-03 10:33:34 +02:00
|
|
|
BuildRequires: ghc-containers-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-containers-prof
|
2013-08-03 10:33:34 +02:00
|
|
|
BuildRequires: ghc-digest-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-digest-prof
|
2013-08-03 10:33:34 +02:00
|
|
|
BuildRequires: ghc-directory-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-directory-prof
|
2013-08-03 10:33:34 +02:00
|
|
|
BuildRequires: ghc-filepath-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-filepath-prof
|
2012-01-19 18:10:15 +01:00
|
|
|
BuildRequires: ghc-mtl-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-mtl-prof
|
2013-08-03 10:33:34 +02:00
|
|
|
BuildRequires: ghc-pretty-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-pretty-prof
|
2016-07-18 14:27:16 +02:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2014-01-10 16:15:28 +01:00
|
|
|
BuildRequires: ghc-text-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-text-prof
|
2013-08-03 10:33:34 +02:00
|
|
|
BuildRequires: ghc-time-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-time-prof
|
2013-08-03 10:33:34 +02:00
|
|
|
BuildRequires: ghc-unix-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-unix-prof
|
2012-01-19 18:10:15 +01:00
|
|
|
BuildRequires: ghc-zlib-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-zlib-prof
|
2020-12-19 18:49:40 +01:00
|
|
|
ExcludeArch: %{ix86}
|
2016-07-18 14:27:16 +02:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-HUnit-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-HUnit-prof
|
2016-07-18 14:27:16 +02:00
|
|
|
BuildRequires: ghc-process-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-process-prof
|
2016-09-28 13:55:42 +02:00
|
|
|
BuildRequires: ghc-temporary-devel
|
2023-03-30 10:26:53 +02:00
|
|
|
BuildRequires: ghc-temporary-prof
|
2016-07-18 14:27:16 +02:00
|
|
|
%endif
|
2012-02-29 13:54:23 +01:00
|
|
|
|
2012-01-19 18:10:15 +01:00
|
|
|
%description
|
2016-07-18 14:27:16 +02:00
|
|
|
The zip-archive library provides functions for creating, modifying, and
|
2018-12-09 03:01:35 +01: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.
|
2013-08-03 10:33:34 +02:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2016-07-18 14:27:16 +02:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
2013-08-03 10:33:34 +02:00
|
|
|
|
|
|
|
%description devel
|
2016-07-18 14:27:16 +02:00
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
2009-08-02 20:38:09 +02:00
|
|
|
|
2023-03-30 10:26:53 +02:00
|
|
|
%package -n ghc-%{pkg_name}-doc
|
|
|
|
Summary: Haskell %{pkg_name} library documentation
|
|
|
|
Requires: ghc-filesystem
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n ghc-%{pkg_name}-doc
|
|
|
|
This package provides the Haskell %{pkg_name} library documentation.
|
|
|
|
|
|
|
|
%package -n ghc-%{pkg_name}-prof
|
|
|
|
Summary: Haskell %{pkg_name} profiling library
|
|
|
|
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
|
|
|
|
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
|
|
|
|
|
|
|
|
%description -n ghc-%{pkg_name}-prof
|
|
|
|
This package provides the Haskell %{pkg_name} profiling library.
|
|
|
|
|
2009-08-02 20:38:09 +02:00
|
|
|
%prep
|
2020-09-04 17:12:03 +02:00
|
|
|
%autosetup -n %{pkg_name}-%{version}
|
2024-05-27 15:00:26 +02:00
|
|
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
2009-08-02 20:38:09 +02:00
|
|
|
|
|
|
|
%build
|
2012-01-19 18:10:15 +01:00
|
|
|
%ghc_lib_build
|
2009-08-02 20:38:09 +02:00
|
|
|
|
|
|
|
%install
|
2012-01-19 18:10:15 +01:00
|
|
|
%ghc_lib_install
|
2009-08-02 20:38:09 +02:00
|
|
|
|
2016-07-18 14:27:16 +02:00
|
|
|
%check
|
2016-09-28 13:55:42 +02:00
|
|
|
%cabal_test
|
2016-07-18 14:27:16 +02:00
|
|
|
|
2013-08-03 10:33:34 +02:00
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
2009-08-02 20:38:09 +02:00
|
|
|
|
2013-08-03 10:33:34 +02:00
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
2009-08-02 20:38:09 +02:00
|
|
|
|
2013-08-03 10:33:34 +02:00
|
|
|
%files -f %{name}.files
|
2018-04-26 09:57:35 +02:00
|
|
|
%license LICENSE
|
2009-08-02 20:38:09 +02:00
|
|
|
|
2013-08-03 10:33:34 +02:00
|
|
|
%files devel -f %{name}-devel.files
|
2017-02-28 11:43:34 +01:00
|
|
|
%doc README.markdown changelog
|
2009-08-02 20:38:09 +02:00
|
|
|
|
2023-03-30 10:26:53 +02:00
|
|
|
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
|
|
|
|
|
2009-08-02 20:38:09 +02:00
|
|
|
%changelog
|