commit 3df4797cc152dd01739a1885c1778165420c20547206205ddf38080e1505be4d Author: Peter Simons Date: Tue Dec 10 11:25:56 2024 +0000 osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-reflection revision:3, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-reflection?expand=0&rev=44 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ghc-reflection.changes b/ghc-reflection.changes new file mode 100644 index 0000000..30ceeb0 --- /dev/null +++ b/ghc-reflection.changes @@ -0,0 +1,98 @@ +------------------------------------------------------------------- +Wed Dec 4 12:05:19 UTC 2024 - Peter Simons + +- Update reflection to version 2.1.9. + # 2.1.9 [2024.12.04] + * Drop support for pre-8.0 versions of GHC. + +------------------------------------------------------------------- +Sat May 4 15:32:13 UTC 2024 - Peter Simons + +- Update reflection to version 2.1.8. + # 2.1.8 [2024.05.04] + * Fix a memory leak in `reifyTypeable`. + +------------------------------------------------------------------- +Sat Sep 30 12:49:12 UTC 2023 - Peter Simons + +- Update reflection to version 2.1.7 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +- Drop obsolete code to remove +x permission from data files. + +------------------------------------------------------------------- +Thu Mar 30 17:08:02 UTC 2023 - Peter Simons + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Tue Feb 28 12:10:22 UTC 2023 - Peter Simons + +- Update reflection to version 2.1.7. + # 2.1.7 [2023.02.28] + * When building with `base-4.18` (GHC 9.6) or later, implement `reifyNat` and + `reifySymbol` using the API provided by `GHC.TypeLits` instead of resorting + to `unsafeCoerce`. + +------------------------------------------------------------------- +Tue Feb 15 08:02:33 UTC 2022 - Peter Simons + +- Update copyright header in the spec file. + +------------------------------------------------------------------- +Fri Feb 11 08:57:49 UTC 2022 - Peter Simons + +- Make sure installed text files have no +x flag. + +------------------------------------------------------------------- +Tue Nov 16 19:51:23 UTC 2021 - psimons@suse.com + +- Update reflection to version 2.1.6 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + +------------------------------------------------------------------- +Tue Sep 7 18:46:58 UTC 2021 - Ondřej Súkup + +- make rpmlint happy + +------------------------------------------------------------------- +Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup + +- disable %{ix86} build + +------------------------------------------------------------------- +Tue Aug 18 10:45:50 UTC 2020 - Peter Simons + +- Replace %setup -q with the more modern %autosetup macro. + +------------------------------------------------------------------- +Tue Jun 9 09:10:57 UTC 2020 - psimons@suse.com + +- Update reflection to version 2.1.6. + # 2.1.6 [2020.05.16] + * Fix a bug in which `give` (and possibly `reify`, `reifyNat`, and + `reifySymbol`) could be unsoundly inlined by GHC 8.10 or older to produce + incorrect runtime results. + +------------------------------------------------------------------- +Fri Nov 8 16:14:31 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +------------------------------------------------------------------- +Wed Aug 28 02:02:20 UTC 2019 - psimons@suse.com + +- Update reflection to version 2.1.5. + # 2.1.5 [2019.08.27] + * Fix a bug in which `reifyNat` would yield incorrect results for very large + `Integer`s on GHC 8.2 or later. + +------------------------------------------------------------------- +Tue Jun 11 14:29:16 UTC 2019 - Peter Simons + +- Update Cabal file for more accurate build dependencies. + +------------------------------------------------------------------- +Thu Aug 2 16:29:55 UTC 2018 - psimons@suse.com + +- Add reflection at version 2.1.4. diff --git a/ghc-reflection.spec b/ghc-reflection.spec new file mode 100644 index 0000000..c591d6a --- /dev/null +++ b/ghc-reflection.spec @@ -0,0 +1,122 @@ +# +# spec file for package ghc-reflection +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global pkg_name reflection +%global pkgver %{pkg_name}-%{version} +%bcond_with tests +Name: ghc-%{pkg_name} +Version: 2.1.9 +Release: 0 +Summary: Reifies arbitrary terms into types that can be reflected back into terms +License: BSD-3-Clause +URL: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-template-haskell-devel +BuildRequires: ghc-template-haskell-prof +ExcludeArch: %{ix86} +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-hspec-prof +%endif + +%description +This package addresses the /configuration problem/ which is propagating +configurations that are available at run-time, allowing multiple configurations +to coexist without resorting to mutable global variables or +'System.IO.Unsafe.unsafePerformIO'. + +That package is an implementation of the ideas presented in the paper +"Functional Pearl: Implicit Configurations" by Oleg Kiselyov and Chung-chieh +Shan (). +However, the API has been streamlined to improve performance. + +There are a handful of tutorials on how to use this library: + +* Austin Seipp's tutorial + provides a summary of the approach taken by this +library, along with more motivating examples. + +* Arnaud Spiwack's tutorial + explains how to use this library. + +%package devel +Summary: Haskell %{pkg_name} library development files +Requires: %{name} = %{version}-%{release} +Requires: ghc-compiler = %{ghc_version} +Requires(post): ghc-compiler = %{ghc_version} +Requires(postun): ghc-compiler = %{ghc_version} + +%description devel +This package provides the Haskell %{pkg_name} library development files. + +%package -n ghc-%{pkg_name}-doc +Summary: Haskell %{pkg_name} library documentation +Requires: ghc-filesystem +BuildArch: noarch + +%description -n ghc-%{pkg_name}-doc +This package provides the Haskell %{pkg_name} library documentation. + +%package -n ghc-%{pkg_name}-prof +Summary: Haskell %{pkg_name} profiling library +Requires: ghc-%{pkg_name}-devel = %{version}-%{release} +Supplements: (ghc-%{pkg_name}-devel and ghc-prof) + +%description -n ghc-%{pkg_name}-prof +This package provides the Haskell %{pkg_name} profiling library. + +%prep +%autosetup -n %{pkg_name}-%{version} + +%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.markdown README.markdown examples + +%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog diff --git a/reflection-2.1.8.tar.gz b/reflection-2.1.8.tar.gz new file mode 100644 index 0000000..ed0aa3c --- /dev/null +++ b/reflection-2.1.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:922e9ff67958ed1bca19000a9d59153ed3152ef775e9018d5853488e4f4189cd +size 18331 diff --git a/reflection-2.1.9.tar.gz b/reflection-2.1.9.tar.gz new file mode 100644 index 0000000..4896d54 --- /dev/null +++ b/reflection-2.1.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6a7d5e41ad0ee1a05c660acf4fd34b21f38330eec165d246b7fffb398e59fb3 +size 17560