[packages/ghc-HsYAML] - pl, versioned dependencies

qboosh qboosh at pld-linux.org
Sat Jul 19 14:10:35 CEST 2025


commit 56a76af8bdf541ada7200849996e2b002c2d4771
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jul 19 14:12:17 2025 +0200

    - pl, versioned dependencies

 ghc-HsYAML.spec | 41 ++++++++++++++++++++++++++++++++++++++---
 1 file changed, 38 insertions(+), 3 deletions(-)
---
diff --git a/ghc-HsYAML.spec b/ghc-HsYAML.spec
index 28fcec7..1025a51 100644
--- a/ghc-HsYAML.spec
+++ b/ghc-HsYAML.spec
@@ -4,6 +4,7 @@
 #
 %define		pkgname	HsYAML
 Summary:	Pure Haskell YAML 1.2 processor
+Summary(pl.UTF-8):	Procesor YAML 1.2 w czystym Haskellu
 Name:		ghc-%{pkgname}
 Version:	0.2.1.0
 Release:	2
@@ -14,13 +15,40 @@ Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{v
 # Source0-md5:	1ce1fc0063dc21f6019dac3c6f0f0b5f
 Patch0:		ghc-8.10.patch
 URL:		http://hackage.haskell.org/package/HsYAML
-BuildRequires:	ghc >= 6.12.3
+BuildRequires:	ghc >= 7.4.1
+BuildRequires:	ghc-base >= 4.5
+BuildRequires:	ghc-bytestring >= 0.9
+BuildRequires:	ghc-bytestring < 0.11
+BuildRequires:	ghc-containers >= 0.4.2
+BuildRequires:	ghc-containers < 0.7
+BuildRequires:	ghc-deepseq >= 1.3.0
+BuildRequires:	ghc-deepseq < 1.5
+BuildRequires:	ghc-text >= 1.2.3
+BuildRequires:	ghc-text < 1.3
+BuildRequires:	ghc-mtl >= 2.2.1
+BuildRequires:	ghc-mtl < 2.3
+BuildRequires:	ghc-parsec >= 3.1.13.0
+BuildRequires:	ghc-parsec < 3.2
 %if %{with prof}
-BuildRequires:	ghc-prof
+BuildRequires:	ghc-prof >= 7.4.1
+BuildRequires:	ghc-base-prof >= 4.5
+BuildRequires:	ghc-bytestring-prof >= 0.9
+BuildRequires:	ghc-containers-prof >= 0.4.2
+BuildRequires:	ghc-deepseq-prof >= 1.3.0
+BuildRequires:	ghc-text-prof >= 1.2.3
+BuildRequires:	ghc-mtl-prof >= 2.2.1
+BuildRequires:	ghc-parsec-prof >= 3.1.13.0
 %endif
 BuildRequires:	rpmbuild(macros) >= 1.608
 %requires_eq	ghc
 Requires(post,postun):	/usr/bin/ghc-pkg
+Requires:	ghc-base >= 4.5
+Requires:	ghc-bytestring >= 0.9
+Requires:	ghc-containers >= 0.4.2
+Requires:	ghc-deepseq >= 1.3.0
+Requires:	ghc-text >= 1.2.3
+Requires:	ghc-mtl >= 2.2.1
+Requires:	ghc-parsec >= 3.1.13.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # debuginfo is not useful for ghc
@@ -38,6 +66,13 @@ 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.5
+Requires:	ghc-bytestring-prof >= 0.9
+Requires:	ghc-containers-prof >= 0.4.2
+Requires:	ghc-deepseq-prof >= 1.3.0
+Requires:	ghc-text-prof >= 1.2.3
+Requires:	ghc-mtl-prof >= 2.2.1
+Requires:	ghc-parsec-prof >= 3.1.13.0
 
 %description prof
 Profiling %{pkgname} library for GHC.  Should be installed when
@@ -90,7 +125,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-HsYAML.git/commitdiff/56a76af8bdf541ada7200849996e2b002c2d4771



More information about the pld-cvs-commit mailing list