Blame SPECS/ghc-memory.spec

14c423
# generated by cabal-rpm-0.12.1
14c423
# https://fedoraproject.org/wiki/Packaging:Haskell
14c423
14c423
%global pkg_name memory
14c423
%global pkgver %{pkg_name}-%{version}
14c423
14c423
%bcond_with tests
14c423
14c423
Name:           ghc-%{pkg_name}
14c423
Version:        0.14.11
14c423
Release:        2%{?dist}
14c423
Summary:        Memory and related abstraction stuff
14c423
14c423
License:        BSD
14c423
Url:            https://hackage.haskell.org/package/%{pkg_name}
14c423
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
14c423
14c423
BuildRequires:  ghc-Cabal-devel
14c423
BuildRequires:  ghc-rpm-macros
14c423
# Begin cabal-rpm deps:
14c423
BuildRequires:  ghc-basement-devel
14c423
BuildRequires:  ghc-bytestring-devel
14c423
BuildRequires:  ghc-deepseq-devel
14c423
BuildRequires:  ghc-foundation-devel
14c423
%if %{with tests}
14c423
BuildRequires:  ghc-tasty-devel
14c423
BuildRequires:  ghc-tasty-hunit-devel
14c423
BuildRequires:  ghc-tasty-quickcheck-devel
14c423
%endif
14c423
# End cabal-rpm deps
14c423
14c423
%description
14c423
Chunk of memory, polymorphic byte array management and manipulation
14c423
14c423
* A polymorphic byte array abstraction and function similar to strict
14c423
ByteString.
14c423
14c423
* Different type of byte array abstraction.
14c423
14c423
* Raw memory IO operations (memory set, memory copy, ..)
14c423
14c423
* Aliasing with endianness support.
14c423
14c423
* Encoding : Base16, Base32, Base64.
14c423
14c423
* Hashing : FNV, SipHash.
14c423
14c423
14c423
%package devel
14c423
Summary:        Haskell %{pkg_name} library development files
14c423
Provides:       %{name}-static = %{version}-%{release}
14c423
Provides:       %{name}-doc = %{version}-%{release}
14c423
%if %{defined ghc_version}
14c423
Requires:       ghc-compiler = %{ghc_version}
14c423
Requires(post): ghc-compiler = %{ghc_version}
14c423
Requires(postun): ghc-compiler = %{ghc_version}
14c423
%endif
14c423
Requires:       %{name}%{?_isa} = %{version}-%{release}
14c423
14c423
%description devel
14c423
This package provides the Haskell %{pkg_name} library development files.
14c423
14c423
14c423
%package devel-doc
14c423
Summary:        Haskell %{pkg_name} library development documentation
14c423
14c423
BuildArch:      noarch
14c423
14c423
%description devel-doc
14c423
This package provides the Haskell %{pkg_name} library development
14c423
documentation.
14c423
14c423
14c423
%prep
14c423
%setup -q -n %{pkgver}
14c423
14c423
14c423
%build
14c423
%ghc_lib_build
14c423
14c423
14c423
%install
14c423
%ghc_lib_install
14c423
grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files
14c423
grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files
14c423
14c423
14c423
%check
14c423
%cabal_test
14c423
14c423
14c423
%post devel
14c423
%ghc_pkg_recache
14c423
14c423
14c423
%postun devel
14c423
%ghc_pkg_recache
14c423
14c423
14c423
%files -f %{name}.files
14c423
%license LICENSE
14c423
14c423
14c423
%files devel -f %{name}-devel-nodoc.files
14c423
%doc CHANGELOG.md README.md
14c423
14c423
14c423
%files devel-doc -f %{name}-devel-doc.files
14c423
%doc CHANGELOG.md README.md
14c423
14c423
14c423
%changelog
14c423
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.11-2
14c423
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
14c423
14c423
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 0.14.11-1
14c423
- update to 0.14.11
14c423
14c423
* Sun Sep 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.14.6-2
14c423
- Split documentation into separate subpackage.
14c423
14c423
* Sun Sep 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.14.6-1
14c423
- Update to latest version.
14c423
14c423
* Sun Aug 27 2017 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.14.6-1
14c423
- spec file generated by cabal-rpm-0.11.2