revise .cabal
This commit is contained in:
parent
b05ba9c314
commit
bba26bfefa
|
@ -1,4 +1,4 @@
|
||||||
# generated by cabal-rpm-0.12.1
|
# generated by cabal-rpm-0.12.5
|
||||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
|
|
||||||
%global pkg_name hgettext
|
%global pkg_name hgettext
|
||||||
|
@ -6,12 +6,13 @@
|
||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 0.1.31.0
|
Version: 0.1.31.0
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Haskell binding to libintl
|
Summary: Haskell binding to libintl
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
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-Cabal-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
|
@ -55,6 +56,7 @@ This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{pkgver}
|
%setup -q -n %{pkgver}
|
||||||
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
@ -83,6 +85,9 @@ This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jul 28 2018 Jens Petersen <petersen@redhat.com> - 0.1.31.0-4
|
||||||
|
- revise .cabal
|
||||||
|
|
||||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.31.0-3
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.31.0-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,68 @@
|
||||||
|
cabal-version: 1.14
|
||||||
|
name: hgettext
|
||||||
|
version: 0.1.31.0
|
||||||
|
x-revision: 1
|
||||||
|
build-type: Simple
|
||||||
|
|
||||||
|
license: BSD3
|
||||||
|
license-file: LICENSE
|
||||||
|
|
||||||
|
author: Vasyl Pasternak
|
||||||
|
maintainer: Herbert Valerio Riedel
|
||||||
|
copyright: 2009 Vasyl Pasternak
|
||||||
|
category: Text
|
||||||
|
bug-reports: https://github.com/hvr/hgettext/issues
|
||||||
|
synopsis: Bindings to libintl.h (gettext, bindtextdomain)
|
||||||
|
description: This package provides bindings to the @gettext@ internationalization and localization (i18n) library.
|
||||||
|
.
|
||||||
|
This package provides support for custom @Setup.hs@ scripts via the "Distribution.Simple.I18N.GetText" module.
|
||||||
|
.
|
||||||
|
A user-contributed tutorial can be found in the [Haskell Wiki](https://wiki.haskell.org/Internationalization_of_Haskell_programs_using_gettext).
|
||||||
|
|
||||||
|
tested-with: GHC==8.2.2, GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2
|
||||||
|
|
||||||
|
source-repository head
|
||||||
|
type: git
|
||||||
|
location: https://github.com/hvr/hgettext.git
|
||||||
|
|
||||||
|
library
|
||||||
|
default-language: Haskell2010
|
||||||
|
exposed-modules: Text.I18N.GetText,
|
||||||
|
Distribution.Simple.I18N.GetText
|
||||||
|
other-modules: Internal
|
||||||
|
|
||||||
|
hs-source-dirs: src
|
||||||
|
build-depends: base >=4.5 && <4.12
|
||||||
|
, Cabal >=1.14 && <1.25 || == 2.0.* || == 2.2.*
|
||||||
|
, containers >=0.4.2 && <0.6
|
||||||
|
, directory >=1.1 && <1.4
|
||||||
|
, filepath >=1.3 && <1.5
|
||||||
|
, process >=1.1 && <1.7
|
||||||
|
, setlocale >=0.0.3 && <1.1
|
||||||
|
|
||||||
|
ghc-options: -Wall
|
||||||
|
|
||||||
|
-- temporary hack: https://github.com/haskell-hvr/hgettext/pull/3
|
||||||
|
if os(windows)
|
||||||
|
extra-libraries: libintl
|
||||||
|
|
||||||
|
executable hgettext
|
||||||
|
default-language: Haskell2010
|
||||||
|
|
||||||
|
main-is: hgettext.hs
|
||||||
|
other-modules: Paths_hgettext
|
||||||
|
|
||||||
|
hs-source-dirs: src-exe
|
||||||
|
|
||||||
|
-- constraints inherited from lib:hgettext
|
||||||
|
build-depends: hgettext
|
||||||
|
, base
|
||||||
|
, Cabal
|
||||||
|
, containers
|
||||||
|
, filepath
|
||||||
|
|
||||||
|
build-depends: deepseq >=1.1 && <1.5
|
||||||
|
, haskell-src-exts >=1.18 && <1.21
|
||||||
|
, uniplate >=1.6.12 && <1.7
|
||||||
|
|
||||||
|
ghc-options: -Wall
|
Loading…
Reference in New Issue