From 305699af594761a2a72814247de1d76d21dbcae6 Mon Sep 17 00:00:00 2001 From: David Shea Date: Nov 20 2017 15:32:15 +0000 Subject: New package ghc-codec-rpm --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eeeb08a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/codec-rpm-0.2.0.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 396412e..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ghc-codec-rpm - -The ghc-codec-rpm package \ No newline at end of file diff --git a/ghc-codec-rpm.spec b/ghc-codec-rpm.spec new file mode 100644 index 0000000..265c699 --- /dev/null +++ b/ghc-codec-rpm.spec @@ -0,0 +1,93 @@ +# generated by cabal-rpm-0.11.2 +# https://fedoraproject.org/wiki/Packaging:Haskell + +%global pkg_name codec-rpm +%global pkgver %{pkg_name}-%{version} + +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 0.2.0 +Release: 1%{?dist} +Summary: A library for manipulating RPM files + +License: LGPLv2+ +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-attoparsec-binary-devel +BuildRequires: ghc-attoparsec-devel +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-conduit-combinators-devel +BuildRequires: ghc-conduit-devel +BuildRequires: ghc-conduit-extra-devel +BuildRequires: ghc-cpio-conduit-devel +BuildRequires: ghc-lzma-conduit-devel +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-parsec-devel +BuildRequires: ghc-pretty-devel +BuildRequires: ghc-resourcet-devel +BuildRequires: ghc-text-devel +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-hspec-attoparsec-devel +BuildRequires: ghc-hspec-devel +%endif +# End cabal-rpm deps + +%description +This module provides a library for reading RPM files and converting them into +useful data structures. There is currently no way to operate in reverse - that +is, for building an RPM file out of a data structure. + + +%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 %{pkgver} + + +%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.md README.md examples + + +%changelog +* Mon Oct 23 2017 Fedora Haskell SIG - 0.2.0-1 +- spec file generated by cabal-rpm-0.11.2 diff --git a/sources b/sources new file mode 100644 index 0000000..3066609 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (codec-rpm-0.2.0.tar.gz) = f61991b8c505c2a1f8a45b17d37c2e6981a43a2f9566631cb7cf807ac08609af4af0e609f61038f044f98fd670aac3ce22349585bba4ce41658a08d86d21bf12