use revised .cabal

This commit is contained in:
Jens Petersen 2019-02-16 12:18:57 +08:00
parent 0b401369ba
commit 5873291d24
2 changed files with 48 additions and 4 deletions

40
cautious-file-1.0.2.cabal Normal file
View File

@ -0,0 +1,40 @@
name: cautious-file
version: 1.0.2
x-revision: 2
Cabal-Version: >= 1.6
synopsis: Ways to write a file cautiously, to reduce the chances of problems such as data loss due to crashes or power failures
description: On non-Windows systems, posix-specific functions are used to reduce the chance of data loss further
category: System
license: BSD3
license-file: LICENSE
copyright: Copyright (C) Robin Green 2009, 2011
author: Robin Green
maintainer: Robin Green <greenrd@greenrd.org>
build-type: Custom
stability: experimental
bug-reports: mailto:greenrd@greenrd.org
tested-with: GHC == 7.0.2
extra-source-files: Test.hs
source-repository head
type: darcs
location: http://patch-tag.com/r/greenrd/cautious-file
Flag posix
description: Use POSIX-specific features
default: True
custom-setup
setup-depends: Cabal, base, process
Library
hs-source-dirs: src
build-Depends: base >= 4, base < 5, directory >= 1.1, directory < 1.4, filepath >= 1.2, filepath < 1.5, bytestring >= 0.9, bytestring < 0.11
if flag(posix) && !os(Windows)
cpp-options: -D_POSIX
build-Depends: unix
exposed-modules: System.Posix.ByteLevel, System.Posix.Fsync
exposed-modules: System.IO.Cautious
ghc-options: -Wall
build-tools: hsc2hs

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-0.12.1
# generated by cabal-rpm-0.12.5
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name cautious-file
@ -6,12 +6,13 @@
Name: ghc-%{pkg_name}
Version: 1.0.2
Release: 17%{?dist}
Release: 18%{?dist}
Summary: Write files cautiously
License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
@ -19,6 +20,7 @@ BuildRequires: ghc-rpm-macros
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-unix-devel
# End cabal-rpm deps
@ -46,8 +48,7 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkgver}
cabal-tweak-dep-ver directory '< 1.3' '< 1.4'
cabal-tweak-dep-ver filepath '< 1.4' '< 1.5'
cp -bp %{SOURCE1} %{pkg_name}.cabal
%build
@ -74,6 +75,9 @@ cabal-tweak-dep-ver filepath '< 1.4' '< 1.5'
%changelog
* Sat Feb 16 2019 Jens Petersen <petersen@redhat.com> - 1.0.2-18
- use revised .cabal file
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild