use revised .cabal

This commit is contained in:
Jens Petersen 2019-02-16 13:05:41 +08:00
parent 0522deaac2
commit 167be045d8
2 changed files with 67 additions and 3 deletions

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 old-time
@ -6,12 +6,13 @@
Name: ghc-%{pkg_name}
Version: 1.1.0.3
Release: 9%{?dist}
Release: 10%{?dist}
Summary: Time library
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
@ -43,7 +44,7 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkgver}
cabal-tweak-dep-ver base '< 4.9' '< 4.11'
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
@ -71,6 +72,9 @@ cabal-tweak-dep-ver base '< 4.9' '< 4.11'
%changelog
* Sat Feb 16 2019 Jens Petersen <petersen@redhat.com> - 1.1.0.3-10
- use revised .cabal file
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

60
old-time-1.1.0.3.cabal Normal file
View File

@ -0,0 +1,60 @@
name: old-time
version: 1.1.0.3
x-revision: 2
-- NOTE: Don't forget to update ./changelog.md
license: BSD3
license-file: LICENSE
maintainer: libraries@haskell.org
bug-reports: https://github.com/haskell/old-time/issues
synopsis: Time library
category: System
build-type: Configure
cabal-Version: >=1.10
description:
This package provides the old time library.
.
For new projects, the newer
<http://hackage.haskell.org/package/time time library>
is recommended.
extra-source-files:
aclocal.m4
changelog.md
config.guess
config.sub
configure
configure.ac
include/HsTimeConfig.h.in
install-sh
old-time.buildinfo
extra-tmp-files:
autom4te.cache
config.log
config.status
include/HsTimeConfig.h
source-repository head
type: git
location: https://github.com/haskell/old-time.git
Library
default-language: Haskell2010
other-extensions: Trustworthy
exposed-modules:
System.Time
c-sources:
cbits/timeUtils.c
include-dirs: include
includes: HsTime.h
install-includes:
HsTime.h
build-depends:
base >= 4.7 && < 5,
old-locale == 1.0.*
ghc-options: -Wall