From 5d4618e340f640a5081aa2f281e214c9d9f3c884 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Mon, 20 Nov 2017 15:24:33 +0000 Subject: [PATCH 01/31] Added the README --- README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..2f18a2f --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ghc-integer-logarithms + +The ghc-integer-logarithms package \ No newline at end of file From ca13eea85664e44f56a6d475454d8727b9465b3a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 20 Nov 2017 21:17:52 +0530 Subject: [PATCH 02/31] 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 From d9d3e53d6daf932b6cd59732ed5608f9fc7275f9 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 21 Nov 2017 07:32:12 +0530 Subject: [PATCH 03/31] bump release --- ghc-integer-logarithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index e737b77..578d4d2 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 1.0.2 -Release: 1%{?dist} +Release: 4%{?dist} Summary: Integer logarithms License: MIT @@ -84,5 +84,8 @@ files. %changelog +* Tue Nov 21 2017 Jens Petersen - 1.0.2-4 +- bump release over ghc-scientific + * Wed Nov 15 2017 Fedora Haskell SIG - 1.0.2-1 - spec file generated by cabal-rpm-0.11.2 From 76bf90326207acdc2219d6ad49cdb7baf08b574e Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 21 Nov 2017 15:16:21 +0530 Subject: [PATCH 04/31] revert to 1.0.1 for now to avoid lots of dependency breakage --- .gitignore | 1 + ghc-integer-logarithms.spec | 6 +++--- sources | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 62f6633..22f6b54 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /integer-logarithms-1.0.2.tar.gz +/integer-logarithms-1.0.1.tar.gz diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 578d4d2..2589acc 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -7,7 +7,7 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.0.2 +Version: 1.0.1 Release: 4%{?dist} Summary: Integer logarithms @@ -84,8 +84,8 @@ files. %changelog -* Tue Nov 21 2017 Jens Petersen - 1.0.2-4 +* Tue Nov 21 2017 Jens Petersen - 1.0.1-4 - bump release over ghc-scientific -* Wed Nov 15 2017 Fedora Haskell SIG - 1.0.2-1 +* Wed Nov 15 2017 Fedora Haskell SIG - 1.0.1-1 - spec file generated by cabal-rpm-0.11.2 diff --git a/sources b/sources index ff2b590..6574570 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (integer-logarithms-1.0.2.tar.gz) = e3090be5acf62643f577f43b5e925058202c533eca8b2083f0f659e7e491d3259d27ced3f3c1d99379e256fb45ab33d5a78586a3f1cace11def5ce31d28db022 +SHA512 (integer-logarithms-1.0.1.tar.gz) = 14c84774eb94b6eb5ed172254106a5c53276ed3f24672d18b955d9d413a6012db7c70cd5444cbc630a849a8b57292d4c6ab826f0266798ab174d4050fe45bcd5 From 4fd748bcb450680408dc86a8f4a620da8e4bd702 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 24 Jan 2018 14:11:26 +0100 Subject: [PATCH 05/31] refresh to cabal-rpm-0.12.1 --- ghc-integer-logarithms.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 2589acc..b7c7791 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.11.2 +# generated by cabal-rpm-0.12.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name integer-logarithms @@ -41,9 +41,12 @@ in migrated modules. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-doc = %{version}-%{release} +%if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} +%endif Requires: %{name}%{?_isa} = %{version}-%{release} %description devel @@ -67,6 +70,12 @@ files. %cabal_test +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + %post devel %ghc_pkg_recache From 8275e76448acb3004120e93c9a368205053ad0db Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 24 Jan 2018 15:38:44 +0100 Subject: [PATCH 06/31] update to 1.0.2 --- ghc-integer-logarithms.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index b7c7791..bae7d8b 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -7,8 +7,8 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.0.1 -Release: 4%{?dist} +Version: 1.0.2 +Release: 1%{?dist} Summary: Integer logarithms License: MIT @@ -93,6 +93,9 @@ files. %changelog +* Wed Jan 24 2018 Jens Petersen - 1.0.2-1 +- update to 1.0.2 + * Tue Nov 21 2017 Jens Petersen - 1.0.1-4 - bump release over ghc-scientific diff --git a/sources b/sources index 6574570..ff2b590 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (integer-logarithms-1.0.1.tar.gz) = 14c84774eb94b6eb5ed172254106a5c53276ed3f24672d18b955d9d413a6012db7c70cd5444cbc630a849a8b57292d4c6ab826f0266798ab174d4050fe45bcd5 +SHA512 (integer-logarithms-1.0.2.tar.gz) = e3090be5acf62643f577f43b5e925058202c533eca8b2083f0f659e7e491d3259d27ced3f3c1d99379e256fb45ab33d5a78586a3f1cace11def5ce31d28db022 From 80aef415b1dd9406036e166977203f7f8b3396f9 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 4 Feb 2018 01:02:50 +0900 Subject: [PATCH 07/31] drop ldconfig scriptlets --- ghc-integer-logarithms.spec | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index bae7d8b..c54d70f 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -70,12 +70,6 @@ files. %cabal_test -%post -p /sbin/ldconfig - - -%postun -p /sbin/ldconfig - - %post devel %ghc_pkg_recache From 3e28fd9663f9b56919ab552e8b444d3ac751ee6f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 7 Feb 2018 11:48:31 +0000 Subject: [PATCH 08/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-integer-logarithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index c54d70f..0a603d2 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 1.0.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Integer logarithms License: MIT @@ -87,6 +87,9 @@ files. %changelog +* Wed Feb 07 2018 Fedora Release Engineering - 1.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Wed Jan 24 2018 Jens Petersen - 1.0.2-1 - update to 1.0.2 From 206f8a946226b90282f90544dd70cc7d60e9d373 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 13 Jul 2018 01:54:46 +0000 Subject: [PATCH 09/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-integer-logarithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 0a603d2..0a825be 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 1.0.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Integer logarithms License: MIT @@ -87,6 +87,9 @@ files. %changelog +* Fri Jul 13 2018 Fedora Release Engineering - 1.0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Feb 07 2018 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From d243c5a854459ec7c42730e8335d83e415b34626 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 22 Jul 2018 23:12:24 +0900 Subject: [PATCH 10/31] update to 1.0.2.1 --- .gitignore | 1 + ghc-integer-logarithms.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 22f6b54..0398fc4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /integer-logarithms-1.0.2.tar.gz /integer-logarithms-1.0.1.tar.gz +/integer-logarithms-1.0.2.1.tar.gz diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 0a825be..5d9392c 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.1 +# generated by cabal-rpm-0.12.5 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name integer-logarithms @@ -7,8 +7,8 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.0.2 -Release: 3%{?dist} +Version: 1.0.2.1 +Release: 1%{?dist} Summary: Integer logarithms License: MIT @@ -87,6 +87,9 @@ files. %changelog +* Sun Jul 22 2018 Jens Petersen - 1.0.2.1-1 +- update to 1.0.2.1 + * Fri Jul 13 2018 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index ff2b590..b84dcc3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (integer-logarithms-1.0.2.tar.gz) = e3090be5acf62643f577f43b5e925058202c533eca8b2083f0f659e7e491d3259d27ced3f3c1d99379e256fb45ab33d5a78586a3f1cace11def5ce31d28db022 +SHA512 (integer-logarithms-1.0.2.1.tar.gz) = 2f19593609e579f83b7aac1ae310aa537c525d1ed1eeb0dbe982a1c3d62e699a68828eb7e8838a4ad5ab6f77e77463ee719b70483154b873f3ad76da7cbbc504 From bef915967b502cc1d14b390ab00908245e16b591 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 21:41:32 +0000 Subject: [PATCH 11/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-integer-logarithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 5d9392c..51faa33 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 1.0.2.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Integer logarithms License: MIT @@ -87,6 +87,9 @@ files. %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 1.0.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Sun Jul 22 2018 Jens Petersen - 1.0.2.1-1 - update to 1.0.2.1 From 9e0a4f19cf4c005ca00661b47ece033ee630c8e4 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 17 Feb 2019 22:45:21 +0800 Subject: [PATCH 12/31] refresh to cabal-rpm-0.13 --- ghc-integer-logarithms.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 51faa33..e65a93e 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.5 +# generated by cabal-rpm-0.13 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name integer-logarithms @@ -8,16 +8,18 @@ Name: ghc-%{pkg_name} Version: 1.0.2.1 -Release: 2%{?dist} +Release: 3%{?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 +# End cabal-rpm sources +# Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: BuildRequires: ghc-array-devel %if %{with tests} BuildRequires: ghc-QuickCheck-devel @@ -55,15 +57,21 @@ files. %prep +# Begin cabal-rpm setup: %setup -q -n %{pkgver} +# End cabal-rpm setup %build +# Begin cabal-rpm build: %ghc_lib_build +# End cabal-rpm build %install +# Begin cabal-rpm install %ghc_lib_install +# End cabal-rpm install %check @@ -79,7 +87,9 @@ files. %files -f %{name}.files +# Begin cabal-rpm files: %license LICENSE +# End cabal-rpm files %files devel -f %{name}-devel.files @@ -87,6 +97,9 @@ files. %changelog +* Sun Feb 17 2019 Jens Petersen - 1.0.2.1-3 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 1.0.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 6a92c7a8821ba9c33145b0a36d5de5f99005c672 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 21 Feb 2019 11:57:50 +0800 Subject: [PATCH 13/31] update to 1.0.2.2 --- .gitignore | 1 + ghc-integer-logarithms.spec | 9 ++- integer-logarithms-1.0.2.2.cabal | 114 +++++++++++++++++++++++++++++++ sources | 2 +- 4 files changed, 123 insertions(+), 3 deletions(-) create mode 100644 integer-logarithms-1.0.2.2.cabal 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 From 357361d79999ce485ef80ab94ab48e4b1610d720 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jul 2019 02:39:17 +0000 Subject: [PATCH 14/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-integer-logarithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index c4076a2..1c1f8db 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 1.0.2.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Integer logarithms License: MIT @@ -99,6 +99,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Thu Jul 25 2019 Fedora Release Engineering - 1.0.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Thu Feb 21 2019 Jens Petersen - 1.0.2.2-1 - update to 1.0.2.2 From c5ed03e7d06d23f12e58bab83ebb0e4233c21d73 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 25 Jul 2019 04:24:12 +0000 Subject: [PATCH 15/31] refresh to cabal-rpm-1.0.0: lib doc/prof subpkgs and bin static BRs --- ghc-integer-logarithms.spec | 48 +++++++++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 1c1f8db..bb87efe 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.13 +# generated by cabal-rpm-1.0.0 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name integer-logarithms @@ -20,6 +20,12 @@ Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal# # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel +%if %{with haddock} +BuildRequires: ghc-doc +%endif +%if %{with ghc_prof} +BuildRequires: ghc-prof +%endif BuildRequires: ghc-rpm-macros BuildRequires: ghc-array-devel %if %{with tests} @@ -44,11 +50,8 @@ in migrated modules. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} -Provides: %{name}-doc = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} -Requires(post): ghc-compiler = %{ghc_version} -Requires(postun): ghc-compiler = %{ghc_version} %endif Requires: %{name}%{?_isa} = %{version}-%{release} @@ -57,6 +60,25 @@ This package provides the Haskell %{pkg_name} library development files. +%if %{with haddock} +%package doc +Summary: Haskell %{pkg_name} library documentation + +%description doc +This package provides the Haskell %{pkg_name} library documentation. +%endif + + +%if %{with ghc_prof} +%package prof +Summary: Haskell %{pkg_name} profiling library +Requires: %{name}-devel%{?_isa} = %{version}-%{release} + +%description prof +This package provides the Haskell %{pkg_name} profiling library. +%endif + + %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} @@ -80,14 +102,6 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %cabal_test -%post devel -%ghc_pkg_recache - - -%postun devel -%ghc_pkg_recache - - %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE @@ -98,6 +112,16 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %doc changelog.md readme.md +%if %{with haddock} +%files doc -f %{name}-doc.files +%endif + + +%if %{with ghc_prof} +%files prof -f %{name}-prof.files +%endif + + %changelog * Thu Jul 25 2019 Fedora Release Engineering - 1.0.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From ed860b60db145256a1c9c08f7a0da578859bfa6c Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 25 Jul 2019 16:04:35 +0000 Subject: [PATCH 16/31] update to 1.0.3 --- .gitignore | 1 + ghc-integer-logarithms.spec | 9 +-- integer-logarithms-1.0.2.2.cabal | 114 ------------------------------- sources | 2 +- 4 files changed, 7 insertions(+), 119 deletions(-) delete mode 100644 integer-logarithms-1.0.2.2.cabal diff --git a/.gitignore b/.gitignore index 92a8388..95fccd8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /integer-logarithms-1.0.1.tar.gz /integer-logarithms-1.0.2.1.tar.gz /integer-logarithms-1.0.2.2.tar.gz +/integer-logarithms-1.0.3.tar.gz diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index bb87efe..dafdda2 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -7,15 +7,14 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.0.2.2 -Release: 2%{?dist} +Version: 1.0.3 +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: @@ -82,7 +81,6 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -123,6 +121,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Thu Jul 25 2019 Jens Petersen - 1.0.3-1 +- update to 1.0.3 + * Thu Jul 25 2019 Fedora Release Engineering - 1.0.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/integer-logarithms-1.0.2.2.cabal b/integer-logarithms-1.0.2.2.cabal deleted file mode 100644 index 5ddcd45..0000000 --- a/integer-logarithms-1.0.2.2.cabal +++ /dev/null @@ -1,114 +0,0 @@ -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 38649cc..2e4c754 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (integer-logarithms-1.0.2.2.tar.gz) = 9c4d7906455febaa271372f1bd331ce0c869fd8c9858f7f84e239eb75fcf3c6ddde95b3587569b8ba334f06bacee8db6497857f9b5668a30587738da015206d4 +SHA512 (integer-logarithms-1.0.3.tar.gz) = b211127620bb52398ae7e64281f991d9dd016d5f74ff5d939275afea15689b01f82577efeaa2dfcdf4230cfea841f6c14f731ba16d38192f48e2e7ae90e704f3 From 1addc3a95056b03b972c5b5091b3ff990ce843db Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 5 Aug 2019 18:30:08 +0800 Subject: [PATCH 17/31] BR prof for lib and static for executable --- ghc-integer-logarithms.spec | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index dafdda2..c336c6c 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-1.0.0 +# generated by cabal-rpm-1.0.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name integer-logarithms @@ -19,14 +19,9 @@ Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel -%if %{with haddock} -BuildRequires: ghc-doc -%endif -%if %{with ghc_prof} -BuildRequires: ghc-prof -%endif BuildRequires: ghc-rpm-macros -BuildRequires: ghc-array-devel +BuildRequires: ghc-array-prof +BuildRequires: ghc-base-prof %if %{with tests} BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-smallcheck-devel @@ -49,6 +44,7 @@ in migrated modules. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-static%{?_isa} = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} %endif From 2f3406281e81361e616d99323654bc634a4eee61 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jan 2020 20:56:38 +0000 Subject: [PATCH 18/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-integer-logarithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index c336c6c..59d27b0 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 1.0.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Integer logarithms License: MIT @@ -117,6 +117,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Tue Jan 28 2020 Fedora Release Engineering - 1.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Thu Jul 25 2019 Jens Petersen - 1.0.3-1 - update to 1.0.3 From 75d5366210f0f9a2503590d53cab087e3deeb80c Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 8 Feb 2020 22:50:47 +0800 Subject: [PATCH 19/31] refresh to cabal-rpm-2.0.2 --- ghc-integer-logarithms.spec | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 59d27b0..866b676 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -1,11 +1,9 @@ -# generated by cabal-rpm-1.0.1 +# generated by cabal-rpm-2.0.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.3 Release: 2%{?dist} @@ -22,14 +20,6 @@ BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-array-prof BuildRequires: ghc-base-prof -%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 @@ -58,6 +48,7 @@ files. %if %{with haddock} %package doc Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch %description doc This package provides the Haskell %{pkg_name} library documentation. @@ -68,6 +59,7 @@ This package provides the Haskell %{pkg_name} library documentation. %package prof Summary: Haskell %{pkg_name} profiling library Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Supplements: (%{name}-devel and ghc-prof) %description prof This package provides the Haskell %{pkg_name} profiling library. @@ -92,8 +84,14 @@ This package provides the Haskell %{pkg_name} profiling library. # End cabal-rpm install -%check -%cabal_test +%if 0%{?fedora} < 31 || 0%{?rhel} < 8 +%post devel +%ghc_pkg_recache + + +%postun devel +%ghc_pkg_recache +%endif %files -f %{name}.files @@ -108,6 +106,7 @@ This package provides the Haskell %{pkg_name} profiling library. %if %{with haddock} %files doc -f %{name}-doc.files +%license LICENSE %endif From 38af68ed5e27afba3682963683145cb303b9ddb1 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 4 Jun 2020 19:27:02 +0800 Subject: [PATCH 20/31] refresh to cabal-rpm-2.0.5 --- ghc-integer-logarithms.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 866b676..3495ba8 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -1,5 +1,5 @@ -# generated by cabal-rpm-2.0.2 -# https://fedoraproject.org/wiki/Packaging:Haskell +# generated by cabal-rpm-2.0.5 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name integer-logarithms %global pkgver %{pkg_name}-%{version} @@ -81,6 +81,7 @@ This package provides the Haskell %{pkg_name} profiling library. %install # Begin cabal-rpm install %ghc_lib_install +chmod a-x changelog.md readme.md # End cabal-rpm install From 48f25af4eab91803fc45353dc3b304b5543c345a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 19 Jun 2020 16:55:40 +0800 Subject: [PATCH 21/31] refresh to cabal-rpm-2.0.6 --- ghc-integer-logarithms.spec | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 3495ba8..689b559 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -1,9 +1,11 @@ -# generated by cabal-rpm-2.0.5 +# generated by cabal-rpm-2.0.6 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name integer-logarithms %global pkgver %{pkg_name}-%{version} +# testsuite missing deps: tasty-smallcheck + Name: ghc-%{pkg_name} Version: 1.0.3 Release: 2%{?dist} @@ -69,6 +71,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +chmod a-x changelog.md readme.md # End cabal-rpm setup @@ -81,20 +84,9 @@ This package provides the Haskell %{pkg_name} profiling library. %install # Begin cabal-rpm install %ghc_lib_install -chmod a-x changelog.md readme.md # End cabal-rpm install -%if 0%{?fedora} < 31 || 0%{?rhel} < 8 -%post devel -%ghc_pkg_recache - - -%postun devel -%ghc_pkg_recache -%endif - - %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE From 291ab0f6105eef9603b00f1433a31a459241a85d Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 21 Jun 2020 23:56:36 +0800 Subject: [PATCH 22/31] revised .cabal file --- ghc-integer-logarithms.spec | 2 + integer-logarithms-1.0.3.cabal | 115 +++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 integer-logarithms-1.0.3.cabal diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 689b559..b924215 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -15,6 +15,7 @@ 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: @@ -71,6 +72,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal chmod a-x changelog.md readme.md # End cabal-rpm setup diff --git a/integer-logarithms-1.0.3.cabal b/integer-logarithms-1.0.3.cabal new file mode 100644 index 0000000..01e7177 --- /dev/null +++ b/integer-logarithms-1.0.3.cabal @@ -0,0 +1,115 @@ +name: integer-logarithms +version: 1.0.3 +x-revision: 2 +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.4, + GHC==8.6.5, + GHC==8.8.2, + GHC==8.10.2 + +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.15, + array >= 0.3 && < 0.6, + ghc-prim < 0.7 + + if !impl(ghc >= 7.10) + build-depends: nats >= 1.1.2 && <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.3, + tasty-smallcheck >= 0.8 && < 0.9, + tasty-quickcheck >= 0.8 && < 0.11, + tasty-hunit >= 0.9 && < 0.11, + QuickCheck >= 2.10 && < 2.14, + 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 From 9ea7365f74fb1c3743c8d51edb9db4a06a8b8432 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 17 Jul 2020 18:19:04 +0800 Subject: [PATCH 23/31] bump release --- ghc-integer-logarithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index b924215..5f41f66 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 1.0.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Integer logarithms License: MIT @@ -111,6 +111,9 @@ chmod a-x changelog.md readme.md %changelog +* Fri Jul 17 2020 Jens Petersen - 1.0.3-3 +- refresh to cabal-rpm-2.0.6 + * Tue Jan 28 2020 Fedora Release Engineering - 1.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From a7298ddcbe8f83220e8cd8ab9d5528fe58027606 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 19:18:39 +0000 Subject: [PATCH 24/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-integer-logarithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 5f41f66..ef4e4fc 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 1.0.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Integer logarithms License: MIT @@ -111,6 +111,9 @@ chmod a-x changelog.md readme.md %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 1.0.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Fri Jul 17 2020 Jens Petersen - 1.0.3-3 - refresh to cabal-rpm-2.0.6 From b6d09f2e2f7f94c5be56d0ad84a63426c55599dc Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 07:22:59 +0000 Subject: [PATCH 25/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-integer-logarithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index ef4e4fc..9bfede6 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 1.0.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Integer logarithms License: MIT @@ -111,6 +111,9 @@ chmod a-x changelog.md readme.md %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 1.0.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Mon Jul 27 2020 Fedora Release Engineering - 1.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 33110a86989ea0f99a78a2396ea1d4933a3d6a11 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 22 Jul 2021 00:52:07 +0000 Subject: [PATCH 26/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-integer-logarithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 9bfede6..1cf5281 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 1.0.3 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Integer logarithms License: MIT @@ -111,6 +111,9 @@ chmod a-x changelog.md readme.md %changelog +* Thu Jul 22 2021 Fedora Release Engineering - 1.0.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Tue Jan 26 2021 Fedora Release Engineering - 1.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From cf5c71a4d3179cd8b71237285b9b8f4e53c52754 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 28 Jan 2021 21:16:54 +0800 Subject: [PATCH 27/31] update to 1.0.3.1 --- .gitignore | 1 + ghc-integer-logarithms.spec | 9 +-- integer-logarithms-1.0.3.cabal | 115 --------------------------------- sources | 2 +- 4 files changed, 7 insertions(+), 120 deletions(-) delete mode 100644 integer-logarithms-1.0.3.cabal diff --git a/.gitignore b/.gitignore index 95fccd8..97ea352 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /integer-logarithms-1.0.2.1.tar.gz /integer-logarithms-1.0.2.2.tar.gz /integer-logarithms-1.0.3.tar.gz +/integer-logarithms-1.0.3.1.tar.gz diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 1cf5281..13d290c 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -7,15 +7,14 @@ # testsuite missing deps: tasty-smallcheck Name: ghc-%{pkg_name} -Version: 1.0.3 -Release: 6%{?dist} +Version: 1.0.3.1 +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: @@ -72,7 +71,6 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -cp -bp %{SOURCE1} %{pkg_name}.cabal chmod a-x changelog.md readme.md # End cabal-rpm setup @@ -111,6 +109,9 @@ chmod a-x changelog.md readme.md %changelog +* Thu Aug 5 2021 Jens Petersen - 1.0.3.1-1 +- update to 1.0.3.1 + * Thu Jul 22 2021 Fedora Release Engineering - 1.0.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/integer-logarithms-1.0.3.cabal b/integer-logarithms-1.0.3.cabal deleted file mode 100644 index 01e7177..0000000 --- a/integer-logarithms-1.0.3.cabal +++ /dev/null @@ -1,115 +0,0 @@ -name: integer-logarithms -version: 1.0.3 -x-revision: 2 -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.4, - GHC==8.6.5, - GHC==8.8.2, - GHC==8.10.2 - -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.15, - array >= 0.3 && < 0.6, - ghc-prim < 0.7 - - if !impl(ghc >= 7.10) - build-depends: nats >= 1.1.2 && <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.3, - tasty-smallcheck >= 0.8 && < 0.9, - tasty-quickcheck >= 0.8 && < 0.11, - tasty-hunit >= 0.9 && < 0.11, - QuickCheck >= 2.10 && < 2.14, - 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 2e4c754..2d09a42 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (integer-logarithms-1.0.3.tar.gz) = b211127620bb52398ae7e64281f991d9dd016d5f74ff5d939275afea15689b01f82577efeaa2dfcdf4230cfea841f6c14f731ba16d38192f48e2e7ae90e704f3 +SHA512 (integer-logarithms-1.0.3.1.tar.gz) = 670aff419de8d6afd1b7e1a40b68290bcf7aefad788c3b08aebfa5ca3e709f5d22543fce82fb75dc18b3ba0ef6d8a8f61735cde647a7a6c9392a60ec365534b3 From 0b1009c68c384e1a22bbfac48fc90f37d7dc50f0 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 8 Jul 2021 00:30:12 +0800 Subject: [PATCH 28/31] refresh to cabal-rpm-2.0.9 --- ghc-integer-logarithms.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 13d290c..86e7c97 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-2.0.6 +# generated by cabal-rpm-2.0.9 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name integer-logarithms @@ -51,6 +51,7 @@ files. %package doc Summary: Haskell %{pkg_name} library documentation BuildArch: noarch +Requires: ghc-filesystem %description doc This package provides the Haskell %{pkg_name} library documentation. @@ -71,7 +72,6 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -chmod a-x changelog.md readme.md # End cabal-rpm setup From e1361184078ea395af593b9fe8d4d5bdc70fd1c9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 05:06:43 +0000 Subject: [PATCH 29/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-integer-logarithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 86e7c97..3ba3076 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 1.0.3.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Integer logarithms License: MIT @@ -109,6 +109,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 1.0.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Thu Aug 5 2021 Jens Petersen - 1.0.3.1-1 - update to 1.0.3.1 From 16e61f2bcc8ae0b0075db03453b2287314ed2cd9 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 18 Jun 2022 00:21:41 +0800 Subject: [PATCH 30/31] revise .cabal --- ghc-integer-logarithms.spec | 2 + integer-logarithms-1.0.3.1.cabal | 135 +++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 integer-logarithms-1.0.3.1.cabal diff --git a/ghc-integer-logarithms.spec b/ghc-integer-logarithms.spec index 3ba3076..69b1985 100644 --- a/ghc-integer-logarithms.spec +++ b/ghc-integer-logarithms.spec @@ -15,6 +15,7 @@ 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: @@ -72,6 +73,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup diff --git a/integer-logarithms-1.0.3.1.cabal b/integer-logarithms-1.0.3.1.cabal new file mode 100644 index 0000000..224bcf5 --- /dev/null +++ b/integer-logarithms-1.0.3.1.cabal @@ -0,0 +1,135 @@ +name: integer-logarithms +version: 1.0.3.1 +x-revision: 2 +cabal-version: >=1.10 +author: Daniel Fischer +copyright: + (c) 2011 Daniel Fischer, 2017-2020 Oleg Grenrus, Andrew Lelechenko + +license: MIT +license-file: LICENSE +maintainer: Oleg Grenrus +build-type: Simple +stability: Provisional +homepage: https://github.com/haskellari/integer-logarithms +bug-reports: https://github.com/haskellari/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 + || ==7.2.2 + || ==7.4.2 + || ==7.6.3 + || ==7.8.4 + || ==7.10.3 + || ==8.0.2 + || ==8.2.2 + || ==8.4.4 + || ==8.6.4 + || ==8.8.4 + || ==8.10.4 + || ==9.0.1 + || ==9.2.1 + , GHCJS ==8.4 + +extra-source-files: + changelog.md + readme.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: + array >=0.3 && <0.6 + , base >=4.3 && <4.17 + , ghc-prim <0.9 + + if !impl(ghc >=7.10) + build-depends: nats >=1.1.2 && <1.2 + + if impl(ghc >=9.0) + build-depends: + base >=4.15 + , ghc-bignum >=1.0 && <1.3 + + if !flag(integer-gmp) + build-depends: invalid-cabal-flag-settings <0 + + else + build-depends: base <4.15 + + 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 + + -- compat module + exposed-modules: 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/haskellari/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: + FlexibleContexts + FlexibleInstances + GeneralizedNewtypeDeriving + MultiParamTypeClasses + StandaloneDeriving + + build-depends: + base + , integer-logarithms + , QuickCheck >=2.14.1 && <2.15 + , smallcheck >=1.2 && <1.3 + , tasty >=0.10 && <1.5 + , tasty-hunit >=0.9 && <0.11 + , tasty-quickcheck >=0.8 && <0.11 + , tasty-smallcheck >=0.8 && <0.9 + + if !impl(ghc >=7.10) + build-depends: nats ==1.1.* + + other-modules: + Math.NumberTheory.LogarithmsTests + Math.NumberTheory.TestUtils + Orphans From c7d9acc56537c2de3faa2caf2f299798cf4df73c Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Mon, 30 Oct 2023 21:46:30 +0300 Subject: [PATCH 31/31] Remove unnecessary files --- sources | 1 - 1 file changed, 1 deletion(-) delete mode 100644 sources diff --git a/sources b/sources deleted file mode 100644 index 2d09a42..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (integer-logarithms-1.0.3.1.tar.gz) = 670aff419de8d6afd1b7e1a40b68290bcf7aefad788c3b08aebfa5ca3e709f5d22543fce82fb75dc18b3ba0ef6d8a8f61735cde647a7a6c9392a60ec365534b3