From ca13eea85664e44f56a6d475454d8727b9465b3a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 20 Nov 2017 21:17:52 +0530 Subject: [PATCH] import (#1513338) --- .gitignore | 1 + README.md | 3 -- ghc-integer-logarithms.spec | 88 +++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 ghc-integer-logarithms.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..62f6633 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/integer-logarithms-1.0.2.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 2f18a2f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ghc-integer-logarithms - -The ghc-integer-logarithms package \ No newline at end of file diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec new file mode 100644 index 0000000..e737b77 --- /dev/null +++ b/ghc-integer-logarithms.spec @@ -0,0 +1,88 @@ +# generated by cabal-rpm-0.11.2 +# https://fedoraproject.org/wiki/Packaging:Haskell + +%global pkg_name integer-logarithms +%global pkgver %{pkg_name}-%{version} + +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 1.0.2 +Release: 1%{?dist} +Summary: Integer logarithms + +License: MIT +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-array-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-smallcheck-devel +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hunit-devel +BuildRequires: ghc-tasty-quickcheck-devel +BuildRequires: ghc-tasty-smallcheck-devel +%endif +# End cabal-rpm deps + +%description +"Math.NumberTheory.Logarithms" and "Math.NumberTheory.Powers.Integer" from the +arithmoi package. + +Also provides "GHC.Integer.Logarithms.Compat" and +"Math.NumberTheory.Power.Natural" modules, as well as some additional functions +in migrated modules. + + +%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 + + +%changelog +* Wed Nov 15 2017 Fedora Haskell SIG - 1.0.2-1 +- spec file generated by cabal-rpm-0.11.2 diff --git a/sources b/sources new file mode 100644 index 0000000..ff2b590 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (integer-logarithms-1.0.2.tar.gz) = e3090be5acf62643f577f43b5e925058202c533eca8b2083f0f659e7e491d3259d27ced3f3c1d99379e256fb45ab33d5a78586a3f1cace11def5ce31d28db022