From a86802a52c9033ab954d2aa46393e77c9e6f394f Mon Sep 17 00:00:00 2001 From: Alexey Lyubimov Date: Sat, 19 Aug 2023 11:53:48 +0300 Subject: [PATCH] import ghc-yaml-0.11.8.0-13.el9 --- .ghc-yaml.metadata | 2 + .gitignore | 2 + SOURCES/system-libyaml.patch | 13 ++ SPECS/ghc-yaml.spec | 301 +++++++++++++++++++++++++++++++++++ 4 files changed, 318 insertions(+) create mode 100644 .ghc-yaml.metadata create mode 100644 .gitignore create mode 100644 SOURCES/system-libyaml.patch create mode 100644 SPECS/ghc-yaml.spec diff --git a/.ghc-yaml.metadata b/.ghc-yaml.metadata new file mode 100644 index 0000000..1de9577 --- /dev/null +++ b/.ghc-yaml.metadata @@ -0,0 +1,2 @@ +c44f374c5a74bf5a8da0574c1f2f4bb0c99b478e SOURCES/libyaml-0.1.1.0.tar.gz +eaf94f872e4e554b558122f7f2d70bb559d11dd8 SOURCES/yaml-0.11.8.0.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cc80f7f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/libyaml-0.1.1.0.tar.gz +SOURCES/yaml-0.11.8.0.tar.gz diff --git a/SOURCES/system-libyaml.patch b/SOURCES/system-libyaml.patch new file mode 100644 index 0000000..55ecb3c --- /dev/null +++ b/SOURCES/system-libyaml.patch @@ -0,0 +1,13 @@ +--- yaml-0.11.1.0/libyaml-0.1.1.0/libyaml.cabal~ 2019-02-12 09:55:57.000000000 +0100 ++++ yaml-0.11.1.0/libyaml-0.1.1.0/libyaml.cabal 2019-08-08 22:15:56.350202056 +0200 +@@ -38,8 +38,8 @@ + + flag system-libyaml + description: Use the system-wide libyaml instead of the bundled copy +- manual: False +- default: False ++ manual: True ++ default: True + + library + exposed-modules: diff --git a/SPECS/ghc-yaml.spec b/SPECS/ghc-yaml.spec new file mode 100644 index 0000000..358c8eb --- /dev/null +++ b/SPECS/ghc-yaml.spec @@ -0,0 +1,301 @@ +# generated by cabal-rpm-2.0.9 --subpackage +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ + +%global pkg_name yaml +%global pkgver %{pkg_name}-%{version} + +%global libyaml libyaml-0.1.1.0 +%global subpkgs %{libyaml} + +# testsuite missing deps: raw-strings-qq + +Name: ghc-%{pkg_name} +Version: 0.11.8.0 +# can only be reset when all subpkgs bumped +Release: 13%{?dist} +Summary: Support for parsing and rendering YAML documents + +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/%{libyaml}/%{libyaml}.tar.gz +# End cabal-rpm sources +Patch1: system-libyaml.patch + +# Begin cabal-rpm deps: +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros-extra +BuildRequires: ghc-aeson-prof +BuildRequires: ghc-attoparsec-prof +BuildRequires: ghc-base-prof +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-conduit-prof +BuildRequires: ghc-containers-prof +BuildRequires: ghc-directory-prof +BuildRequires: ghc-filepath-prof +#BuildRequires: ghc-libyaml-prof +BuildRequires: ghc-mtl-prof +BuildRequires: ghc-resourcet-prof +BuildRequires: ghc-scientific-prof +BuildRequires: ghc-template-haskell-prof +BuildRequires: ghc-text-prof +BuildRequires: ghc-transformers-prof +BuildRequires: ghc-unordered-containers-prof +BuildRequires: ghc-vector-prof +# End cabal-rpm deps +BuildRequires: libyaml-devel + +%description +Provides support for parsing and emitting Yaml documents. + +The package is broken down into two modules. "Data.Yaml" provides a high-level +interface based around the JSON datatypes provided by the 'aeson' package. +"Text.Libyaml" provides a lower-level, streaming interface. For most users, +"Data.Yaml" is recommended. + + +%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 + + +%global main_version %{version} + +%if %{defined ghclibdir} +%ghc_lib_subpackage -c libyaml-devel%{?_isa} %{libyaml} +%endif + +%global version %{main_version} + + +%prep +# Begin cabal-rpm setup: +%setup -q -n %{pkgver} -a1 +# End cabal-rpm setup +%patch1 -p1 -b .orig +( +cd %{libyaml} +# remove the bundled lib +rm -r libyaml_src +) + + +%build +# Begin cabal-rpm build: +%ghc_libs_build %{subpkgs} +%ghc_lib_build +# End cabal-rpm build + + +%install +# Begin cabal-rpm install +%ghc_libs_install %{subpkgs} +%ghc_lib_install +%ghc_fix_rpath %{pkgver} +# 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 README.md examples + + +%if %{with haddock} +%files doc -f %{name}-doc.files +%license LICENSE +%endif + + +%if %{with ghc_prof} +%files prof -f %{name}-prof.files +%endif + + +%changelog +* Sat Aug 19 2023 Alexey Lyubimov - 0.11.8.0-13 +- Rebuilt for MSVSphere 9.2 + +* Tue Jun 07 2022 Jens Petersen - 0.11.8.0-13 +- https://hackage.haskell.org/package/yaml-0.11.8.0/changelog + +* Thu Mar 10 2022 Jens Petersen - 0.11.5.0-12 +- rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 0.11.5.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sun Aug 8 2021 Jens Petersen - 0.11.5.0-10 +- update to 0.11.5.0 + +* Thu Jul 22 2021 Fedora Release Engineering - 0.11.4.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 0.11.4.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Aug 01 2020 Fedora Release Engineering - 0.11.4.0-7 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 0.11.4.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jun 10 2020 Jens Petersen - 0.11.4.0-5 +- update to 0.11.4.0 + +* Fri Feb 14 2020 Jens Petersen - 0.11.2.0-4 +- update to 0.11.2.0 + +* Tue Jan 28 2020 Fedora Release Engineering - 0.11.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Aug 8 2019 Jens Petersen - 0.11.1.0-2 +- patch .cabal for system libyaml + +* Thu Jul 25 2019 Jens Petersen - 0.11.1.0-1 +- update to 0.11.1.0 +- subpackage libyaml + +* Thu Jul 25 2019 Fedora Release Engineering - 0.8.32-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 17 2019 Jens Petersen - 0.8.32-5 +- refresh to cabal-rpm-0.13 + +* Thu Jan 31 2019 Fedora Release Engineering - 0.8.32-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Aug 7 2018 Jens Petersen - 0.8.32-3 +- try using the bundled libyaml to see if it fixes missing symbols + +* Tue Aug 7 2018 Jens Petersen - 0.8.32-2 +- rebuild + +* Wed Aug 1 2018 Jens Petersen - 0.8.32-2 + +* Thu Jul 26 2018 Jens Petersen - 0.8.32-1 +- update to 0.8.32 + +* Tue Jul 24 2018 Miro Hrončok - 0.8.25.1-5 +- Enable annotated build again + +* Mon Jul 23 2018 Miro Hrončok - 0.8.25.1-4 +- Rebuilt for #1607054 + +* Fri Jul 13 2018 Fedora Release Engineering - 0.8.25.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 0.8.25.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 24 2018 Jens Petersen - 0.8.25.1-1 +- update to 0.8.25.1 + +* Wed Aug 02 2017 Fedora Release Engineering - 0.8.21.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.8.21.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Feb 22 2017 Jens Petersen - 0.8.21.2-1 +- update to 0.8.21.2 + +* Fri Feb 10 2017 Fedora Release Engineering - 0.8.18.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Jan 6 2017 Jens Petersen - 0.8.18.7-3 +- unsubpackage enclosed-exceptions + +* Tue Sep 27 2016 Jens Petersen - 0.8.18.7-2 +- bump + +* Tue Sep 27 2016 Jens Petersen - 0.8.18.7-1 +- update to 0.8.18.7 + +* Wed Aug 31 2016 Jens Petersen - 0.8.18.1-1 +- update to 0.8.18.1 +- subpackage enclosed-exceptions dep + +* Wed Feb 03 2016 Fedora Release Engineering - 0.8.10-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Aug 31 2015 Peter Robinson 0.8.10-3 +- Rebuild (aarch64 vector hashes) + +* Wed Jun 17 2015 Fedora Release Engineering - 0.8.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Mar 4 2015 Jens Petersen - 0.8.10-1 +- update to 0.8.10 + +* Wed Jan 28 2015 Jens Petersen - 0.8.8.2-5 +- cblrpm refresh + +* Sat Aug 16 2014 Fedora Release Engineering - 0.8.8.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.8.8.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon May 26 2014 Adam Williamson - 0.8.8.2-2 +- rebuild for new ghc-scientific + +* Fri May 02 2014 Jens Petersen - 0.8.8.2-1 +- update to 0.8.8.2 +- no longer exclude arm + +* Wed Jan 22 2014 Jens Petersen - 0.8.5.3-1 +- update to 0.8.5.3 + +* Thu Dec 5 2013 Ricky Elrod - 0.8.5.2-1 +- Latest upstream version. + +* Tue Nov 19 2013 Jens Petersen - 0.8.5-3 +- run chrpath on yaml2json (#1008787) + +* Wed Oct 16 2013 Jens Petersen - 0.8.5-2 +- add static provides and pkgconfig requires to devel + +* Tue Sep 17 2013 Jens Petersen - 0.8.5-1 +- build with system libyaml +- package yaml2json in devel subpackage +- exclude armv7hl because of conduit + +* Tue Sep 17 2013 Fedora Haskell SIG - 0.8.5-0 +- spec file generated by cabal-rpm-0.8.3