--- /dev/null
+--- hslogger-1.3.1.0/hslogger.cabal~ 2001-09-09 03:46:40.000000000 +0200
++++ hslogger-1.3.1.0/hslogger.cabal 2020-05-24 16:52:49.120471860 +0200
+@@ -64,12 +64,11 @@
+ other-extensions: CPP ExistentialQuantification DeriveDataTypeable
+
+ build-depends:
+- base >= 4.3 && < 4.14
++ base >= 4.3
+ , bytestring >= 0.9 && < 0.11
+ , containers >= 0.4 && < 0.7
+ , deepseq >= 1.1 && < 1.5
+ , time >= 1.2 && < 1.10
+- , old-locale >= 1.0 && < 1.1
+
+ if flag(network--GT-3_0_0)
+ build-depends: network-bsd >= 2.8.1 && <2.9,
+#
+# Conditional build:
+%bcond_without prof # profiling library
+#
%define pkgname hslogger
Summary: Versatile logging framework for Haskell
Name: ghc-%{pkgname}
-Version: 1.2.3
+Version: 1.3.1.0
Release: 1
License: LGPL
Group: Development/Languages
Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5: 4047e50789860c8ac3e8998f7de68ca5
+# Source0-md5: 4988eed9369f71dda1fba137f5476d9d
+Patch0: ghc-8.10.patch
URL: http://hackage.haskell.org/package/hslogger/
BuildRequires: ghc >= 6.12.3
BuildRequires: ghc-mtl
-BuildRequires: ghc-network
+BuildRequires: ghc-network >= 2.6
+BuildRequires: ghc-network-bsd >= 2.8.1
+%if %{with prof}
+BuildRequires: ghc-prof
+BuildRequires: ghc-mtl-prof
+BuildRequires: ghc-network-prof >= 2.6
+BuildRequires: ghc-network-bsd-prof >= 2.8.1
+%endif
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
Requires: ghc-mtl
-Requires: ghc-network
+Requires: ghc-network >= 2.6
+Requires: ghc-network-bsd >= 2.8.1
Obsoletes: ghc-hslogger-doc
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: ghc-mtl-prof
+Requires: ghc-network-prof >= 2.6
+Requires: ghc-network-bsd-prof >= 2.8.1
%description prof
Profiling %{pkgname} library for GHC. Should be installed when
%prep
%setup -q -n %{pkgname}-%{version}
+%patch0 -p1
%build
-runhaskell Setup.hs configure -v2 --enable-library-profiling \
+runhaskell Setup.hs configure -v2 \
+ %{?with_prof:--enable-library-profiling} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
%doc %{name}-%{version}-doc/*
%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.so
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
%exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.dyn_hi
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/*.dyn_hi
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/Log
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/Log/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/Log/*.dyn_hi
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/Log/Handler
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/Log/Handler/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/Log/Handler/*.dyn_hi
+%if %{with prof}
%files prof
%defattr(644,root,root,755)
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/Log/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/Log/Handler/*.p_hi
+%endif