From e911af971d63b2fa51a4133c425bb20cefa8e7cd Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 22:50:44 +0100 Subject: [PATCH] automatic version update by autodist [release 0.20.13-1mamba;Sat Dec 02 2023] --- ghc-hexpat-0.20.13-ghc-9.4.8.patch | 11 +++++ ghc-hexpat.spec | 78 ++++++++++++++++++------------ 2 files changed, 59 insertions(+), 30 deletions(-) create mode 100644 ghc-hexpat-0.20.13-ghc-9.4.8.patch diff --git a/ghc-hexpat-0.20.13-ghc-9.4.8.patch b/ghc-hexpat-0.20.13-ghc-9.4.8.patch new file mode 100644 index 0000000..fc36f58 --- /dev/null +++ b/ghc-hexpat-0.20.13-ghc-9.4.8.patch @@ -0,0 +1,11 @@ +--- hexpat-0.20.13/hexpat.cabal.orig 2023-12-03 00:04:06.275305536 +0100 ++++ hexpat-0.20.13/hexpat.cabal 2023-12-03 00:04:40.495513084 +0100 +@@ -142,7 +142,7 @@ + base >= 3 && < 5, + bytestring, + transformers, +- text >= 0.5.0.0 && < 1.3.0.0, ++ text >= 0.5.0.0 && < 2.1.0.0, + utf8-string >= 0.3 && < 1.1, + deepseq >= 1.1.0.0 && < 1.5.0.0, + containers, diff --git a/ghc-hexpat.spec b/ghc-hexpat.spec index 11592a7..9ab4442 100644 --- a/ghc-hexpat.spec +++ b/ghc-hexpat.spec @@ -1,7 +1,7 @@ %define ghc_ver %(ghc --version | sed "s|.*version ||") -%define pkgname %(echo %name | sed "s|^ghc-||") +%define pkg_name %(echo %name | sed "s|^ghc-||") Name: ghc-hexpat -Version: 0.20.3 +Version: 0.20.13 Release: 1mamba Summary: A general purpose Haskell XML library using Expat to do its parsing Group: System/Libraries @@ -10,54 +10,72 @@ Distribution: openmamba Packager: Silvan Calarco URL: http://hackage.haskell.org/package/%{pkgname} Source: http://hackage.haskell.org/packages/archive/hexpat/%{version}/hexpat-%{version}.tar.gz +Patch0: ghc-hexpat-0.20.13-ghc-9.4.8.patch License: BSD ## AUTOBUILDREQ-BEGIN +BuildRequires: ghc-List-devel +BuildRequires: ghc-libs +BuildRequires: ghc-utf8-string-devel +BuildRequires: glibc-devel +BuildRequires: libexpat-devel +BuildRequires: libgmp-devel ## AUTOBUILDREQ-END -BuildRequires: ghc -BuildRequires: ghc-List -BuildRequires: ghc-extensible-exceptions -BuildRequires: ghc-utf8-string -Requires: ghc-extensible-exceptions -Requires: ghc-List -Requires: ghc-utf8-string +BuildRequires: ghc >= 9.4.8 Requires: ghc = %{ghc_ver} -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description This package provides a general purpose Haskell XML library using Expat to do its parsing (http://expat.sourceforge.net/ - a fast stream-oriented XML parser written in C). It is extensible to any string type, with String, ByteString and Text provided out of the box. +%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 = %{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 +Requires: ghc-filesystem + +%description doc +This package provides the Haskell %{pkg_name} library documentation. +%endif + %prep %setup -q -n hexpat-%{version} +%patch 0 -p1 %build -runghc Setup.lhs configure \ ---prefix=%{_prefix} --libdir=%{_libdir} - -runghc Setup.lhs build +%ghc_lib_build %install -[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -runghc Setup.lhs copy --destdir=%{buildroot} -runghc Setup.lhs register \ ---gen-pkg-config="%{buildroot}%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf" +%ghc_lib_install + +rm -f %{buildroot}%{_ghclicensedir}/%{name}/LICENSE %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%post -ghc-pkg register %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || true -: - -%preun -ghc-pkg unregister %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || true -: - -%files +%files -f %{name}.files %defattr(-,root,root) -%dir %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version} -%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/* -%{_datadir}/doc/%{pkgname}-%{version}/LICENSE +%license LICENSE + +%files devel -f %{name}-devel.files + +%if %{with haddock} +%files doc -f %{name}-doc.files +%license LICENSE +%endif %changelog +* Sat Dec 02 2023 Automatic Build System 0.20.13-1mamba +- automatic version update by autodist + * Sun Sep 08 2013 Silvan Calarco 0.20.3-1mamba - package created by silvan using the webbuild interface