Initial import (#1485514).

This commit is contained in:
Elliott Sales de Andrade 2017-08-28 17:18:15 -04:00
parent f45d66047e
commit ae9434f838
5 changed files with 144 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/dns-2.0.10.tar.gz

View File

@ -0,0 +1,35 @@
From abf985164098a5428338e8267476052aa34f9b96 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Sat, 22 Jul 2017 00:21:32 -0400
Subject: [PATCH] Remove bytestring-builder dependency.
It was removed in b00335f8b0a6e1c287f87450190fda266968ae58.
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
dns.cabal | 2 --
1 file changed, 2 deletions(-)
diff --git a/dns.cabal b/dns.cabal
index 4b5073a..f265037 100644
--- a/dns.cabal
+++ b/dns.cabal
@@ -30,7 +30,6 @@ Library
, attoparsec
, binary
, bytestring
- , bytestring-builder
, conduit >= 1.1
, conduit-extra >= 1.1
, containers
@@ -45,7 +44,6 @@ Library
, attoparsec
, binary
, bytestring
- , bytestring-builder
, conduit >= 1.1
, conduit-extra >= 1.1
, containers
--
2.9.4

View File

@ -1,3 +0,0 @@
# ghc-dns
The ghc-dns package

107
ghc-dns.spec Normal file
View File

@ -0,0 +1,107 @@
# generated by cabal-rpm-0.10.0
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name dns
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 2.0.10
Release: 1.git.0.29fc315%{?dist}
Summary: DNS library in Haskell
License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Patch0001: 0001-Remove-bytestring-builder-dependency.patch
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-attoparsec-devel
BuildRequires: ghc-binary-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-conduit-devel
BuildRequires: ghc-conduit-extra-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-iproute-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-network-devel
BuildRequires: ghc-random-devel
BuildRequires: ghc-resourcet-devel
BuildRequires: ghc-safe-devel
%if %{with tests}
BuildRequires: ghc-doctest-devel
BuildRequires: ghc-hspec-devel
BuildRequires: ghc-word8-devel
%endif
# End cabal-rpm deps
%description
A thread-safe DNS library for both clients and servers written in pure Haskell.
%package devel
Summary: Haskell %{pkg_name} library development files
Provides: %{name}-static = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
%patch0001 -p1
%build
%ghc_lib_build
%install
%ghc_lib_install
%check
%cabal_test
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%license LICENSE
%files devel -f %{name}-devel.files
%doc Changelog
%changelog
* Sat Jul 22 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.0.10-1
- Update to latest version.
- Remove bytestring-builder dependency.
* Mon Jul 17 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.0.2-6
- Re-add dist tag to release numbers.
* Mon Jul 17 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.0.2-5
- Bump for Fedora 26.
* Fri Dec 16 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.2-4
- Bump to rebuild against new dependencies
* Thu Dec 15 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.2-3
- Update release to be newer than previous builds
* Thu Dec 15 2016 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 2.0.2-1
- spec file generated by cabal-rpm-0.10.0

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (dns-2.0.10.tar.gz) = 55b16728c8c2a039a99af0ba6dc5f3365e734b9ef4111d0cf57069d8dd6c982358b37ea39b66c4aee32e61023e0f8077373333580e9ff6979650d1e93dd75a5a