[packages/ghc-hslua-module-system] - pl, dependencies

qboosh qboosh at pld-linux.org
Mon Jul 21 20:29:58 CEST 2025


commit 7c0693379ef7d9e1a673bec20c1f1b59f0b0494a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jul 21 20:31:40 2025 +0200

    - pl, dependencies

 ghc-hslua-module-system.spec | 57 ++++++++++++++++++++++++++++++++++----------
 1 file changed, 44 insertions(+), 13 deletions(-)
---
diff --git a/ghc-hslua-module-system.spec b/ghc-hslua-module-system.spec
index 215bc92..8e6cac4 100644
--- a/ghc-hslua-module-system.spec
+++ b/ghc-hslua-module-system.spec
@@ -4,6 +4,7 @@
 #
 %define		pkgname	hslua-module-system
 Summary:	Lua module wrapper around Haskell's System module
+Summary(pl.UTF-8):	Moduł Lua obudowujący moduł Haskella System
 Name:		ghc-%{pkgname}
 Version:	0.2.1
 Release:	3
@@ -13,19 +14,36 @@ Group:		Development/Languages
 Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
 # Source0-md5:	60a150932bcc9ef65292914ccbbd8fbe
 URL:		http://hackage.haskell.org/package/hslua-module-system
-BuildRequires:	ghc >= 6.12.3
-BuildRequires:	ghc-hslua
-BuildRequires:	ghc-temporary
+BuildRequires:	ghc >= 8.0.1
+BuildRequires:	ghc-base >= 4.9
+BuildRequires:	ghc-base < 5
+BuildRequires:	ghc-containers >= 0.5
+BuildRequires:	ghc-containers < 0.7
+BuildRequires:	ghc-directory >= 1.3
+BuildRequires:	ghc-directory < 1.4
+BuildRequires:	ghc-exceptions >= 0.8
+BuildRequires:	ghc-exceptions < 0.11
+BuildRequires:	ghc-hslua >= 1.0.3
+BuildRequires:	ghc-hslua < 1.2
+BuildRequires:	ghc-temporary >= 1.2
+BuildRequires:	ghc-temporary < 1.4
 %if %{with prof}
-BuildRequires:	ghc-prof
-BuildRequires:	ghc-hslua-prof
-BuildRequires:	ghc-temporary-prof
+BuildRequires:	ghc-prof >= 8.0.1
+BuildRequires:	ghc-base-prof >= 4.9
+BuildRequires:	ghc-containers-prof >= 0.5
+BuildRequires:	ghc-directory-prof >= 1.3
+BuildRequires:	ghc-exceptions >= 0.8
+BuildRequires:	ghc-hslua-prof >= 1.0.3
+BuildRequires:	ghc-temporary-prof >= 1.2
 %endif
 BuildRequires:	rpmbuild(macros) >= 1.608
 %requires_eq	ghc
 Requires(post,postun):	/usr/bin/ghc-pkg
-Requires:	ghc-hslua
-Requires:	ghc-temporary
+Requires:	ghc-containers >= 0.5
+Requires:	ghc-directory >= 1.3
+Requires:	ghc-exceptions >= 0.8
+Requires:	ghc-hslua >= 1.0.3
+Requires:	ghc-temporary >= 1.2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # debuginfo is not useful for ghc
@@ -42,17 +60,29 @@ Intended usage for this package is to preload it by adding the loader
 function to package.preload. Note that the Lua package library must
 have already been loaded before the loader can be added.
 
+%description -l pl.UTF-8
+Ta biblioteka daje skryptom Lua dostęp do informacji o systemie i jego
+funkcjonalność poprzez moduł Haskella System.
+
+Zamierzony sposób użycia tego pakietu to wcześne załadowanie poprzez
+dodanie funkcji loadera do package.preload. Uwaga: biblioteka pakietu
+Lua musi być załadowana przed dodaniem loadera.
+
 %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-hslua-prof
-Requires:	ghc-temporary-prof
+Requires:	ghc-base-prof >= 4.9
+Requires:	ghc-containers-prof >= 0.5
+Requires:	ghc-directory-prof >= 1.3
+Requires:	ghc-exceptions >= 0.8
+Requires:	ghc-hslua-prof >= 1.0.3
+Requires:	ghc-temporary-prof >= 1.2
 
 %description prof
-Profiling %{pkgname} library for GHC.  Should be installed when
-GHC's profiling subsystem is needed.
+Profiling %{pkgname} library for GHC. Should be installed when GHC's
+profiling subsystem is needed.
 
 %description prof -l pl.UTF-8
 Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
@@ -70,6 +100,7 @@ runhaskell Setup.hs configure -v2 \
 	--docdir=%{_docdir}/%{name}-%{version}
 
 runhaskell Setup.hs build
+
 runhaskell Setup.hs haddock --executables
 
 %install
@@ -100,7 +131,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-hslua-module-system.git/commitdiff/7c0693379ef7d9e1a673bec20c1f1b59f0b0494a



More information about the pld-cvs-commit mailing list