automatic version update by autodist [release 0.20.13-1mamba;Sat Dec 02 2023]

This commit is contained in:
Automatic Build System 2024-01-05 22:50:44 +01:00
parent 9a90a8de97
commit e911af971d
2 changed files with 59 additions and 30 deletions

View File

@ -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,

View File

@ -1,7 +1,7 @@
%define ghc_ver %(ghc --version | sed "s|.*version ||") %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 Name: ghc-hexpat
Version: 0.20.3 Version: 0.20.13
Release: 1mamba Release: 1mamba
Summary: A general purpose Haskell XML library using Expat to do its parsing Summary: A general purpose Haskell XML library using Expat to do its parsing
Group: System/Libraries Group: System/Libraries
@ -10,54 +10,72 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://hackage.haskell.org/package/%{pkgname} URL: http://hackage.haskell.org/package/%{pkgname}
Source: http://hackage.haskell.org/packages/archive/hexpat/%{version}/hexpat-%{version}.tar.gz 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 License: BSD
## AUTOBUILDREQ-BEGIN ## 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 ## AUTOBUILDREQ-END
BuildRequires: ghc BuildRequires: ghc >= 9.4.8
BuildRequires: ghc-List
BuildRequires: ghc-extensible-exceptions
BuildRequires: ghc-utf8-string
Requires: ghc-extensible-exceptions
Requires: ghc-List
Requires: ghc-utf8-string
Requires: ghc = %{ghc_ver} Requires: ghc = %{ghc_ver}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %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. 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 %prep
%setup -q -n hexpat-%{version} %setup -q -n hexpat-%{version}
%patch 0 -p1
%build %build
runghc Setup.lhs configure \ %ghc_lib_build
--prefix=%{_prefix} --libdir=%{_libdir}
runghc Setup.lhs build
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %ghc_lib_install
runghc Setup.lhs copy --destdir=%{buildroot}
runghc Setup.lhs register \ rm -f %{buildroot}%{_ghclicensedir}/%{name}/LICENSE
--gen-pkg-config="%{buildroot}%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf"
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post %files -f %{name}.files
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
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version} %license LICENSE
%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/*
%{_datadir}/doc/%{pkgname}-%{version}/LICENSE %files devel -f %{name}-devel.files
%if %{with haddock}
%files doc -f %{name}-doc.files
%license LICENSE
%endif
%changelog %changelog
* Sat Dec 02 2023 Automatic Build System <autodist@mambasoft.it> 0.20.13-1mamba
- automatic version update by autodist
* Sun Sep 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20.3-1mamba * Sun Sep 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20.3-1mamba
- package created by silvan using the webbuild interface - package created by silvan using the webbuild interface