diff --git a/.gitignore b/.gitignore index 0398fc4..92a8388 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /integer-logarithms-1.0.2.tar.gz /integer-logarithms-1.0.1.tar.gz /integer-logarithms-1.0.2.1.tar.gz +/integer-logarithms-1.0.2.2.tar.gz diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index e65a93e..c4076a2 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -7,14 +7,15 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.0.2.1 -Release: 3%{?dist} +Version: 1.0.2.2 +Release: 1%{?dist} Summary: Integer logarithms License: MIT Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: @@ -59,6 +60,7 @@ files. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -97,6 +99,9 @@ files. %changelog +* Thu Feb 21 2019 Jens Petersen - 1.0.2.2-1 +- update to 1.0.2.2 + * Sun Feb 17 2019 Jens Petersen - 1.0.2.1-3 - refresh to cabal-rpm-0.13 diff --git a/integer-logarithms-1.0.2.2.cabal b/integer-logarithms-1.0.2.2.cabal new file mode 100644 index 0000000..5ddcd45 --- /dev/null +++ b/integer-logarithms-1.0.2.2.cabal @@ -0,0 +1,114 @@ +name: integer-logarithms +version: 1.0.2.2 +x-revision: 1 +cabal-version: >= 1.10 +author: Daniel Fischer +copyright: (c) 2011 Daniel Fischer +license: MIT +license-file: LICENSE +maintainer: Oleg Grenrus +build-type: Simple +stability: Provisional +homepage: https://github.com/Bodigrim/integer-logarithms +bug-reports: https://github.com/Bodigrim/integer-logarithms/issues + +synopsis: Integer logarithms. +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. + +category: Math, Algorithms, Number Theory + +tested-with: + GHC==7.0.4, + GHC==7.2.2, + GHC==7.4.2, + GHC==7.6.3, + GHC==7.8.4, + GHC==7.10.3, + GHC==8.0.2, + GHC==8.2.2, + GHC==8.4.3, + GHC==8.6.1 + +extra-source-files : readme.md changelog.md + +flag integer-gmp + description: integer-gmp or integer-simple + default: True + manual: False + +flag check-bounds + description: Replace unsafe array operations with safe ones + default: False + manual: True + +library + default-language: Haskell2010 + hs-source-dirs: src + build-depends: + base >= 4.3 && < 4.13, + array >= 0.3 && < 0.6, + ghc-prim < 0.6 + if impl(ghc >= 7.10) + cpp-options: -DBase48 + else + build-depends: nats >= 1.1 && <1.2 + + if flag(integer-gmp) + build-depends: + integer-gmp < 1.1 + else + build-depends: + integer-simple + + exposed-modules: + Math.NumberTheory.Logarithms + Math.NumberTheory.Powers.Integer + Math.NumberTheory.Powers.Natural + GHC.Integer.Logarithms.Compat + other-extensions: + BangPatterns + CPP + MagicHash + + ghc-options: -O2 -Wall + if flag(check-bounds) + cpp-options: -DCheckBounds + +source-repository head + type: git + location: https://github.com/Bodigrim/integer-logarithms + +test-suite spec + type: exitcode-stdio-1.0 + hs-source-dirs: test-suite + ghc-options: -Wall + main-is: Test.hs + default-language: Haskell2010 + other-extensions: + StandaloneDeriving + FlexibleContexts + FlexibleInstances + GeneralizedNewtypeDeriving + MultiParamTypeClasses + build-depends: + base, + integer-logarithms, + tasty >= 0.10 && < 1.2, + tasty-smallcheck >= 0.8 && < 0.9, + tasty-quickcheck >= 0.8 && < 0.11, + tasty-hunit >= 0.9 && < 0.11, + QuickCheck >= 2.10 && < 2.13, + smallcheck >= 1.1.3 && < 1.2 + if !impl(ghc >= 7.10) + build-depends: nats >= 1.1 && <1.2 + + other-modules: + Math.NumberTheory.LogarithmsTests + Math.NumberTheory.TestUtils + Orphans diff --git a/sources b/sources index b84dcc3..38649cc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (integer-logarithms-1.0.2.1.tar.gz) = 2f19593609e579f83b7aac1ae310aa537c525d1ed1eeb0dbe982a1c3d62e699a68828eb7e8838a4ad5ab6f77e77463ee719b70483154b873f3ad76da7cbbc504 +SHA512 (integer-logarithms-1.0.2.2.tar.gz) = 9c4d7906455febaa271372f1bd331ce0c869fd8c9858f7f84e239eb75fcf3c6ddde95b3587569b8ba334f06bacee8db6497857f9b5668a30587738da015206d4