From c4af4b0ca64d295ddef93d97a915c816d2c0e85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hr=C4=8Dka?= Date: Tue, 16 Mar 2021 10:34:45 +0000 Subject: [PATCH 1/9] 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..cc0e000 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ghc-assoc + +The ghc-assoc package From 26932fcd2b6c513f78f8e11f22ce34eb1da23ee7 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 17 Mar 2021 02:44:41 +0800 Subject: [PATCH 2/9] import #1924206 --- .gitignore | 1 + ghc-assoc.spec | 107 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 109 insertions(+) create mode 100644 .gitignore create mode 100644 ghc-assoc.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bb5a3b6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/assoc-1.0.2.tar.gz diff --git a/ghc-assoc.spec b/ghc-assoc.spec new file mode 100644 index 0000000..3888f50 --- /dev/null +++ b/ghc-assoc.spec @@ -0,0 +1,107 @@ +# generated by cabal-rpm-2.0.7 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ + +%global pkg_name assoc +%global pkgver %{pkg_name}-%{version} + +Name: ghc-%{pkg_name} +Version: 1.0.2 +Release: 1%{?dist} +Summary: Swap and assoc: Symmetric and Semigroupy Bifunctors + +License: BSD +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 +BuildRequires: ghc-base-prof +BuildRequires: ghc-bifunctors-prof +BuildRequires: ghc-tagged-prof +# End cabal-rpm deps + +%description +Provides generalizations of 'swap :: (a,b) -> (b,a)' and +'assoc :: ((a,b),c) -> (a,(b,c))' to Bifunctor's supporting similar operations +(e.g. Either, These). + + +%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 +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development 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. +%endif + + +%if %{with ghc_prof} +%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. +%endif + + +%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 + + +%files -f %{name}.files +# Begin cabal-rpm files: +%license LICENSE +# End cabal-rpm files + + +%files devel -f %{name}-devel.files +%doc CHANGELOG.md + + +%if %{with haddock} +%files doc -f %{name}-doc.files +%license LICENSE +%endif + + +%if %{with ghc_prof} +%files prof -f %{name}-prof.files +%endif + + +%changelog +* Tue Feb 2 2021 Jens Petersen - 1.0.2-1 +- spec file generated by cabal-rpm-2.0.7 diff --git a/sources b/sources new file mode 100644 index 0000000..326254f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (assoc-1.0.2.tar.gz) = 20fd0056dcc2dff9504e090be5c2ef27692a795133620e60b9382cfdfbaf26d1019617acf48f0f762e22d699068bc4dbd35a714177ce3a36761c0065708b9168 From 4de412699e67e8e1de01587774db77826d169303 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 22 Jul 2021 00:18:27 +0000 Subject: [PATCH 3/9] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-assoc.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-assoc.spec b/ghc-assoc.spec index 3888f50..03a1ad4 100644 --- a/ghc-assoc.spec +++ b/ghc-assoc.spec @@ -6,7 +6,7 @@ Name: ghc-%{pkg_name} Version: 1.0.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Swap and assoc: Symmetric and Semigroupy Bifunctors License: BSD @@ -103,5 +103,8 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Thu Jul 22 2021 Fedora Release Engineering - 1.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Tue Feb 2 2021 Jens Petersen - 1.0.2-1 - spec file generated by cabal-rpm-2.0.7 From d2af5e582d9c5feec38a08a7fd7370d90b59765d Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 8 Jul 2021 00:30:09 +0800 Subject: [PATCH 4/9] refresh to cabal-rpm-2.0.9 --- ghc-assoc.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghc-assoc.spec b/ghc-assoc.spec index 03a1ad4..7f0a7c0 100644 --- a/ghc-assoc.spec +++ b/ghc-assoc.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-2.0.7 +# generated by cabal-rpm-2.0.9 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name assoc @@ -46,6 +46,7 @@ This package provides the Haskell %{pkg_name} library development 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. From 165206253291a03411c9c1ccad2175a692643a46 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 4 Aug 2021 22:29:11 +0800 Subject: [PATCH 5/9] revise .cabal --- assoc-1.0.2.cabal | 51 +++++++++++++++++++++++++++++++++++++++++++++++ ghc-assoc.spec | 2 ++ 2 files changed, 53 insertions(+) create mode 100644 assoc-1.0.2.cabal diff --git a/assoc-1.0.2.cabal b/assoc-1.0.2.cabal new file mode 100644 index 0000000..4cb4376 --- /dev/null +++ b/assoc-1.0.2.cabal @@ -0,0 +1,51 @@ +cabal-version: 1.12 +name: assoc +version: 1.0.2 +x-revision: 1 +license: BSD3 +license-file: LICENSE +synopsis: swap and assoc: Symmetric and Semigroupy Bifunctors +category: Data +description: + Provides generalisations of + @swap :: (a,b) -> (b,a)@ and + @assoc :: ((a,b),c) -> (a,(b,c))@ + to + @Bifunctor@s supporting similar operations (e.g. @Either@, @These@). + +author: Oleg Grenrus +maintainer: Oleg Grenrus +build-type: Simple +extra-source-files: CHANGELOG.md +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.5 + || ==8.8.4 + || ==8.10.3 + , GHCJS ==8.4 + +source-repository head + type: git + location: https://github.com/phadej/assoc.git + +library + default-language: Haskell2010 + hs-source-dirs: src + build-depends: + base >=4.3 && <4.16 + , bifunctors >=5.5.5 && <5.6 + , tagged >=0.8.6 && <0.9 + + exposed-modules: + Data.Bifunctor.Assoc + Data.Bifunctor.Swap + + other-extensions: TypeFamilies diff --git a/ghc-assoc.spec b/ghc-assoc.spec index 7f0a7c0..8efa727 100644 --- a/ghc-assoc.spec +++ b/ghc-assoc.spec @@ -13,6 +13,7 @@ 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: @@ -67,6 +68,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 From d83615ba4a8adb90ecfdb93529c0ceaebb464e85 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 6 Aug 2021 10:20:49 +0800 Subject: [PATCH 6/9] bump release --- ghc-assoc.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-assoc.spec b/ghc-assoc.spec index 8efa727..230c36b 100644 --- a/ghc-assoc.spec +++ b/ghc-assoc.spec @@ -6,7 +6,7 @@ Name: ghc-%{pkg_name} Version: 1.0.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Swap and assoc: Symmetric and Semigroupy Bifunctors License: BSD @@ -106,6 +106,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Fri Aug 06 2021 Jens Petersen - 1.0.2-3 +- rebuild + * Thu Jul 22 2021 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 3b1c1b2c51992bf4ad9c64fef530962f73ba4394 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 04:30:48 +0000 Subject: [PATCH 7/9] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-assoc.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-assoc.spec b/ghc-assoc.spec index 230c36b..85dd06f 100644 --- a/ghc-assoc.spec +++ b/ghc-assoc.spec @@ -6,7 +6,7 @@ Name: ghc-%{pkg_name} Version: 1.0.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Swap and assoc: Symmetric and Semigroupy Bifunctors License: BSD @@ -106,6 +106,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 1.0.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Aug 06 2021 Jens Petersen - 1.0.2-3 - rebuild From abd8ba04df9782d5ceea2d0adebbda1729853dfc Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 18 Jun 2022 00:21:40 +0800 Subject: [PATCH 8/9] revise .cabal --- assoc-1.0.2.cabal | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/assoc-1.0.2.cabal b/assoc-1.0.2.cabal index 4cb4376..c9d1584 100644 --- a/assoc-1.0.2.cabal +++ b/assoc-1.0.2.cabal @@ -1,7 +1,7 @@ cabal-version: 1.12 name: assoc version: 1.0.2 -x-revision: 1 +x-revision: 2 license: BSD3 license-file: LICENSE synopsis: swap and assoc: Symmetric and Semigroupy Bifunctors @@ -29,7 +29,9 @@ tested-with: || ==8.4.4 || ==8.6.5 || ==8.8.4 - || ==8.10.3 + || ==8.10.4 + || ==9.0.1 + || ==9.2.1 , GHCJS ==8.4 source-repository head @@ -40,7 +42,7 @@ library default-language: Haskell2010 hs-source-dirs: src build-depends: - base >=4.3 && <4.16 + base >=4.3 && <4.17 , bifunctors >=5.5.5 && <5.6 , tagged >=0.8.6 && <0.9 From bc40ca675fb113329d3278789e14f8a4378247ff Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Mon, 30 Oct 2023 21:20:44 +0300 Subject: [PATCH 9/9] Remove unnecessary files --- README.md | 3 --- sources | 1 - 2 files changed, 4 deletions(-) delete mode 100644 README.md delete mode 100644 sources diff --git a/README.md b/README.md deleted file mode 100644 index cc0e000..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ghc-assoc - -The ghc-assoc package diff --git a/sources b/sources deleted file mode 100644 index 326254f..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (assoc-1.0.2.tar.gz) = 20fd0056dcc2dff9504e090be5c2ef27692a795133620e60b9382cfdfbaf26d1019617acf48f0f762e22d699068bc4dbd35a714177ce3a36761c0065708b9168