refresh to cabal-rpm-0.13

This commit is contained in:
Jens Petersen 2019-02-17 22:47:12 +08:00
parent 2311a31821
commit e49b1bc613
2 changed files with 76 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 # https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name split %global pkg_name split
@ -9,16 +9,19 @@
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 0.2.3.3 Version: 0.2.3.3
Release: 2%{?dist} Release: 3%{?dist}
Summary: Combinator library for splitting lists Summary: Combinator library for splitting lists
License: BSD License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name} Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz 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-Cabal-devel
BuildRequires: ghc-rpm-macros BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
%if %{with tests} %if %{with tests}
BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-QuickCheck-devel
%endif %endif
@ -59,15 +62,22 @@ This package provides the Haskell %{pkg_name} library development files.
%prep %prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver} %setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal
# End cabal-rpm setup
%build %build
# Begin cabal-rpm build:
%ghc_lib_build %ghc_lib_build
# End cabal-rpm build
%install %install
# Begin cabal-rpm install
%ghc_lib_install %ghc_lib_install
# End cabal-rpm install
%check %check
@ -83,7 +93,9 @@ This package provides the Haskell %{pkg_name} library development files.
%files -f %{name}.files %files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE %license LICENSE
# End cabal-rpm files
%files devel -f %{name}-devel.files %files devel -f %{name}-devel.files
@ -91,6 +103,9 @@ This package provides the Haskell %{pkg_name} library development files.
%changelog %changelog
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.2.3.3-3
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3.3-2 * Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

58
split-0.2.3.3.cabal Normal file
View File

@ -0,0 +1,58 @@
Name: split
Version: 0.2.3.3
x-revision: 1
Stability: stable
Description: A collection of various methods for splitting
lists into parts, akin to the \"split\" function
found in several mainstream languages. Here is
its tale:
.
Once upon a time the standard "Data.List" module
held no function for splitting a list into parts
according to a delimiter. Many a brave
lambda-knight strove to add such a function, but
their striving was in vain, for Lo, the Supreme
Council fell to bickering amongst themselves what
was to be the essential nature of the One True
Function which could cleave a list in twain (or
thrain, or any required number of parts).
.
And thus came to pass the split package,
comprising divers functions for splitting a list
asunder, each according to its nature. And the
Supreme Council had no longer any grounds for
argument, for the favored method of each was
contained therein.
.
To get started, see the "Data.List.Split" module.
Synopsis: Combinator library for splitting lists.
License: BSD3
License-file: LICENSE
Copyright: (c) Brent Yorgey, Louis Wasserman 2008-2012
Extra-source-files: README, test/Properties.hs, CHANGES
Author: Brent Yorgey
Maintainer: byorgey@gmail.com
Category: List
Build-type: Simple
Cabal-Version: >= 1.10
Tested-with: GHC ==7.0.4, GHC ==7.2.2, GHC ==7.4.2, GHC ==7.6.3, GHC ==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC ==8.2.2, GHC==8.4.1
Bug-reports: https://github.com/byorgey/split/issues
Test-suite split-tests
type: exitcode-stdio-1.0
main-is: Properties.hs
build-depends: base, QuickCheck >= 2.4, split
default-language: Haskell2010
Hs-source-dirs: test
Source-repository head
type: git
location: http://github.com/byorgey/split.git
Library
ghc-options: -Wall
build-depends: base <4.13
exposed-modules: Data.List.Split, Data.List.Split.Internals
default-language: Haskell2010
Hs-source-dirs: src