From 866562baf29d4894ce16b37ca952ae85137a885e Mon Sep 17 00:00:00 2001 From: Ben Rosser Date: Fri, 28 Sep 2018 13:44:23 -0400 Subject: [PATCH] Initial import (rhbz#1633405). --- .gitignore | 2 ++ ghc-url.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 79 insertions(+) create mode 100644 .gitignore create mode 100644 ghc-url.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0abcbd0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.rpm +/url-2.1.3.tar.gz diff --git a/ghc-url.spec b/ghc-url.spec new file mode 100644 index 0000000..c3e44f9 --- /dev/null +++ b/ghc-url.spec @@ -0,0 +1,76 @@ +# generated by cabal-rpm-0.12.4 +# https://fedoraproject.org/wiki/Packaging:Haskell + +%global pkg_name url +%global pkgver %{pkg_name}-%{version} + +Name: ghc-%{pkg_name} +Version: 2.1.3 +Release: 1%{?dist} +Summary: A library for working with URLs + +# Everything claims to be BSD. But the license file is for MIT... +# I filed https://github.com/yav/url/issues/8 +# maybe this should be denoted as "BSD and MIT" for now? +License: BSD + +Url: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz + +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: ghc-utf8-string-devel +# End cabal-rpm deps + +%description +A library for working with URLs. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +%if %{defined ghc_version} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} +%endif +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + + +%prep +%setup -q -n %{pkgver} + + +%build +%ghc_lib_build + + +%install +%ghc_lib_install + + +%post devel +%ghc_pkg_recache + + +%postun devel +%ghc_pkg_recache + + +%files -f %{name}.files +# Technically, this is (probably) the wrong LICENSE file. Not sure if it should +# just not be included here for now. +%license LICENSE + + +%files devel -f %{name}-devel.files + + +%changelog +* Thu Aug 16 2018 Fedora Haskell SIG - 2.1.3-1 +- spec file generated by cabal-rpm-0.12.4 diff --git a/sources b/sources new file mode 100644 index 0000000..98d2921 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (url-2.1.3.tar.gz) = 53ee2aabc877c91d06c7e029ff807057f88bb4ce712ad02d47655d43869ad83af9032eea85d0ecddf3cad19839827bb723c9bf0a17b580ee7018f4b08c691cd8