Blame SPECS/ghc-pem.spec

7d7351
# generated by cabal-rpm-0.12.1
7d7351
# https://fedoraproject.org/wiki/Packaging:Haskell
7d7351
7d7351
%global pkg_name pem
7d7351
%global pkgver %{pkg_name}-%{version}
7d7351
7d7351
%bcond_with tests
7d7351
7d7351
Name:           ghc-%{pkg_name}
7d7351
Version:        0.2.2
7d7351
Release:        7%{?dist}
7d7351
Summary:        Privacy Enhanced Mail (PEM) format reader and writer
7d7351
7d7351
License:        BSD
7d7351
Url:            https://hackage.haskell.org/package/%{pkg_name}
7d7351
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
7d7351
7d7351
BuildRequires:  ghc-Cabal-devel
7d7351
BuildRequires:  ghc-rpm-macros
7d7351
# Begin cabal-rpm deps:
7d7351
BuildRequires:  ghc-base64-bytestring-devel
7d7351
BuildRequires:  ghc-bytestring-devel
7d7351
BuildRequires:  ghc-mtl-devel
7d7351
%if %{with tests}
7d7351
BuildRequires:  ghc-HUnit-devel
7d7351
BuildRequires:  ghc-QuickCheck-devel
7d7351
BuildRequires:  ghc-test-framework-devel
7d7351
BuildRequires:  ghc-test-framework-hunit-devel
7d7351
BuildRequires:  ghc-test-framework-quickcheck2-devel
7d7351
%endif
7d7351
# End cabal-rpm deps
7d7351
7d7351
%description
7d7351
Privacy Enhanced Mail (PEM) format reader and writer.
7d7351
7d7351
7d7351
%package devel
7d7351
Summary:        Haskell %{pkg_name} library development files
7d7351
Provides:       %{name}-static = %{version}-%{release}
7d7351
Provides:       %{name}-doc = %{version}-%{release}
7d7351
%if %{defined ghc_version}
7d7351
Requires:       ghc-compiler = %{ghc_version}
7d7351
Requires(post): ghc-compiler = %{ghc_version}
7d7351
Requires(postun): ghc-compiler = %{ghc_version}
7d7351
%endif
7d7351
Requires:       %{name}%{?_isa} = %{version}-%{release}
7d7351
7d7351
%description devel
7d7351
This package provides the Haskell %{pkg_name} library development files.
7d7351
7d7351
7d7351
%prep
7d7351
%setup -q -n %{pkgver}
7d7351
7d7351
7d7351
%build
7d7351
%ghc_lib_build
7d7351
7d7351
7d7351
%install
7d7351
%ghc_lib_install
7d7351
7d7351
rm %{buildroot}%{_datadir}/%{pkgver}/README.md
7d7351
7d7351
7d7351
%check
7d7351
%cabal_test
7d7351
7d7351
7d7351
%post devel
7d7351
%ghc_pkg_recache
7d7351
7d7351
7d7351
%postun devel
7d7351
%ghc_pkg_recache
7d7351
7d7351
7d7351
%files -f %{name}.files
7d7351
%license LICENSE
7d7351
7d7351
7d7351
%files devel -f %{name}-devel.files
7d7351
%doc README.md
7d7351
7d7351
7d7351
%changelog
7d7351
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-7
7d7351
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7d7351
7d7351
* Fri Jan 26 2018 Jens Petersen <petersen@redhat.com> - 0.2.2-6
7d7351
- rebuild
7d7351
7d7351
* Mon Jul 17 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.2.2-5
7d7351
- Re-add dist tag to release numbers.
7d7351
7d7351
* Mon Jul 17 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.2.2-4
7d7351
- Bump for Fedora 26.
7d7351
7d7351
* Thu Dec 15 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.2.2-3
7d7351
- spec file generated by cabal-rpm-0.10.0
7d7351
- Update release to be newer than previous builds
7d7351
7d7351
* Mon May 02 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.2.2-2
7d7351
- Bump to rebuild against new dependencies
7d7351
7d7351
* Sun Aug 23 2015 Ben Boeckel <mathstuf@gmail.com> - 0.2.2-1
7d7351
- initial package