Initial import (rhbz#1633405).

This commit is contained in:
Ben Rosser 2018-09-28 13:44:23 -04:00
parent 0b1061f4a5
commit 866562baf2
3 changed files with 79 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.rpm
/url-2.1.3.tar.gz

76
ghc-url.spec Normal file
View File

@ -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 <haskell@lists.fedoraproject.org> - 2.1.3-1
- spec file generated by cabal-rpm-0.12.4

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (url-2.1.3.tar.gz) = 53ee2aabc877c91d06c7e029ff807057f88bb4ce712ad02d47655d43869ad83af9032eea85d0ecddf3cad19839827bb723c9bf0a17b580ee7018f4b08c691cd8