From b50bc732151226071a6843541ac64770e240416e Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Thu, 9 Nov 2017 22:38:38 +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..94c29ae --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ghc-vector-algorithms + +The ghc-vector-algorithms package \ No newline at end of file From ba2e42dfebc9e7e132e50e6c37d7f9c82a9e3edd Mon Sep 17 00:00:00 2001 From: David Shea Date: Mon, 13 Nov 2017 13:56:31 -0500 Subject: [PATCH 02/31] New package ghc-vector-algorithms --- .gitignore | 1 + README.md | 3 -- ghc-vector-algorithms.spec | 80 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 82 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 ghc-vector-algorithms.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f6870a7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/vector-algorithms-0.7.0.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 94c29ae..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ghc-vector-algorithms - -The ghc-vector-algorithms package \ No newline at end of file diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec new file mode 100644 index 0000000..c6ccbba --- /dev/null +++ b/ghc-vector-algorithms.spec @@ -0,0 +1,80 @@ +# generated by cabal-rpm-0.11.1 +# https://fedoraproject.org/wiki/Packaging:Haskell + +%global pkg_name vector-algorithms +%global pkgver %{pkg_name}-%{version} + +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 0.7.0.1 +Release: 1%{?dist} +Summary: Efficient algorithms for vector arrays + +License: BSD +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-bytestring-devel +BuildRequires: ghc-primitive-devel +BuildRequires: ghc-vector-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-containers-devel +%endif +# End cabal-rpm deps + +%description +Efficient algorithms for vector arrays. + + +%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 + + +%changelog +* Tue Jul 25 2017 Fedora Haskell SIG - 0.7.0.1-1 +- spec file generated by cabal-rpm-0.11.1 diff --git a/sources b/sources new file mode 100644 index 0000000..edf54b5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (vector-algorithms-0.7.0.1.tar.gz) = 1ea718eeb062defee830fa7dba323981678691c5d320b8929dcd695af17f82d65007cfd35103310026dab51cf10462dbead09082fc0ba5ddd0c2e18e305c4c6a From 785d395cd0f25f4f77a7bd945dd648e88c780093 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 24 Jan 2018 14:12:17 +0100 Subject: [PATCH 03/31] refresh to cabal-rpm-0.12.1 --- ghc-vector-algorithms.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index c6ccbba..8690c5c 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.11.1 +# generated by cabal-rpm-0.12.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name vector-algorithms @@ -34,9 +34,12 @@ Efficient algorithms for vector arrays. %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 @@ -60,6 +63,12 @@ files. %cabal_test +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + %post devel %ghc_pkg_recache From ae00e42f6f8bbff7561e698f30490e14ed9c0091 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 26 Jan 2018 09:53:37 +0100 Subject: [PATCH 04/31] refresh to cabal-rpm-0.12.1 --- ghc-vector-algorithms.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 8690c5c..5e74770 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -49,6 +49,7 @@ files. %prep %setup -q -n %{pkgver} +cabal-tweak-dep-ver vector '< 0.12' '< 0.13' %build From 97a15ec37eb50de48e3b35156e86b1919c44678c Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 26 Jan 2018 12:03:37 +0100 Subject: [PATCH 05/31] bump release --- ghc-vector-algorithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 5e74770..d7766bc 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.7.0.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Efficient algorithms for vector arrays License: BSD @@ -86,5 +86,8 @@ cabal-tweak-dep-ver vector '< 0.12' '< 0.13' %changelog +* Fri Jan 26 2018 Jens Petersen - 0.7.0.1-2 +- rebuild + * Tue Jul 25 2017 Fedora Haskell SIG - 0.7.0.1-1 - spec file generated by cabal-rpm-0.11.1 From cf7e6cabccebd03170eef3b7d5e883457f334426 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 4 Feb 2018 01:03:43 +0900 Subject: [PATCH 06/31] drop ldconfig scriptlets --- ghc-vector-algorithms.spec | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index d7766bc..c147dd3 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -64,12 +64,6 @@ cabal-tweak-dep-ver vector '< 0.12' '< 0.13' %cabal_test -%post -p /sbin/ldconfig - - -%postun -p /sbin/ldconfig - - %post devel %ghc_pkg_recache From 76ad2f351d377c4371f49a253a873cd095de789b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 7 Feb 2018 12:19:01 +0000 Subject: [PATCH 07/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-vector-algorithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index c147dd3..9056070 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.7.0.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Efficient algorithms for vector arrays License: BSD @@ -80,6 +80,9 @@ cabal-tweak-dep-ver vector '< 0.12' '< 0.13' %changelog +* Wed Feb 07 2018 Fedora Release Engineering - 0.7.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Fri Jan 26 2018 Jens Petersen - 0.7.0.1-2 - rebuild From 88a7fcd8f349604de7a2706fc2213618d437f14d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 13 Jul 2018 02:14:41 +0000 Subject: [PATCH 08/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-vector-algorithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 9056070..7ad29c4 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.7.0.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Efficient algorithms for vector arrays License: BSD @@ -80,6 +80,9 @@ cabal-tweak-dep-ver vector '< 0.12' '< 0.13' %changelog +* Fri Jul 13 2018 Fedora Release Engineering - 0.7.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Feb 07 2018 Fedora Release Engineering - 0.7.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From 4ee0fc1f25235a62940d839e82c2499a54c19ceb Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 29 Jul 2018 00:53:28 +0900 Subject: [PATCH 09/31] revise .cabal --- ghc-vector-algorithms.spec | 10 ++- vector-algorithms-0.7.0.1.cabal | 118 ++++++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+), 3 deletions(-) create mode 100644 vector-algorithms-0.7.0.1.cabal diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 7ad29c4..48bd5fb 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.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 vector-algorithms @@ -8,12 +8,13 @@ Name: ghc-%{pkg_name} Version: 0.7.0.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Efficient algorithms for vector arrays License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros @@ -49,7 +50,7 @@ files. %prep %setup -q -n %{pkgver} -cabal-tweak-dep-ver vector '< 0.12' '< 0.13' +cp -p %{SOURCE1} %{pkg_name}.cabal %build @@ -80,6 +81,9 @@ cabal-tweak-dep-ver vector '< 0.12' '< 0.13' %changelog +* Sat Jul 28 2018 Jens Petersen - 0.7.0.1-5 +- revise .cabal + * Fri Jul 13 2018 Fedora Release Engineering - 0.7.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/vector-algorithms-0.7.0.1.cabal b/vector-algorithms-0.7.0.1.cabal new file mode 100644 index 0000000..db4a504 --- /dev/null +++ b/vector-algorithms-0.7.0.1.cabal @@ -0,0 +1,118 @@ +name: vector-algorithms +version: 0.7.0.1 +x-revision: 1 +license: BSD3 +license-file: LICENSE +author: Dan Doel +maintainer: Dan Doel +copyright: (c) 2008,2009,2010,2011,2012,2013,2014,2015 Dan Doel + (c) 2015 Tim Baumann +homepage: http://code.haskell.org/~dolio/ +category: Data +synopsis: Efficient algorithms for vector arrays +description: Efficient algorithms for vector arrays +build-type: Simple +cabal-version: >= 1.9.2 + +flag BoundsChecks + description: Enable bounds checking + default: True + +flag UnsafeChecks + description: Enable bounds checking in unsafe operations at the cost of a + significant performance penalty. + default: False + +flag InternalChecks + description: Enable internal consistency checks at the cost of a + significant performance penalty. + default: False + +flag bench + description: Build a benchmarking program to test vector-algorithms + performance + default: False + +flag properties + description: Enable the quickcheck tests + default: True + +source-repository head + type: darcs + location: http://hub.darcs.net/dolio/vector-algorithms + +library + hs-source-dirs: src + + build-depends: base >= 4.5 && < 5, + vector >= 0.6 && < 0.13, + primitive >=0.3 && <0.7, + bytestring >= 0.9 && < 1.0 + + exposed-modules: + Data.Vector.Algorithms.Optimal + Data.Vector.Algorithms.Insertion + Data.Vector.Algorithms.Intro + Data.Vector.Algorithms.Merge + Data.Vector.Algorithms.Radix + Data.Vector.Algorithms.Search + Data.Vector.Algorithms.Heap + Data.Vector.Algorithms.AmericanFlag + Data.Vector.Algorithms.Tim + + other-modules: + Data.Vector.Algorithms.Common + + ghc-options: + -Odph + -funbox-strict-fields + + include-dirs: + include + + install-includes: + vector.h + + if flag(BoundsChecks) + cpp-options: -DVECTOR_BOUNDS_CHECKS + + if flag(UnsafeChecks) + cpp-options: -DVECTOR_UNSAFE_CHECKS + + if flag(InternalChecks) + cpp-options: -DVECTOR_INTERNAL_CHECKS + +executable vector-algorithms-bench + hs-source-dirs: bench + + if !flag(bench) + buildable: False + + main-is: Main.hs + + other-modules: + Blocks + + build-depends: base, mwc-random, vector, vector-algorithms, mtl + ghc-options: -Wall -Odph + +test-suite properties + hs-source-dirs: tests/properties + type: exitcode-stdio-1.0 + main-is: Tests.hs + + other-modules: + Optimal + Properties + Util + + if !flag(properties) + buildable: False + else + build-depends: + base, + bytestring, + containers, + QuickCheck >= 2, + vector, + vector-algorithms From d2c543dc107c189032406f1f3be8637889bb867e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 22:12:15 +0000 Subject: [PATCH 10/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-vector-algorithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 48bd5fb..492f8f8 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.7.0.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Efficient algorithms for vector arrays License: BSD @@ -81,6 +81,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 0.7.0.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Sat Jul 28 2018 Jens Petersen - 0.7.0.1-5 - revise .cabal From 26f9acb8d2e528ca2fb8cb7f20aedec003f8afd4 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 17 Feb 2019 22:47:44 +0800 Subject: [PATCH 11/31] refresh to cabal-rpm-0.13 --- ghc-vector-algorithms.spec | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 492f8f8..0338492 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.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 vector-algorithms @@ -8,17 +8,19 @@ Name: ghc-%{pkg_name} Version: 0.7.0.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Efficient algorithms for vector arrays License: BSD 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: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: BuildRequires: ghc-bytestring-devel BuildRequires: ghc-primitive-devel BuildRequires: ghc-vector-devel @@ -49,16 +51,22 @@ files. %prep +# Begin cabal-rpm setup: %setup -q -n %{pkgver} -cp -p %{SOURCE1} %{pkg_name}.cabal +cp -bp %{SOURCE1} %{pkg_name}.cabal +# 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 @@ -74,13 +82,18 @@ cp -p %{SOURCE1} %{pkg_name}.cabal %files -f %{name}.files +# Begin cabal-rpm files: %license LICENSE +# End cabal-rpm files %files devel -f %{name}-devel.files %changelog +* Sun Feb 17 2019 Jens Petersen - 0.7.0.1-7 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 0.7.0.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From a4eda48c6a72b97ee35ea845247b4a5da6b07870 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 21 Feb 2019 12:29:53 +0800 Subject: [PATCH 12/31] update to 0.7.0.4 --- .gitignore | 1 + ghc-vector-algorithms.spec | 12 ++-- sources | 2 +- vector-algorithms-0.7.0.1.cabal | 118 -------------------------------- 4 files changed, 9 insertions(+), 124 deletions(-) delete mode 100644 vector-algorithms-0.7.0.1.cabal diff --git a/.gitignore b/.gitignore index f6870a7..c64532e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /vector-algorithms-0.7.0.1.tar.gz +/vector-algorithms-0.7.0.4.tar.gz diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 0338492..b03201a 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -7,15 +7,14 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.7.0.1 -Release: 7%{?dist} +Version: 0.7.0.4 +Release: 1%{?dist} Summary: Efficient algorithms for vector arrays License: BSD 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: @@ -31,7 +30,8 @@ BuildRequires: ghc-containers-devel # End cabal-rpm deps %description -Efficient algorithms for vector arrays. +Efficient algorithms for sorting vector arrays. At some stage other vector +algorithms may be added. %package devel @@ -53,7 +53,6 @@ files. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -91,6 +90,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Thu Feb 21 2019 Jens Petersen - 0.7.0.4-1 +- update to 0.7.0.4 + * Sun Feb 17 2019 Jens Petersen - 0.7.0.1-7 - refresh to cabal-rpm-0.13 diff --git a/sources b/sources index edf54b5..7199da7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vector-algorithms-0.7.0.1.tar.gz) = 1ea718eeb062defee830fa7dba323981678691c5d320b8929dcd695af17f82d65007cfd35103310026dab51cf10462dbead09082fc0ba5ddd0c2e18e305c4c6a +SHA512 (vector-algorithms-0.7.0.4.tar.gz) = 056c8e5e9ff4b2899f2520edcbc1d8bdde70f3d38b390421df84274d20f6fc2cbd0d0d264001f7383ea69f36fa59cfb6fa8c63123daada6c7f01e8223a6a4064 diff --git a/vector-algorithms-0.7.0.1.cabal b/vector-algorithms-0.7.0.1.cabal deleted file mode 100644 index db4a504..0000000 --- a/vector-algorithms-0.7.0.1.cabal +++ /dev/null @@ -1,118 +0,0 @@ -name: vector-algorithms -version: 0.7.0.1 -x-revision: 1 -license: BSD3 -license-file: LICENSE -author: Dan Doel -maintainer: Dan Doel -copyright: (c) 2008,2009,2010,2011,2012,2013,2014,2015 Dan Doel - (c) 2015 Tim Baumann -homepage: http://code.haskell.org/~dolio/ -category: Data -synopsis: Efficient algorithms for vector arrays -description: Efficient algorithms for vector arrays -build-type: Simple -cabal-version: >= 1.9.2 - -flag BoundsChecks - description: Enable bounds checking - default: True - -flag UnsafeChecks - description: Enable bounds checking in unsafe operations at the cost of a - significant performance penalty. - default: False - -flag InternalChecks - description: Enable internal consistency checks at the cost of a - significant performance penalty. - default: False - -flag bench - description: Build a benchmarking program to test vector-algorithms - performance - default: False - -flag properties - description: Enable the quickcheck tests - default: True - -source-repository head - type: darcs - location: http://hub.darcs.net/dolio/vector-algorithms - -library - hs-source-dirs: src - - build-depends: base >= 4.5 && < 5, - vector >= 0.6 && < 0.13, - primitive >=0.3 && <0.7, - bytestring >= 0.9 && < 1.0 - - exposed-modules: - Data.Vector.Algorithms.Optimal - Data.Vector.Algorithms.Insertion - Data.Vector.Algorithms.Intro - Data.Vector.Algorithms.Merge - Data.Vector.Algorithms.Radix - Data.Vector.Algorithms.Search - Data.Vector.Algorithms.Heap - Data.Vector.Algorithms.AmericanFlag - Data.Vector.Algorithms.Tim - - other-modules: - Data.Vector.Algorithms.Common - - ghc-options: - -Odph - -funbox-strict-fields - - include-dirs: - include - - install-includes: - vector.h - - if flag(BoundsChecks) - cpp-options: -DVECTOR_BOUNDS_CHECKS - - if flag(UnsafeChecks) - cpp-options: -DVECTOR_UNSAFE_CHECKS - - if flag(InternalChecks) - cpp-options: -DVECTOR_INTERNAL_CHECKS - -executable vector-algorithms-bench - hs-source-dirs: bench - - if !flag(bench) - buildable: False - - main-is: Main.hs - - other-modules: - Blocks - - build-depends: base, mwc-random, vector, vector-algorithms, mtl - ghc-options: -Wall -Odph - -test-suite properties - hs-source-dirs: tests/properties - type: exitcode-stdio-1.0 - main-is: Tests.hs - - other-modules: - Optimal - Properties - Util - - if !flag(properties) - buildable: False - else - build-depends: - base, - bytestring, - containers, - QuickCheck >= 2, - vector, - vector-algorithms From 985d413f71723981317890f450014bbbc821ba4f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jul 2019 03:11:48 +0000 Subject: [PATCH 13/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-vector-algorithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index b03201a..4ff37d0 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.7.0.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Efficient algorithms for vector arrays License: BSD @@ -90,6 +90,9 @@ files. %changelog +* Thu Jul 25 2019 Fedora Release Engineering - 0.7.0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Thu Feb 21 2019 Jens Petersen - 0.7.0.4-1 - update to 0.7.0.4 From afe6ba3f5cee6299102b49272532f90a79db8928 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 25 Jul 2019 04:26:47 +0000 Subject: [PATCH 14/31] refresh to cabal-rpm-1.0.0: lib doc/prof subpkgs and bin static BRs --- ghc-vector-algorithms.spec | 48 ++++++++++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 4ff37d0..b6cc459 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.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 vector-algorithms @@ -19,6 +19,12 @@ 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-bytestring-devel BuildRequires: ghc-primitive-devel @@ -37,11 +43,8 @@ algorithms may be added. %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} @@ -50,6 +53,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} @@ -72,14 +94,6 @@ files. %cabal_test -%post devel -%ghc_pkg_recache - - -%postun devel -%ghc_pkg_recache - - %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE @@ -89,6 +103,16 @@ files. %files devel -f %{name}-devel.files +%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 - 0.7.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 0f5243bfc9ba1ca5c496772c975b5fb957426cea Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 25 Jul 2019 16:56:57 +0000 Subject: [PATCH 15/31] update to 0.8.0.1 --- .gitignore | 1 + ghc-vector-algorithms.spec | 9 +- sources | 2 +- vector-algorithms-0.8.0.1.cabal | 148 ++++++++++++++++++++++++++++++++ 4 files changed, 157 insertions(+), 3 deletions(-) create mode 100644 vector-algorithms-0.8.0.1.cabal diff --git a/.gitignore b/.gitignore index c64532e..93d7307 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vector-algorithms-0.7.0.1.tar.gz /vector-algorithms-0.7.0.4.tar.gz +/vector-algorithms-0.8.0.1.tar.gz diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index b6cc459..f1625b3 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -7,14 +7,15 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.7.0.4 -Release: 2%{?dist} +Version: 0.8.0.1 +Release: 1%{?dist} Summary: Efficient algorithms for vector arrays License: BSD 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: @@ -75,6 +76,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 @@ -114,6 +116,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Thu Jul 25 2019 Jens Petersen - 0.8.0.1-1 +- update to 0.8.0.1 + * Thu Jul 25 2019 Fedora Release Engineering - 0.7.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 7199da7..aed6b31 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vector-algorithms-0.7.0.4.tar.gz) = 056c8e5e9ff4b2899f2520edcbc1d8bdde70f3d38b390421df84274d20f6fc2cbd0d0d264001f7383ea69f36fa59cfb6fa8c63123daada6c7f01e8223a6a4064 +SHA512 (vector-algorithms-0.8.0.1.tar.gz) = 22ee41d20a502bb7ec209f1d0882b1a02c37ac563740c6174c7c09181d958ab37ec6bf64d67675edeb9f3659e03f48109122d17921d054c835c9e79a21c52643 diff --git a/vector-algorithms-0.8.0.1.cabal b/vector-algorithms-0.8.0.1.cabal new file mode 100644 index 0000000..7951cee --- /dev/null +++ b/vector-algorithms-0.8.0.1.cabal @@ -0,0 +1,148 @@ +name: vector-algorithms +version: 0.8.0.1 +x-revision: 2 +license: BSD3 +license-file: LICENSE +author: Dan Doel +maintainer: Dan Doel + Erik de Castro Lopo +copyright: (c) 2008,2009,2010,2011,2012,2013,2014,2015 Dan Doel + (c) 2015 Tim Baumann +homepage: https://github.com/erikd/vector-algorithms/ +category: Data +synopsis: Efficient algorithms for vector arrays +description: Efficient algorithms for sorting vector arrays. At some stage + other vector algorithms may be added. +build-type: Simple +cabal-version: >= 1.9.2 + +flag BoundsChecks + description: Enable bounds checking + default: True + +flag UnsafeChecks + description: Enable bounds checking in unsafe operations at the cost of a + significant performance penalty. + default: False + +flag InternalChecks + description: Enable internal consistency checks at the cost of a + significant performance penalty. + default: False + +flag bench + description: Build a benchmarking program to test vector-algorithms + performance + default: True + +flag properties + description: Enable the quickcheck tests + default: True + +-- flag dump-simpl +-- description: Dumps the simplified core during compilation +-- default: False + +flag llvm + description: Build using llvm + default: False + +source-repository head + type: git + location: https://github.com/erikd/vector-algorithms/ + +library + hs-source-dirs: src + + build-depends: base >= 4.5 && < 5, + vector >= 0.6 && < 0.13, + primitive >=0.3 && <0.8, + bytestring >= 0.9 && < 1.0 + + if ! impl (ghc >= 7.8) + build-depends: tagged >= 0.4 && < 0.9 + + exposed-modules: + Data.Vector.Algorithms.Optimal + Data.Vector.Algorithms.Insertion + Data.Vector.Algorithms.Intro + Data.Vector.Algorithms.Merge + Data.Vector.Algorithms.Radix + Data.Vector.Algorithms.Search + Data.Vector.Algorithms.Heap + Data.Vector.Algorithms.AmericanFlag + Data.Vector.Algorithms.Tim + + other-modules: + Data.Vector.Algorithms.Common + + ghc-options: + -funbox-strict-fields + + -- Cabal/Hackage complains about these + -- if flag(dump-simpl) + -- ghc-options: -ddump-simpl -ddump-to-file + + if flag(llvm) + ghc-options: -fllvm + + include-dirs: + include + + install-includes: + vector.h + + if flag(BoundsChecks) + cpp-options: -DVECTOR_BOUNDS_CHECKS + + if flag(UnsafeChecks) + cpp-options: -DVECTOR_UNSAFE_CHECKS + + if flag(InternalChecks) + cpp-options: -DVECTOR_INTERNAL_CHECKS + +benchmark simple-bench + hs-source-dirs: bench/simple + type: exitcode-stdio-1.0 + + if !flag(bench) + buildable: False + + main-is: Main.hs + + other-modules: + Blocks + + build-depends: base, mwc-random, vector, vector-algorithms + ghc-options: -Wall + + -- Cabal/Hackage complains about these + -- if flag(dump-simpl) + -- ghc-options: -ddump-simpl -ddump-to-file + + if flag(llvm) + ghc-options: -fllvm + +test-suite properties + hs-source-dirs: tests/properties + type: exitcode-stdio-1.0 + main-is: Tests.hs + + other-modules: + Optimal + Properties + Util + + if !flag(properties) + buildable: False + else + build-depends: + base, + bytestring, + containers, + QuickCheck > 2.9 && < 2.14, + vector, + vector-algorithms + + if flag(llvm) + ghc-options: -fllvm From 2ed71e3bd2f5b612e325f5bd98932f8acc52c3cd Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 5 Aug 2019 18:32:46 +0800 Subject: [PATCH 16/31] BR prof for lib and static for executable --- ghc-vector-algorithms.spec | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index f1625b3..ce3b519 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.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 vector-algorithms @@ -20,16 +20,11 @@ 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-bytestring-devel -BuildRequires: ghc-primitive-devel -BuildRequires: ghc-vector-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-primitive-prof +BuildRequires: ghc-vector-prof %if %{with tests} BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-containers-devel @@ -44,6 +39,7 @@ algorithms may be added. %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 a8433c4d4ed56301989579963079d1ce44eb6251 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jan 2020 21:38:53 +0000 Subject: [PATCH 17/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-vector-algorithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index ce3b519..8e72c55 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.8.0.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Efficient algorithms for vector arrays License: BSD @@ -112,6 +112,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Tue Jan 28 2020 Fedora Release Engineering - 0.8.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Thu Jul 25 2019 Jens Petersen - 0.8.0.1-1 - update to 0.8.0.1 From aa1c1699bf47f14d7b91b0845a14d29e153cc716 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 8 Feb 2020 22:52:43 +0800 Subject: [PATCH 18/31] refresh to cabal-rpm-2.0.2 --- ghc-vector-algorithms.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 8e72c55..a4c5305 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-1.0.1 +# generated by cabal-rpm-2.0.2 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name vector-algorithms @@ -53,6 +53,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. @@ -63,6 +64,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,6 +94,16 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %cabal_test +%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 @@ -103,6 +115,7 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %if %{with haddock} %files doc -f %{name}-doc.files +%license LICENSE %endif From 4bfe38c2dee21219882cabae43f9bd3593c90782 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 14 Feb 2020 12:32:36 +0800 Subject: [PATCH 19/31] update to 0.8.0.3 --- .gitignore | 1 + ghc-vector-algorithms.spec | 10 ++- sources | 2 +- vector-algorithms-0.8.0.1.cabal | 148 -------------------------------- 4 files changed, 8 insertions(+), 153 deletions(-) delete mode 100644 vector-algorithms-0.8.0.1.cabal diff --git a/.gitignore b/.gitignore index 93d7307..78d4a54 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /vector-algorithms-0.7.0.1.tar.gz /vector-algorithms-0.7.0.4.tar.gz /vector-algorithms-0.8.0.1.tar.gz +/vector-algorithms-0.8.0.3.tar.gz diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index a4c5305..dda676c 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -7,15 +7,14 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.8.0.1 -Release: 2%{?dist} +Version: 0.8.0.3 +Release: 1%{?dist} Summary: Efficient algorithms for vector arrays License: BSD 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: @@ -74,7 +73,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 @@ -111,6 +109,7 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %files devel -f %{name}-devel.files +%doc CHANGELOG.md %if %{with haddock} @@ -125,6 +124,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Fri Feb 14 2020 Jens Petersen - 0.8.0.3-1 +- update to 0.8.0.3 + * Tue Jan 28 2020 Fedora Release Engineering - 0.8.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index aed6b31..bf0a2ef 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vector-algorithms-0.8.0.1.tar.gz) = 22ee41d20a502bb7ec209f1d0882b1a02c37ac563740c6174c7c09181d958ab37ec6bf64d67675edeb9f3659e03f48109122d17921d054c835c9e79a21c52643 +SHA512 (vector-algorithms-0.8.0.3.tar.gz) = 45311e19a1e5c9994e7d666b73445d11946f60915df3d2f385a435538d1b6b0929b56a960f83c5df1b2df883566e7f8e6fdd5be4e075364d7daecd6dbec780e5 diff --git a/vector-algorithms-0.8.0.1.cabal b/vector-algorithms-0.8.0.1.cabal deleted file mode 100644 index 7951cee..0000000 --- a/vector-algorithms-0.8.0.1.cabal +++ /dev/null @@ -1,148 +0,0 @@ -name: vector-algorithms -version: 0.8.0.1 -x-revision: 2 -license: BSD3 -license-file: LICENSE -author: Dan Doel -maintainer: Dan Doel - Erik de Castro Lopo -copyright: (c) 2008,2009,2010,2011,2012,2013,2014,2015 Dan Doel - (c) 2015 Tim Baumann -homepage: https://github.com/erikd/vector-algorithms/ -category: Data -synopsis: Efficient algorithms for vector arrays -description: Efficient algorithms for sorting vector arrays. At some stage - other vector algorithms may be added. -build-type: Simple -cabal-version: >= 1.9.2 - -flag BoundsChecks - description: Enable bounds checking - default: True - -flag UnsafeChecks - description: Enable bounds checking in unsafe operations at the cost of a - significant performance penalty. - default: False - -flag InternalChecks - description: Enable internal consistency checks at the cost of a - significant performance penalty. - default: False - -flag bench - description: Build a benchmarking program to test vector-algorithms - performance - default: True - -flag properties - description: Enable the quickcheck tests - default: True - --- flag dump-simpl --- description: Dumps the simplified core during compilation --- default: False - -flag llvm - description: Build using llvm - default: False - -source-repository head - type: git - location: https://github.com/erikd/vector-algorithms/ - -library - hs-source-dirs: src - - build-depends: base >= 4.5 && < 5, - vector >= 0.6 && < 0.13, - primitive >=0.3 && <0.8, - bytestring >= 0.9 && < 1.0 - - if ! impl (ghc >= 7.8) - build-depends: tagged >= 0.4 && < 0.9 - - exposed-modules: - Data.Vector.Algorithms.Optimal - Data.Vector.Algorithms.Insertion - Data.Vector.Algorithms.Intro - Data.Vector.Algorithms.Merge - Data.Vector.Algorithms.Radix - Data.Vector.Algorithms.Search - Data.Vector.Algorithms.Heap - Data.Vector.Algorithms.AmericanFlag - Data.Vector.Algorithms.Tim - - other-modules: - Data.Vector.Algorithms.Common - - ghc-options: - -funbox-strict-fields - - -- Cabal/Hackage complains about these - -- if flag(dump-simpl) - -- ghc-options: -ddump-simpl -ddump-to-file - - if flag(llvm) - ghc-options: -fllvm - - include-dirs: - include - - install-includes: - vector.h - - if flag(BoundsChecks) - cpp-options: -DVECTOR_BOUNDS_CHECKS - - if flag(UnsafeChecks) - cpp-options: -DVECTOR_UNSAFE_CHECKS - - if flag(InternalChecks) - cpp-options: -DVECTOR_INTERNAL_CHECKS - -benchmark simple-bench - hs-source-dirs: bench/simple - type: exitcode-stdio-1.0 - - if !flag(bench) - buildable: False - - main-is: Main.hs - - other-modules: - Blocks - - build-depends: base, mwc-random, vector, vector-algorithms - ghc-options: -Wall - - -- Cabal/Hackage complains about these - -- if flag(dump-simpl) - -- ghc-options: -ddump-simpl -ddump-to-file - - if flag(llvm) - ghc-options: -fllvm - -test-suite properties - hs-source-dirs: tests/properties - type: exitcode-stdio-1.0 - main-is: Tests.hs - - other-modules: - Optimal - Properties - Util - - if !flag(properties) - buildable: False - else - build-depends: - base, - bytestring, - containers, - QuickCheck > 2.9 && < 2.14, - vector, - vector-algorithms - - if flag(llvm) - ghc-options: -fllvm From 0ec0ced23b3ba2137cf922ec00e6da9f6c4cc4cb Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 4 Jun 2020 19:28:55 +0800 Subject: [PATCH 20/31] refresh to cabal-rpm-2.0.5 --- ghc-vector-algorithms.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index dda676c..4c7095d 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.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 vector-algorithms %global pkgver %{pkg_name}-%{version} @@ -85,6 +85,7 @@ This package provides the Haskell %{pkg_name} profiling library. %install # Begin cabal-rpm install %ghc_lib_install +chmod a-x CHANGELOG.md # End cabal-rpm install From 09e174724c8ec848b9e68af8ac23094f0085e61b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 19 Jun 2020 16:57:33 +0800 Subject: [PATCH 21/31] refresh to cabal-rpm-2.0.6 --- ghc-vector-algorithms.spec | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 4c7095d..fa067d5 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -1,4 +1,4 @@ -# 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 vector-algorithms @@ -73,6 +73,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +chmod a-x CHANGELOG.md # End cabal-rpm setup @@ -85,7 +86,6 @@ This package provides the Haskell %{pkg_name} profiling library. %install # Begin cabal-rpm install %ghc_lib_install -chmod a-x CHANGELOG.md # End cabal-rpm install @@ -93,16 +93,6 @@ chmod a-x CHANGELOG.md %cabal_test -%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 497d7a767b387fe7e3bda63f27a2cc6409140c6a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 17 Jul 2020 18:47:15 +0800 Subject: [PATCH 22/31] bump release --- ghc-vector-algorithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index fa067d5..7a64ed8 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.8.0.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Efficient algorithms for vector arrays License: BSD @@ -115,6 +115,9 @@ chmod a-x CHANGELOG.md %changelog +* Fri Jul 17 2020 Jens Petersen - 0.8.0.3-2 +- refresh to cabal-rpm-2.0.6 + * Fri Feb 14 2020 Jens Petersen - 0.8.0.3-1 - update to 0.8.0.3 From c5e8f606dc38dbc3010b2ef0949f8ec35a166c33 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 19:50:36 +0000 Subject: [PATCH 23/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-vector-algorithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 7a64ed8..423f4ba 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.8.0.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Efficient algorithms for vector arrays License: BSD @@ -115,6 +115,9 @@ chmod a-x CHANGELOG.md %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 0.8.0.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Fri Jul 17 2020 Jens Petersen - 0.8.0.3-2 - refresh to cabal-rpm-2.0.6 From 6f2c01d15f72b1268829001f9df3d40b6547fab9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 1 Aug 2020 01:40:32 +0000 Subject: [PATCH 24/31] - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-vector-algorithms.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 423f4ba..36139d9 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.8.0.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Efficient algorithms for vector arrays License: BSD @@ -115,6 +115,10 @@ chmod a-x CHANGELOG.md %changelog +* Sat Aug 01 2020 Fedora Release Engineering - 0.8.0.3-4 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Mon Jul 27 2020 Fedora Release Engineering - 0.8.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From cf6f8ba7de9182ff29e56f76c6507056ed00d8fc Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 07:54:40 +0000 Subject: [PATCH 25/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-vector-algorithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 36139d9..2b1d835 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.8.0.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Efficient algorithms for vector arrays License: BSD @@ -115,6 +115,9 @@ chmod a-x CHANGELOG.md %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 0.8.0.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Sat Aug 01 2020 Fedora Release Engineering - 0.8.0.3-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 02ee0c3f4ee8f96f029b8a4a01f0cec800f9b531 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 22 Jul 2021 01:26:45 +0000 Subject: [PATCH 26/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-vector-algorithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 2b1d835..ccc362d 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.8.0.3 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Efficient algorithms for vector arrays License: BSD @@ -115,6 +115,9 @@ chmod a-x CHANGELOG.md %changelog +* Thu Jul 22 2021 Fedora Release Engineering - 0.8.0.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Tue Jan 26 2021 Fedora Release Engineering - 0.8.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 689955cae00202eae88ae0d440a3088300e208c9 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 5 Aug 2021 12:59:24 +0800 Subject: [PATCH 27/31] update to 0.8.0.4 --- .gitignore | 1 + ghc-vector-algorithms.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 78d4a54..6290c1c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /vector-algorithms-0.7.0.4.tar.gz /vector-algorithms-0.8.0.1.tar.gz /vector-algorithms-0.8.0.3.tar.gz +/vector-algorithms-0.8.0.4.tar.gz diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index ccc362d..a0d2c73 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -7,8 +7,8 @@ %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.8.0.3 -Release: 6%{?dist} +Version: 0.8.0.4 +Release: 1%{?dist} Summary: Efficient algorithms for vector arrays License: BSD @@ -115,6 +115,9 @@ chmod a-x CHANGELOG.md %changelog +* Thu Aug 5 2021 Jens Petersen - 0.8.0.4-1 +- update to 0.8.0.4 + * Thu Jul 22 2021 Fedora Release Engineering - 0.8.0.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index bf0a2ef..66936b5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vector-algorithms-0.8.0.3.tar.gz) = 45311e19a1e5c9994e7d666b73445d11946f60915df3d2f385a435538d1b6b0929b56a960f83c5df1b2df883566e7f8e6fdd5be4e075364d7daecd6dbec780e5 +SHA512 (vector-algorithms-0.8.0.4.tar.gz) = da5f52493c7f68df0a2c718724dcac9be758b09b14c8fa913aa328ee4c1286893fb239882018202d0fcd56709364ccddf3d620ff3b886d830102ef52a0868d42 From d7e1dab92fbf0b42aab5aa63fa8e09abb4651635 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 8 Jul 2021 00:30:14 +0800 Subject: [PATCH 28/31] refresh to cabal-rpm-2.0.9 --- ghc-vector-algorithms.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index a0d2c73..2484554 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.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 vector-algorithms @@ -53,6 +53,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. @@ -73,7 +74,6 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -chmod a-x CHANGELOG.md # End cabal-rpm setup @@ -90,7 +90,9 @@ chmod a-x CHANGELOG.md %check +%if %{with tests} %cabal_test +%endif %files -f %{name}.files From 2feca75a106248db02a43e153b8a8f3bb119902f Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 4 Aug 2021 22:29:12 +0800 Subject: [PATCH 29/31] revise .cabal --- ghc-vector-algorithms.spec | 3 + vector-algorithms-0.8.0.4.cabal | 154 ++++++++++++++++++++++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 vector-algorithms-0.8.0.4.cabal diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 2484554..4dcb2b6 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -15,9 +15,11 @@ License: BSD 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: +BuildRequires: dos2unix BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-base-prof @@ -74,6 +76,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup diff --git a/vector-algorithms-0.8.0.4.cabal b/vector-algorithms-0.8.0.4.cabal new file mode 100644 index 0000000..0290108 --- /dev/null +++ b/vector-algorithms-0.8.0.4.cabal @@ -0,0 +1,154 @@ +name: vector-algorithms +version: 0.8.0.4 +x-revision: 1 +license: BSD3 +license-file: LICENSE +author: Dan Doel +maintainer: Dan Doel + Erik de Castro Lopo +copyright: (c) 2008,2009,2010,2011,2012,2013,2014,2015 Dan Doel + (c) 2015 Tim Baumann +homepage: https://github.com/erikd/vector-algorithms/ +category: Data +synopsis: Efficient algorithms for vector arrays +description: Efficient algorithms for sorting vector arrays. At some stage + other vector algorithms may be added. +build-type: Simple +cabal-version: >= 1.10 +extra-source-files: CHANGELOG.md + + +flag BoundsChecks + description: Enable bounds checking + default: True + +flag UnsafeChecks + description: Enable bounds checking in unsafe operations at the cost of a + significant performance penalty. + default: False + +flag InternalChecks + description: Enable internal consistency checks at the cost of a + significant performance penalty. + default: False + +flag bench + description: Build a benchmarking program to test vector-algorithms + performance + default: True + +flag properties + description: Enable the quickcheck tests + default: True + +-- flag dump-simpl +-- description: Dumps the simplified core during compilation +-- default: False + +flag llvm + description: Build using llvm + default: False + +source-repository head + type: git + location: https://github.com/erikd/vector-algorithms/ + +library + hs-source-dirs: src + default-language: Haskell2010 + + build-depends: base >= 4.5 && < 5, + vector >= 0.6 && < 0.14, + primitive >=0.3 && <0.8, + bytestring >= 0.9 && < 1.0 + + if ! impl (ghc >= 7.8) + build-depends: tagged >= 0.4 && < 0.9 + + exposed-modules: + Data.Vector.Algorithms.Optimal + Data.Vector.Algorithms.Insertion + Data.Vector.Algorithms.Intro + Data.Vector.Algorithms.Merge + Data.Vector.Algorithms.Radix + Data.Vector.Algorithms.Search + Data.Vector.Algorithms.Heap + Data.Vector.Algorithms.AmericanFlag + Data.Vector.Algorithms.Tim + + other-modules: + Data.Vector.Algorithms.Common + + ghc-options: + -funbox-strict-fields + + -- Cabal/Hackage complains about these + -- if flag(dump-simpl) + -- ghc-options: -ddump-simpl -ddump-to-file + + if flag(llvm) + ghc-options: -fllvm + + include-dirs: + include + + install-includes: + vector.h + + if flag(BoundsChecks) + cpp-options: -DVECTOR_BOUNDS_CHECKS + + if flag(UnsafeChecks) + cpp-options: -DVECTOR_UNSAFE_CHECKS + + if flag(InternalChecks) + cpp-options: -DVECTOR_INTERNAL_CHECKS + +benchmark simple-bench + hs-source-dirs: bench/simple + type: exitcode-stdio-1.0 + default-language: Haskell2010 + + if !flag(bench) + buildable: False + + main-is: Main.hs + + other-modules: + Blocks + + build-depends: base, mwc-random, vector, vector-algorithms + ghc-options: -Wall + + -- Cabal/Hackage complains about these + -- if flag(dump-simpl) + -- ghc-options: -ddump-simpl -ddump-to-file + + if flag(llvm) + ghc-options: -fllvm + +test-suite properties + hs-source-dirs: tests/properties + type: exitcode-stdio-1.0 + main-is: Tests.hs + default-language: Haskell2010 + + other-modules: + Optimal + Properties + Util + + if !flag(properties) + buildable: False + else + build-depends: + base, + bytestring, + containers, + QuickCheck > 2.9 && < 2.15, + vector, + vector-algorithms + + if flag(llvm) + ghc-options: -fllvm + From ea50e9c81324e2f5928d576893044557ae0c74dd Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 05:46:02 +0000 Subject: [PATCH 30/31] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-vector-algorithms.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-vector-algorithms.spec b/ghc-vector-algorithms.spec index 4dcb2b6..eacc8af 100644 --- a/ghc-vector-algorithms.spec +++ b/ghc-vector-algorithms.spec @@ -8,7 +8,7 @@ Name: ghc-%{pkg_name} Version: 0.8.0.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Efficient algorithms for vector arrays License: BSD @@ -120,6 +120,9 @@ dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 0.8.0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Thu Aug 5 2021 Jens Petersen - 0.8.0.4-1 - update to 0.8.0.4 From a0c48669a53b3e0723b20547a1400e95b2db5cd1 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Mon, 30 Oct 2023 22:09:31 +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 66936b5..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (vector-algorithms-0.8.0.4.tar.gz) = da5f52493c7f68df0a2c718724dcac9be758b09b14c8fa913aa328ee4c1286893fb239882018202d0fcd56709364ccddf3d620ff3b886d830102ef52a0868d42