refresh to cabal-rpm-0.13

This commit is contained in:
Jens Petersen 2019-02-17 22:43:16 +08:00
parent 3e0cfada16
commit 88b4f93550
2 changed files with 60 additions and 3 deletions

42
Only-0.1.cabal Normal file
View File

@ -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 </package/OneTuple OneTuple package> 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

View File

@ -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 <petersen@redhat.com> - 0.1-6
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild