refresh to cabal-rpm-0.13

This commit is contained in:
Jens Petersen 2019-02-17 22:44:03 +08:00
parent 84d93427d6
commit 86faa0c76f
2 changed files with 62 additions and 3 deletions

44
connection-0.2.8.cabal Normal file
View File

@ -0,0 +1,44 @@
Name: connection
Version: 0.2.8
x-revision: 1
Description:
Simple network library for all your connection need.
.
Features: Really simple to use, SSL/TLS, SOCKS.
.
This library provides a very simple api to create sockets
to a destination with the choice of SSL/TLS, and SOCKS.
License: BSD3
License-file: LICENSE
Copyright: Vincent Hanquez <vincent@snarc.org>
Author: Vincent Hanquez <vincent@snarc.org>
Maintainer: Vincent Hanquez <vincent@snarc.org>
Synopsis: Simple and easy network connections API
Build-Type: Simple
Category: Network
stability: experimental
Cabal-Version: >=1.6
Homepage: http://github.com/vincenthz/hs-connection
extra-source-files: README.md
CHANGELOG.md
Library
Build-Depends: base >= 3 && < 5
, bytestring
, byteable
, containers
, data-default-class
, network >= 2.3 && < 2.9
, tls >= 1.3
, socks >= 0.5.5
, x509 >= 1.5
, x509-store >= 1.5
, x509-system >= 1.5
, x509-validation >= 1.5
Exposed-modules: Network.Connection
Other-modules: Network.Connection.Types
ghc-options: -Wall
source-repository head
type: git
location: https://github.com/vincenthz/hs-connection

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 connection
@ -6,16 +6,19 @@
Name: ghc-%{pkg_name}
Version: 0.2.8
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Simple and easy network connections API
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-byteable-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
@ -54,15 +57,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
@ -74,7 +84,9 @@ 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
@ -82,6 +94,9 @@ This package provides the Haskell %{pkg_name} library development files.
%changelog
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.2.8-8
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild