refresh to cabal-rpm-0.13

This commit is contained in:
Jens Petersen 2019-02-17 22:46:39 +08:00
parent a94982648a
commit 0b7c619e98
2 changed files with 145 additions and 132 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 persistent
@ -8,17 +8,19 @@
Name: ghc-%{pkg_name}
Version: 2.8.2
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Type-safe, multi-backend data serialization
License: MIT
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-aeson-devel
BuildRequires: ghc-attoparsec-devel
BuildRequires: ghc-base64-bytestring-devel
@ -90,16 +92,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
@ -119,7 +127,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
@ -133,6 +143,9 @@ grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-dev
%changelog
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 2.8.2-5
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

View File

@ -1,128 +1,128 @@
name: persistent
version: 2.8.2
x-revision: 1
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
maintainer: Michael Snoyman <michael@snoyman.com>, Greg Weber <greg@gregweber.info>
synopsis: Type-safe, multi-backend data serialization.
description: Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/persistent>.
category: Database, Yesod
stability: Stable
cabal-version: >= 1.8
build-type: Simple
homepage: http://www.yesodweb.com/book/persistent
bug-reports: https://github.com/yesodweb/persistent/issues
extra-source-files: ChangeLog.md README.md
flag nooverlap
default: False
description: test out our assumption that OverlappingInstances is just for String
library
if flag(nooverlap)
cpp-options: -DNO_OVERLAP
build-depends: base >= 4.8 && < 5
, bytestring >= 0.9
, transformers >= 0.2.1
, time >= 1.1.4
, old-locale
, text >= 0.8
, containers >= 0.2
, conduit >= 1.2.8
, resourcet >= 1.1.10
, resource-pool >= 0.2.2.0
, path-pieces >= 0.1
, http-api-data >= 0.2 && < 0.4
, aeson >= 0.5
, monad-logger >= 0.3.28
, base64-bytestring
, unordered-containers
, vector
, attoparsec
, template-haskell
, haskell-src-meta
, blaze-html >= 0.5
, blaze-markup >= 0.5.1
, silently
, mtl
, fast-logger >= 2.1
, scientific
, tagged
, unliftio-core
, void
exposed-modules: Database.Persist
Database.Persist.Quasi
Database.Persist.Types
Database.Persist.Class
Database.Persist.Sql
Database.Persist.Sql.Util
Database.Persist.Sql.Types.Internal
other-modules: Database.Persist.Types.Base
Database.Persist.Class.DeleteCascade
Database.Persist.Class.PersistEntity
Database.Persist.Class.PersistQuery
Database.Persist.Class.PersistUnique
Database.Persist.Class.PersistConfig
Database.Persist.Class.PersistField
Database.Persist.Class.PersistStore
Database.Persist.Sql.Migration
Database.Persist.Sql.Internal
Database.Persist.Sql.Types
Database.Persist.Sql.Raw
Database.Persist.Sql.Raw.QQ
Database.Persist.Sql.Run
Database.Persist.Sql.Class
Database.Persist.Sql.Orphan.PersistQuery
Database.Persist.Sql.Orphan.PersistStore
Database.Persist.Sql.Orphan.PersistUnique
ghc-options: -Wall
test-suite test
type: exitcode-stdio-1.0
main-is: test/main.hs
build-depends: base >= 4.8 && < 5
, hspec >= 1.3
, containers
, text
, unordered-containers
, time
, old-locale
, bytestring
, vector
, base64-bytestring
, attoparsec
, transformers
, path-pieces
, http-api-data >= 0.2 && < 0.4
, aeson
, resourcet
, monad-logger
, conduit
, monad-control
, blaze-html
, scientific
, tagged
, fast-logger >= 2.1
, mtl
, template-haskell
, resource-pool
cpp-options: -DTEST
other-modules: Database.Persist.Class.PersistEntity
Database.Persist.Class.PersistField
Database.Persist.Quasi
Database.Persist.Types
Database.Persist.Types.Base
source-repository head
type: git
location: git://github.com/yesodweb/persistent.git
name: persistent
version: 2.8.2
x-revision: 1
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
maintainer: Michael Snoyman <michael@snoyman.com>, Greg Weber <greg@gregweber.info>
synopsis: Type-safe, multi-backend data serialization.
description: Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/persistent>.
category: Database, Yesod
stability: Stable
cabal-version: >= 1.8
build-type: Simple
homepage: http://www.yesodweb.com/book/persistent
bug-reports: https://github.com/yesodweb/persistent/issues
extra-source-files: ChangeLog.md README.md
flag nooverlap
default: False
description: test out our assumption that OverlappingInstances is just for String
library
if flag(nooverlap)
cpp-options: -DNO_OVERLAP
build-depends: base >= 4.8 && < 5
, bytestring >= 0.9
, transformers >= 0.2.1
, time >= 1.1.4
, old-locale
, text >= 0.8
, containers >= 0.2
, conduit >= 1.2.8
, resourcet >= 1.1.10
, resource-pool >= 0.2.2.0
, path-pieces >= 0.1
, http-api-data >= 0.2 && < 0.4
, aeson >= 0.5
, monad-logger >= 0.3.28
, base64-bytestring
, unordered-containers
, vector
, attoparsec
, template-haskell
, haskell-src-meta
, blaze-html >= 0.5
, blaze-markup >= 0.5.1
, silently
, mtl
, fast-logger >= 2.1
, scientific
, tagged
, unliftio-core
, void
exposed-modules: Database.Persist
Database.Persist.Quasi
Database.Persist.Types
Database.Persist.Class
Database.Persist.Sql
Database.Persist.Sql.Util
Database.Persist.Sql.Types.Internal
other-modules: Database.Persist.Types.Base
Database.Persist.Class.DeleteCascade
Database.Persist.Class.PersistEntity
Database.Persist.Class.PersistQuery
Database.Persist.Class.PersistUnique
Database.Persist.Class.PersistConfig
Database.Persist.Class.PersistField
Database.Persist.Class.PersistStore
Database.Persist.Sql.Migration
Database.Persist.Sql.Internal
Database.Persist.Sql.Types
Database.Persist.Sql.Raw
Database.Persist.Sql.Raw.QQ
Database.Persist.Sql.Run
Database.Persist.Sql.Class
Database.Persist.Sql.Orphan.PersistQuery
Database.Persist.Sql.Orphan.PersistStore
Database.Persist.Sql.Orphan.PersistUnique
ghc-options: -Wall
test-suite test
type: exitcode-stdio-1.0
main-is: test/main.hs
build-depends: base >= 4.8 && < 5
, hspec >= 1.3
, containers
, text
, unordered-containers
, time
, old-locale
, bytestring
, vector
, base64-bytestring
, attoparsec
, transformers
, path-pieces
, http-api-data >= 0.2 && < 0.4
, aeson
, resourcet
, monad-logger
, conduit
, monad-control
, blaze-html
, scientific
, tagged
, fast-logger >= 2.1
, mtl
, template-haskell
, resource-pool
cpp-options: -DTEST
other-modules: Database.Persist.Class.PersistEntity
Database.Persist.Class.PersistField
Database.Persist.Quasi
Database.Persist.Types
Database.Persist.Types.Base
source-repository head
type: git
location: git://github.com/yesodweb/persistent.git