refresh to cabal-rpm-0.13

This commit is contained in:
Jens Petersen 2019-02-17 22:43:18 +08:00
parent 8d5d3201c5
commit c8f6c0eeca
2 changed files with 52 additions and 42 deletions

View File

@ -1,34 +1,34 @@
Name: SafeSemaphore
Version: 0.10.1
x-revision: 1
Synopsis: Much safer replacement for QSemN, QSem, and SampleVar
Description: This provides a much safer semaphore than the QSem, QSemN, SampleVar in base.
Those base modules are not exception safe and can be broken by killThread.
See <https://github.com/ChrisKuklewicz/SafeSemaphore> for more details.
Homepage: https://github.com/ChrisKuklewicz/SafeSemaphore
License: BSD3
License-file: LICENSE
Author: Chris Kuklewicz <haskell@list.mightyreason.com>
Maintainer: Chris Kuklewicz <haskell@list.mightyreason.com>
Category: Concurrency
Build-type: Simple
Cabal-version: >=1.8
Library
Hs-Source-Dirs: src
ghc-options: -Wall -O2 -funbox-strict-fields
Exposed-modules: Control.Concurrent.MSem
Control.Concurrent.MSemN
Control.Concurrent.MSemN2
Control.Concurrent.MSampleVar
Control.Concurrent.FairRWLock
Control.Concurrent.SSem
Control.Concurrent.STM.SSem
Other-modules: Control.Concurrent.STM.SSemInternals
Build-depends: base >=4.4 && <5, containers, stm
Test-Suite TestSafeSemaphore
type: exitcode-stdio-1.0
main-is: tests/TestKillSem.hs
build-depends: base < 5, SafeSemaphore, HUnit
Name: SafeSemaphore
Version: 0.10.1
x-revision: 1
Synopsis: Much safer replacement for QSemN, QSem, and SampleVar
Description: This provides a much safer semaphore than the QSem, QSemN, SampleVar in base.
Those base modules are not exception safe and can be broken by killThread.
See <https://github.com/ChrisKuklewicz/SafeSemaphore> for more details.
Homepage: https://github.com/ChrisKuklewicz/SafeSemaphore
License: BSD3
License-file: LICENSE
Author: Chris Kuklewicz <haskell@list.mightyreason.com>
Maintainer: Chris Kuklewicz <haskell@list.mightyreason.com>
Category: Concurrency
Build-type: Simple
Cabal-version: >=1.8
Library
Hs-Source-Dirs: src
ghc-options: -Wall -O2 -funbox-strict-fields
Exposed-modules: Control.Concurrent.MSem
Control.Concurrent.MSemN
Control.Concurrent.MSemN2
Control.Concurrent.MSampleVar
Control.Concurrent.FairRWLock
Control.Concurrent.SSem
Control.Concurrent.STM.SSem
Other-modules: Control.Concurrent.STM.SSemInternals
Build-depends: base >=4.4 && <5, containers, stm
Test-Suite TestSafeSemaphore
type: exitcode-stdio-1.0
main-is: tests/TestKillSem.hs
build-depends: base < 5, SafeSemaphore, HUnit

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 SafeSemaphore
@ -6,22 +6,21 @@
%bcond_without tests
# no useful debuginfo for Haskell packages without C sources
%global debug_package %{nil}
Name: ghc-%{pkg_name}
Version: 0.10.1
Release: 12%{?dist}
Release: 13%{?dist}
Summary: Much safer replacement for QSemN, QSem, and SampleVar
License: BSD
URL: https://hackage.haskell.org/package/%{pkg_name}
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-stm-devel
%if %{with tests}
@ -51,16 +50,22 @@ This package provides the Haskell %{pkg_name} library development files.
%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
%check
@ -76,13 +81,18 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
%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.10.1-13
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild