From 88b4f9355029f9422f454ba7da2e3463c8fbb3b2 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 17 Feb 2019 22:43:16 +0800 Subject: [PATCH] refresh to cabal-rpm-0.13 --- Only-0.1.cabal | 42 ++++++++++++++++++++++++++++++++++++++++++ ghc-Only.spec | 21 ++++++++++++++++++--- 2 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 Only-0.1.cabal diff --git a/Only-0.1.cabal b/Only-0.1.cabal new file mode 100644 index 0000000..a419498 --- /dev/null +++ b/Only-0.1.cabal @@ -0,0 +1,42 @@ +name: Only +version: 0.1 +x-revision: 1 +synopsis: The 1-tuple type or single-value "collection" +license: BSD3 +license-file: LICENSE +author: Herbert Valerio Riedel +maintainer: hvr@gnu.org +bug-reports: https://github.com/hvr/Only/issues +category: Data +build-type: Simple +cabal-version: >=1.10 +description: + This package provides a canonical anonymous 1-tuple type missing + from Haskell for attaching typeclass instances. + . + NOTE: There is also the which + by using a boxed @data@-type provides a 1-tuple type which has + laziness properties which are more faithful to the ones of Haskell's + native tuples; whereas the primary purpose of 'Only' is to + provide the traditionally so named type-wrapper for attaching typeclass + instances. + +Source-Repository head + Type: git + Location: https://github.com/hvr/Only.git + +library + hs-source-dirs: src + exposed-modules: Data.Tuple.Only + + default-language: Haskell2010 + other-extensions: DeriveGeneric + , DeriveDataTypeable + , DeriveFunctor + , Safe + + build-depends: base >= 4.5 && <5 + , deepseq >= 1.1 && <1.5 + + if impl(ghc == 7.4.*) + build-depends: ghc-prim diff --git a/ghc-Only.spec b/ghc-Only.spec index 8956893..98c3707 100644 --- a/ghc-Only.spec +++ b/ghc-Only.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 Only @@ -6,16 +6,19 @@ Name: ghc-%{pkg_name} Version: 0.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: The 1-tuple type or single-value "collection" 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-deepseq-devel # End cabal-rpm deps @@ -46,15 +49,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 %post devel @@ -66,13 +76,18 @@ 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 %changelog +* Sun Feb 17 2019 Jens Petersen - 0.1-6 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 0.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild