Blame SPECS/ghc-integer-logarithms.spec

10b4fd
# generated by cabal-rpm-0.12.1
10b4fd
# https://fedoraproject.org/wiki/Packaging:Haskell
10b4fd
10b4fd
%global pkg_name integer-logarithms
10b4fd
%global pkgver %{pkg_name}-%{version}
10b4fd
10b4fd
%bcond_with tests
10b4fd
10b4fd
Name:           ghc-%{pkg_name}
10b4fd
Version:        1.0.2
10b4fd
Release:        2%{?dist}
10b4fd
Summary:        Integer logarithms
10b4fd
10b4fd
License:        MIT
10b4fd
Url:            https://hackage.haskell.org/package/%{pkg_name}
10b4fd
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
10b4fd
10b4fd
BuildRequires:  ghc-Cabal-devel
10b4fd
BuildRequires:  ghc-rpm-macros
10b4fd
# Begin cabal-rpm deps:
10b4fd
BuildRequires:  ghc-array-devel
10b4fd
%if %{with tests}
10b4fd
BuildRequires:  ghc-QuickCheck-devel
10b4fd
BuildRequires:  ghc-smallcheck-devel
10b4fd
BuildRequires:  ghc-tasty-devel
10b4fd
BuildRequires:  ghc-tasty-hunit-devel
10b4fd
BuildRequires:  ghc-tasty-quickcheck-devel
10b4fd
BuildRequires:  ghc-tasty-smallcheck-devel
10b4fd
%endif
10b4fd
# End cabal-rpm deps
10b4fd
10b4fd
%description
10b4fd
"Math.NumberTheory.Logarithms" and "Math.NumberTheory.Powers.Integer" from the
10b4fd
arithmoi package.
10b4fd
10b4fd
Also provides "GHC.Integer.Logarithms.Compat" and
10b4fd
"Math.NumberTheory.Power.Natural" modules, as well as some additional functions
10b4fd
in migrated modules.
10b4fd
10b4fd
10b4fd
%package devel
10b4fd
Summary:        Haskell %{pkg_name} library development files
10b4fd
Provides:       %{name}-static = %{version}-%{release}
10b4fd
Provides:       %{name}-doc = %{version}-%{release}
10b4fd
%if %{defined ghc_version}
10b4fd
Requires:       ghc-compiler = %{ghc_version}
10b4fd
Requires(post): ghc-compiler = %{ghc_version}
10b4fd
Requires(postun): ghc-compiler = %{ghc_version}
10b4fd
%endif
10b4fd
Requires:       %{name}%{?_isa} = %{version}-%{release}
10b4fd
10b4fd
%description devel
10b4fd
This package provides the Haskell %{pkg_name} library development
10b4fd
files.
10b4fd
10b4fd
10b4fd
%prep
10b4fd
%setup -q -n %{pkgver}
10b4fd
10b4fd
10b4fd
%build
10b4fd
%ghc_lib_build
10b4fd
10b4fd
10b4fd
%install
10b4fd
%ghc_lib_install
10b4fd
10b4fd
10b4fd
%check
10b4fd
%cabal_test
10b4fd
10b4fd
10b4fd
%post devel
10b4fd
%ghc_pkg_recache
10b4fd
10b4fd
10b4fd
%postun devel
10b4fd
%ghc_pkg_recache
10b4fd
10b4fd
10b4fd
%files -f %{name}.files
10b4fd
%license LICENSE
10b4fd
10b4fd
10b4fd
%files devel -f %{name}-devel.files
10b4fd
%doc changelog.md readme.md
10b4fd
10b4fd
10b4fd
%changelog
10b4fd
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
10b4fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
10b4fd
10b4fd
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 1.0.2-1
10b4fd
- update to 1.0.2
10b4fd
10b4fd
* Tue Nov 21 2017 Jens Petersen <petersen@redhat.com> - 1.0.1-4
10b4fd
- bump release over ghc-scientific
10b4fd
10b4fd
* Wed Nov 15 2017 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 1.0.1-1
10b4fd
- spec file generated by cabal-rpm-0.11.2