From 30a060b6e5f7e59b440f90ad8f777c5620774f0f Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Fri, 29 Oct 2021 14:16:18 +0000 Subject: [PATCH 1/6] 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..f17ec8d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ghc-th-compat + +The ghc-th-compat package From b7772f1c5593974e99035f71979373453ce8da38 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 30 Oct 2021 13:18:13 +0800 Subject: [PATCH 2/6] import #1980776 --- .gitignore | 1 + ghc-th-compat.spec | 124 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 126 insertions(+) create mode 100644 .gitignore create mode 100644 ghc-th-compat.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..153ab92 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/th-compat-0.1.2.tar.gz diff --git a/ghc-th-compat.spec b/ghc-th-compat.spec new file mode 100644 index 0000000..f73b1db --- /dev/null +++ b/ghc-th-compat.spec @@ -0,0 +1,124 @@ +# generated by cabal-rpm-2.0.10 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ + +%global pkg_name th-compat +%global pkgver %{pkg_name}-%{version} + +%bcond_without tests + +Name: ghc-%{pkg_name} +Version: 0.1.2 +Release: 1%{?dist} +Summary: Backward- (and forward-)compatible Quote and Code types + +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-template-haskell-prof +%if %{with tests} +BuildRequires: ghc-base-compat-devel +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-hspec-discover-devel +BuildRequires: ghc-mtl-devel +%endif +# End cabal-rpm deps + +%description +This package defines a "Language.Haskell.TH.Syntax.Compat" module, which +backports the 'Quote' and 'Code' types to work across a wide range of +'template-haskell' versions. On recent versions of 'template-haskell' (2.17.0.0 +or later), this module simply reexports 'Quote' and 'Code' from +"Language.Haskell.TH.Syntax". Refer to the Haddocks for +"Language.Haskell.TH.Syntax.Compat" for examples of how to use this module. + + +%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 +Requires: ghc-filesystem + +%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 + + +%check +%if %{with tests} +%cabal_test +%endif + + +%files -f %{name}.files +# Begin cabal-rpm files: +%license LICENSE +# End cabal-rpm files + + +%files devel -f %{name}-devel.files +%doc CHANGELOG.md README.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 +* Fri Jul 9 2021 Jens Petersen - 0.1.2-1 +- spec file generated by cabal-rpm-2.0.10 diff --git a/sources b/sources new file mode 100644 index 0000000..91fd1dd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (th-compat-0.1.2.tar.gz) = 4910a8fdbd4ec9658205f78be0e5c832deaffe77c51695776563758de9b28e190c6134101c0467a7abc96a51a6ddf02c77943c252d2f3e41f0c4bc1fcb461073 From 01863f7242dd03c24d73ca710bd1b3f0479cdd2b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 30 Oct 2021 13:23:17 +0800 Subject: [PATCH 3/6] disable tests on armv7hl in line with current th-orphans --- ghc-th-compat.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ghc-th-compat.spec b/ghc-th-compat.spec index f73b1db..5c8bec5 100644 --- a/ghc-th-compat.spec +++ b/ghc-th-compat.spec @@ -4,11 +4,14 @@ %global pkg_name th-compat %global pkgver %{pkg_name}-%{version} +# due to th-orphans: remove when moving Rawhide to 0.1.3 +%ifnarch armv7hl %bcond_without tests +%endif Name: ghc-%{pkg_name} Version: 0.1.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Backward- (and forward-)compatible Quote and Code types License: BSD @@ -120,5 +123,8 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Sat Oct 30 2021 Jens Petersen - 0.1.2-2 +- disable tests on armv7hl in line with current th-orphans + * Fri Jul 9 2021 Jens Petersen - 0.1.2-1 - spec file generated by cabal-rpm-2.0.10 From 7ea6101fc4d3a5c98fa002c00c8cdd05ed9809b2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 05:39:17 +0000 Subject: [PATCH 4/6] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ghc-th-compat.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghc-th-compat.spec b/ghc-th-compat.spec index 5c8bec5..55819c8 100644 --- a/ghc-th-compat.spec +++ b/ghc-th-compat.spec @@ -11,7 +11,7 @@ Name: ghc-%{pkg_name} Version: 0.1.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Backward- (and forward-)compatible Quote and Code types License: BSD @@ -123,6 +123,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 0.1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Sat Oct 30 2021 Jens Petersen - 0.1.2-2 - disable tests on armv7hl in line with current th-orphans From 597ced9acd7627436334aec3abc02618c53891e4 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 7 Jun 2022 14:54:03 +0800 Subject: [PATCH 5/6] update to 0.1.3 --- .gitignore | 1 + ghc-th-compat.spec | 10 +++++-- sources | 2 +- th-compat-0.1.3.cabal | 70 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 80 insertions(+), 3 deletions(-) create mode 100644 th-compat-0.1.3.cabal diff --git a/.gitignore b/.gitignore index 153ab92..bef8444 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /th-compat-0.1.2.tar.gz +/th-compat-0.1.3.tar.gz diff --git a/ghc-th-compat.spec b/ghc-th-compat.spec index 55819c8..9f7d0ea 100644 --- a/ghc-th-compat.spec +++ b/ghc-th-compat.spec @@ -10,17 +10,19 @@ %endif Name: ghc-%{pkg_name} -Version: 0.1.2 -Release: 3%{?dist} +Version: 0.1.3 +Release: 1%{?dist} Summary: Backward- (and forward-)compatible Quote and Code types 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 @@ -80,6 +82,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 @@ -123,6 +126,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Tue Jun 07 2022 Jens Petersen - 0.1.3-1 +- https://hackage.haskell.org/package/th-compat-0.1.3/changelog + * Thu Jan 20 2022 Fedora Release Engineering - 0.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index 91fd1dd..e409f3f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (th-compat-0.1.2.tar.gz) = 4910a8fdbd4ec9658205f78be0e5c832deaffe77c51695776563758de9b28e190c6134101c0467a7abc96a51a6ddf02c77943c252d2f3e41f0c4bc1fcb461073 +SHA512 (th-compat-0.1.3.tar.gz) = acb64eebf22093568fde29e7e5b78a8bce04d74b96a197a1c1f3383890b876c8d2e0a52206bbbc9708e3bf78a05f48e9bd3ea4929cbf6a7e712a4444917c1269 diff --git a/th-compat-0.1.3.cabal b/th-compat-0.1.3.cabal new file mode 100644 index 0000000..48bb3b1 --- /dev/null +++ b/th-compat-0.1.3.cabal @@ -0,0 +1,70 @@ +cabal-version: >=1.10 +name: th-compat +version: 0.1.3 +x-revision: 1 +synopsis: Backward- (and forward-)compatible Quote and Code types +description: This package defines a "Language.Haskell.TH.Syntax.Compat" + module, which backports the @Quote@ and @Code@ types to + work across a wide range of @template-haskell@ versions. + On recent versions of @template-haskell@ (2.17.0.0 or + later), this module simply reexports @Quote@ and @Code@ + from "Language.Haskell.TH.Syntax". Refer to the Haddocks + for "Language.Haskell.TH.Syntax.Compat" for examples of + how to use this module. +homepage: https://github.com/haskell-compat/th-compat +bug-reports: https://github.com/haskell-compat/th-compat/issues +license: BSD3 +license-file: LICENSE +author: Ryan Scott +maintainer: Ryan Scott +copyright: (C) 2020 Ryan Scott +category: Text +build-type: Simple +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.4 + , GHC == 8.10.7 + , GHC == 9.0.1 + , GHC == 9.2.* +extra-source-files: CHANGELOG.md, README.md + +source-repository head + type: git + location: https://github.com/haskell-compat/th-compat + +library + exposed-modules: Language.Haskell.TH.Syntax.Compat + build-depends: base >= 4.3 && < 5 + , template-haskell >= 2.5 && < 2.19 + if !impl(ghc >= 8.0) + build-depends: fail == 4.9.* + , transformers >= 0.2 && < 0.7 + hs-source-dirs: src + default-language: Haskell2010 + ghc-options: -Wall + if impl(ghc >= 8.6) + ghc-options: -Wno-star-is-type + +test-suite spec + type: exitcode-stdio-1.0 + main-is: Spec.hs + other-modules: Language.Haskell.TH.Syntax.CompatSpec + Types + build-depends: base >= 4.3 && < 5 + , base-compat >= 0.6 && < 0.13 + , hspec >= 2 && < 3 + , mtl >= 2.1 && < 2.4 + , template-haskell >= 2.5 && < 2.19 + , th-compat + build-tool-depends: hspec-discover:hspec-discover >= 2 + hs-source-dirs: tests + default-language: Haskell2010 + ghc-options: -Wall -threaded -rtsopts From 84f012ea145727ca69fcc225e27b29d50bbcdcb1 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Mon, 30 Oct 2023 22:03:28 +0300 Subject: [PATCH 6/6] 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 f17ec8d..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ghc-th-compat - -The ghc-th-compat package diff --git a/sources b/sources deleted file mode 100644 index e409f3f..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (th-compat-0.1.3.tar.gz) = acb64eebf22093568fde29e7e5b78a8bce04d74b96a197a1c1f3383890b876c8d2e0a52206bbbc9708e3bf78a05f48e9bd3ea4929cbf6a7e712a4444917c1269