cblrpm refresh

This commit is contained in:
Jens Petersen 2015-01-28 14:49:28 +09:00
parent b226017965
commit 63e00977f2
1 changed files with 26 additions and 5 deletions

View File

@ -2,19 +2,29 @@
%global pkg_name base64-bytestring
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 1.0.0.1
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Fast base64 encoding and decoding for ByteStrings
License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name}
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-bytestring-devel
%if %{with tests}
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-test-framework-devel
BuildRequires: ghc-test-framework-hunit-devel
BuildRequires: ghc-test-framework-quickcheck2-devel
%endif
# End cabal-rpm deps
%description
@ -23,13 +33,15 @@ Fast base64 encoding and decoding for ByteStrings.
%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} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
This package provides the Haskell %{pkg_name} library development
files.
%prep
@ -44,6 +56,12 @@ This package provides the Haskell %{pkg_name} library development files.
%ghc_lib_install
%check
%if %{with tests}
%cabal test
%endif
%post devel
%ghc_pkg_recache
@ -61,6 +79,9 @@ This package provides the Haskell %{pkg_name} library development files.
%changelog
* Wed Jan 28 2015 Jens Petersen <petersen@redhat.com> - 1.0.0.1-6
- cblrpm refresh
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild