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 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 <silvan.calarco@mambasoft.it>
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 <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
- package created by silvan using the webbuild interface