[packages/ghc-time-compat] - pl, dependencies

qboosh qboosh at pld-linux.org
Sat Jul 19 21:35:26 CEST 2025


commit 8f36ecec5075315b2016fee2464697ee4f26ae28
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jul 19 21:37:06 2025 +0200

    - pl, dependencies

 ghc-time-compat.spec | 27 +++++++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/ghc-time-compat.spec b/ghc-time-compat.spec
index 786cf0b..bb78bf8 100644
--- a/ghc-time-compat.spec
+++ b/ghc-time-compat.spec
@@ -4,6 +4,7 @@
 #
 %define		pkgname	time-compat
 Summary:	Compatibility package for time
+Summary(pl.UTF-8):	Pakiet zgodności dla biblioteki time
 Name:		ghc-%{pkgname}
 Version:	1.9.3
 Release:	2
@@ -13,16 +14,30 @@ Group:		Development/Languages
 Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
 # Source0-md5:	6fbe42bfe2ce1e93aa7d98acf4aa61c2
 URL:		http://hackage.haskell.org/package/time-compat
-BuildRequires:	ghc >= 6.12.3
+# ghc < 8.0 additionally ghc-fail 4.9.x, ghc-semigroups >=0.18.5 <0.20
+BuildRequires:	ghc >= 8.0
+BuildRequires:	ghc-base >= 4.3
+BuildRequires:	ghc-base < 5.15
 BuildRequires:	ghc-base-orphans >= 0.8.1
+BuildRequires:	ghc-base-orphans < 0.9
+BuildRequires:	ghc-deepseq >= 1.3.0.0
+BuildRequires:	ghc-deepseq < 1.5
+BuildRequires:	ghc-time >= 1.5
+BuildRequires:	ghc-time < 1.10.0
 %if %{with prof}
 BuildRequires:	ghc-prof
+BuildRequires:	ghc-base-prof >= 4.3
 BuildRequires:	ghc-base-orphans-prof >= 0.8.1
+BuildRequires:	ghc-deepseq-prof >= 1.3.0.0
+BuildRequires:	ghc-time-prof >= 1.5
 %endif
 BuildRequires:	rpmbuild(macros) >= 1.608
 %requires_eq	ghc
 Requires(post,postun):	/usr/bin/ghc-pkg
+Requires:	ghc-base >= 4.3
 Requires:	ghc-base-orphans >= 0.8.1
+Requires:	ghc-deepseq >= 1.3.0.0
+Requires:	ghc-time >= 1.5
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # debuginfo is not useful for ghc
@@ -34,12 +49,19 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 This packages tries to compat as much of time features as possible.
 
+%description -l pl.UTF-8
+Ten pakiet próbuje zachować możliwie jak najwięcej zgodności dla
+funkcjonalności biblioteki time.
+
 %package prof
 Summary:	Profiling %{pkgname} library for GHC
 Summary(pl.UTF-8):	Biblioteka profilująca %{pkgname} dla GHC
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+Requires:	ghc-base-prof >= 4.3
 Requires:	ghc-base-orphans-prof >= 0.8.1
+Requires:	ghc-deepseq-prof >= 1.3.0.0
+Requires:	ghc-time-prof >= 1.5
 
 %description prof
 Profiling %{pkgname} library for GHC.  Should be installed when
@@ -67,6 +89,7 @@ runhaskell Setup.lhs configure -v2 \
 	--docdir=%{_docdir}/%{name}-%{version}
 
 runhaskell Setup.lhs build
+
 runhaskell Setup.lhs haddock --executables
 
 %install
@@ -97,7 +120,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc CHANGELOG.md %{name}-%{version}-doc/*
 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.so
+%attr(755,root,root) %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.so
 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
 %exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-time-compat.git/commitdiff/8f36ecec5075315b2016fee2464697ee4f26ae28



More information about the pld-cvs-commit mailing list