refresh to cabal-rpm-0.13

This commit is contained in:
Jens Petersen 2019-02-17 22:46:44 +08:00
parent 9c962c09f4
commit f9806dc067
2 changed files with 88 additions and 75 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 profunctors
@ -6,17 +6,19 @@
Name: ghc-%{pkg_name}
Version: 5.2.2
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Profunctors
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-base-orphans-devel
BuildRequires: ghc-bifunctors-devel
BuildRequires: ghc-comonad-devel
@ -59,16 +61,22 @@ documentation.
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
cp -p %{SOURCE1} %{pkg_name}.cabal
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
grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files
%if %{undefined without_haddock}
grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files
@ -84,7 +92,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev
%files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE
# End cabal-rpm files
%files devel -f %{name}-devel-nodoc.files
@ -98,6 +108,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev
%changelog
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 5.2.2-5
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

View File

@ -1,71 +1,71 @@
name: profunctors
category: Control, Categories
version: 5.2.2
x-revision: 2
license: BSD3
cabal-version: >= 1.10
license-file: LICENSE
author: Edward A. Kmett
maintainer: Edward A. Kmett <ekmett@gmail.com>
stability: experimental
homepage: http://github.com/ekmett/profunctors/
bug-reports: http://github.com/ekmett/profunctors/issues
copyright: Copyright (C) 2011-2015 Edward A. Kmett
synopsis: Profunctors
description: Profunctors.
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
build-type: Simple
extra-source-files:
.ghci
.gitignore
.travis.yml
.vim.custom
README.markdown
CHANGELOG.markdown
HLint.hs
source-repository head
type: git
location: git://github.com/ekmett/profunctors.git
library
build-depends:
base >= 4 && < 5,
base-orphans >= 0.4 && < 0.9,
bifunctors >= 5.2 && < 6,
comonad >= 4 && < 6,
contravariant >= 1 && < 2,
distributive >= 0.4.4 && < 1,
semigroups >= 0.11 && < 0.19,
tagged >= 0.4.4 && < 1,
transformers >= 0.2 && < 0.6
exposed-modules:
Data.Profunctor
Data.Profunctor.Adjunction
Data.Profunctor.Cayley
Data.Profunctor.Choice
Data.Profunctor.Closed
Data.Profunctor.Composition
Data.Profunctor.Mapping
Data.Profunctor.Monad
Data.Profunctor.Ran
Data.Profunctor.Rep
Data.Profunctor.Sieve
Data.Profunctor.Strong
Data.Profunctor.Traversing
Data.Profunctor.Types
Data.Profunctor.Unsafe
Data.Profunctor.Yoneda
ghc-options: -Wall -O2
hs-source-dirs: src
default-language: Haskell2010
other-extensions:
CPP
GADTs
FlexibleContexts
FlexibleInstances
UndecidableInstances
TypeFamilies
name: profunctors
category: Control, Categories
version: 5.2.2
x-revision: 2
license: BSD3
cabal-version: >= 1.10
license-file: LICENSE
author: Edward A. Kmett
maintainer: Edward A. Kmett <ekmett@gmail.com>
stability: experimental
homepage: http://github.com/ekmett/profunctors/
bug-reports: http://github.com/ekmett/profunctors/issues
copyright: Copyright (C) 2011-2015 Edward A. Kmett
synopsis: Profunctors
description: Profunctors.
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
build-type: Simple
extra-source-files:
.ghci
.gitignore
.travis.yml
.vim.custom
README.markdown
CHANGELOG.markdown
HLint.hs
source-repository head
type: git
location: git://github.com/ekmett/profunctors.git
library
build-depends:
base >= 4 && < 5,
base-orphans >= 0.4 && < 0.9,
bifunctors >= 5.2 && < 6,
comonad >= 4 && < 6,
contravariant >= 1 && < 2,
distributive >= 0.4.4 && < 1,
semigroups >= 0.11 && < 0.19,
tagged >= 0.4.4 && < 1,
transformers >= 0.2 && < 0.6
exposed-modules:
Data.Profunctor
Data.Profunctor.Adjunction
Data.Profunctor.Cayley
Data.Profunctor.Choice
Data.Profunctor.Closed
Data.Profunctor.Composition
Data.Profunctor.Mapping
Data.Profunctor.Monad
Data.Profunctor.Ran
Data.Profunctor.Rep
Data.Profunctor.Sieve
Data.Profunctor.Strong
Data.Profunctor.Traversing
Data.Profunctor.Types
Data.Profunctor.Unsafe
Data.Profunctor.Yoneda
ghc-options: -Wall -O2
hs-source-dirs: src
default-language: Haskell2010
other-extensions:
CPP
GADTs
FlexibleContexts
FlexibleInstances
UndecidableInstances
TypeFamilies