refresh to cabal-rpm-0.13

This commit is contained in:
Jens Petersen 2019-02-17 22:48:02 +08:00
parent 069122cbb5
commit 45fa9151e4
2 changed files with 104 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-0.12.5
# generated by cabal-rpm-0.13
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name zip-archive
@ -10,16 +10,19 @@
Name: ghc-%{pkg_name}
Version: 0.3.3
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Library for creating and modifying zip archives
License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-array-devel
BuildRequires: ghc-binary-devel
BuildRequires: ghc-bytestring-devel
@ -62,15 +65,22 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal
# End cabal-rpm setup
%build
# Begin cabal-rpm build:
%ghc_lib_build
# End cabal-rpm build
%install
# Begin cabal-rpm install
%ghc_lib_install
# End cabal-rpm install
%check
@ -86,7 +96,9 @@ This package provides the Haskell %{pkg_name} library development files.
%files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE
# End cabal-rpm files
%files devel -f %{name}-devel.files
@ -94,6 +106,9 @@ This package provides the Haskell %{pkg_name} library development files.
%changelog
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.3.3-3
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

86
zip-archive-0.3.3.cabal Normal file
View File

@ -0,0 +1,86 @@
Name: zip-archive
Version: 0.3.3
x-revision: 1
Cabal-Version: >= 1.10
Build-type: Custom
Synopsis: Library for creating and modifying zip archives.
Description: The zip-archive library provides functions for creating, modifying,
and extracting files from zip archives.
Category: Codec
Tested-with: GHC == 7.8.2, GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2
License: BSD3
License-file: LICENSE
Homepage: http://github.com/jgm/zip-archive
Author: John MacFarlane
Maintainer: jgm@berkeley.edu
Extra-Source-Files: changelog
README.markdown
tests/test4.zip
tests/test4/a.txt
tests/test4/b.bin
"tests/test4/c/with spaces.txt"
tests/zip_with_symlinks.zip
Source-repository head
type: git
location: git://github.com/jgm/zip-archive.git
flag executable
Description: Build the Zip executable.
Default: False
Library
Build-depends: base >= 4.5 && < 5,
pretty,
containers,
binary >= 0.6,
zlib,
filepath,
bytestring >= 0.10.0,
array,
mtl,
text >= 0.11,
digest >= 0.0.0.1,
directory >= 1.2.0,
time
Exposed-modules: Codec.Archive.Zip
Default-Language: Haskell98
Hs-Source-Dirs: src
Ghc-Options: -Wall
if os(windows)
cpp-options: -D_WINDOWS
else
Build-depends: unix
custom-setup
setup-depends: base, Cabal
Executable zip-archive
if flag(executable)
Buildable: True
else
Buildable: False
Main-is: Main.hs
Hs-Source-Dirs: .
Build-Depends: base >= 4.2 && < 5,
directory >= 1.1,
bytestring >= 0.9.0,
zip-archive
Other-Modules: Paths_zip_archive
Ghc-Options: -Wall
Default-Language: Haskell98
Test-Suite test-zip-archive
Type: exitcode-stdio-1.0
Main-Is: test-zip-archive.hs
Hs-Source-Dirs: tests
Build-Depends: base >= 4.2 && < 5,
directory >= 1.3, bytestring >= 0.9.0, process, time,
HUnit, zip-archive, temporary, filepath
Default-Language: Haskell98
Ghc-Options: -Wall
if os(windows)
cpp-options: -D_WINDOWS
else
Build-tools: unzip
Build-depends: unix