[packages/ghc-file-embed] - pl, dependencies
qboosh
qboosh at pld-linux.org
Mon Jul 21 19:03:35 CEST 2025
commit 53d8de925b24788c5301d479bfd8c3ffe9a37379
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 21 19:05:09 2025 +0200
- pl, dependencies
ghc-file-embed.spec | 38 +++++++++++++++++++++++++++++++++-----
1 file changed, 33 insertions(+), 5 deletions(-)
---
diff --git a/ghc-file-embed.spec b/ghc-file-embed.spec
index 1bc5c82..a59d945 100644
--- a/ghc-file-embed.spec
+++ b/ghc-file-embed.spec
@@ -4,6 +4,7 @@
#
%define pkgname file-embed
Summary: Use Template Haskell to embed file contents directly
+Summary(pl.UTF-8): Osadzanie bezpośrednio plików przy użyciu Template Haskell
Name: ghc-%{pkgname}
Version: 0.0.12.0
Release: 2
@@ -13,13 +14,29 @@ Group: Development/Languages
Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
# Source0-md5: 976c497124265a1b646a949c80269994
URL: http://hackage.haskell.org/package/file-embed
-BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc >= 8.0.2
+BuildRequires: ghc-base >= 4.9.1
+BuildRequires: ghc-base < 5
+BuildRequires: ghc-bytestring >= 0.9.1.4
+BuildRequires: ghc-directory >= 1.0.0.3
+BuildRequires: ghc-filepath
+BuildRequires: ghc-template-haskell
%if %{with prof}
-BuildRequires: ghc-prof
+BuildRequires: ghc-prof >= 8.0.2
+BuildRequires: ghc-base-prof >= 4.9.1
+BuildRequires: ghc-bytestring-prof >= 0.9.1.4
+BuildRequires: ghc-directory-prof >= 1.0.0.3
+BuildRequires: ghc-filepath-prof
+BuildRequires: ghc-template-haskell-prof
%endif
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
Requires(post,postun): /usr/bin/ghc-pkg
+Requires: ghc-base >= 4.9.1
+Requires: ghc-bytestring >= 0.9.1.4
+Requires: ghc-directory >= 1.0.0.3
+Requires: ghc-filepath
+Requires: ghc-template-haskell
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# debuginfo is not useful for ghc
@@ -33,15 +50,25 @@ Use Template Haskell to read a file or all the files in a directory,
and turn them into (path, bytestring) pairs embedded in your Haskell
code.
+%description -l pl.UTF-8
+Ta biblioteka pozwala użyć Template Haskell do odczytu pliku lub
+wszystkich plików z katalogu i zamiany ich na pary (ścieżka,
+bytestring) osadzone w kodzie haskellowym.
+
%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.9.1
+Requires: ghc-bytestring-prof >= 0.9.1.4
+Requires: ghc-directory-prof >= 1.0.0.3
+Requires: ghc-filepath-prof
+Requires: ghc-template-haskell-prof
%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
@@ -59,6 +86,7 @@ runhaskell Setup.lhs configure -v2 \
--docdir=%{_docdir}/%{name}-%{version}
runhaskell Setup.lhs build
+
runhaskell Setup.lhs haddock --executables
%install
@@ -89,7 +117,7 @@ rm -rf $RPM_BUILD_ROOT
%doc ChangeLog.md README.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-file-embed.git/commitdiff/53d8de925b24788c5301d479bfd8c3ffe9a37379
More information about the pld-cvs-commit
mailing list