diff --git a/ghc-th-abstraction.spec b/ghc-th-abstraction.spec index 62e9cbb..e6a8537 100644 --- a/ghc-th-abstraction.spec +++ b/ghc-th-abstraction.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.1 +# generated by cabal-rpm-0.13 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name th-abstraction @@ -6,16 +6,19 @@ Name: ghc-%{pkg_name} Version: 0.2.8.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Nicer interface for reified information about data types License: ISC 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-containers-devel BuildRequires: ghc-template-haskell-devel # End cabal-rpm deps @@ -43,15 +46,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 @@ -67,7 +77,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 @@ -75,6 +87,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Sun Feb 17 2019 Jens Petersen - 0.2.8.0-4 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 0.2.8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/th-abstraction-0.2.8.0.cabal b/th-abstraction-0.2.8.0.cabal new file mode 100644 index 0000000..c86ffcc --- /dev/null +++ b/th-abstraction-0.2.8.0.cabal @@ -0,0 +1,44 @@ +name: th-abstraction +version: 0.2.8.0 +x-revision: 1 +synopsis: Nicer interface for reified information about data types +description: This package normalizes variations in the interface for + inspecting datatype information via Template Haskell + so that packages and support a single, easier to use + informational datatype while supporting many versions + of Template Haskell. +license: ISC +license-file: LICENSE +author: Eric Mertens +maintainer: emertens@gmail.com +copyright: 2017 Eric Mertens +homepage: https://github.com/glguy/th-abstraction +bug-reports: https://github.com/glguy/th-abstraction/issues +category: Development +build-type: Simple +extra-source-files: ChangeLog.md README.md +cabal-version: >=1.10 +tested-with: GHC==8.4.3, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2, GHC==7.2.2, GHC==7.0.4 + +source-repository head + type: git + location: https://github.com/glguy/th-abstraction.git + +library + exposed-modules: Language.Haskell.TH.Datatype + other-modules: Language.Haskell.TH.Datatype.Internal + build-depends: base >=4.3 && <5, + ghc-prim, + template-haskell >=2.5 && <2.15, + containers >=0.4 && <0.7 + hs-source-dirs: src + default-language: Haskell2010 + +test-suite unit-tests + other-modules: Harness + Types + type: exitcode-stdio-1.0 + main-is: Main.hs + build-depends: th-abstraction, base, containers, template-haskell + hs-source-dirs: test + default-language: Haskell2010