[packages/ghc-haskell-lexer] - pl, base dependency
qboosh
qboosh at pld-linux.org
Sun Mar 22 21:01:34 CET 2026
commit 066ef760652ce0282c72300efc12c963e3371ea0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Mar 22 21:01:46 2026 +0100
- pl, base dependency
ghc-haskell-lexer.spec | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/ghc-haskell-lexer.spec b/ghc-haskell-lexer.spec
index 60580b9..d0ec2d3 100644
--- a/ghc-haskell-lexer.spec
+++ b/ghc-haskell-lexer.spec
@@ -4,6 +4,7 @@
#
%define pkgname haskell-lexer
Summary: A fully compliant Haskell 98 lexer
+Summary(pl.UTF-8): W pełni zgodny lekser Haskella 98
Name: ghc-%{pkgname}
Version: 1.1
Release: 2
@@ -14,8 +15,10 @@ Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{v
# Source0-md5: 460334be2c67197f5daac0f9b40daf78
URL: http://hackage.haskell.org/package/haskell-lexer
BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc-base < 5
%if %{with prof}
-BuildRequires: ghc-prof
+BuildRequires: ghc-prof >= 6.12.3
+BuildRequires: ghc-base-prof < 5
%endif
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
@@ -31,6 +34,9 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
A fully compliant Haskell 98 lexer.
+%description -l pl.UTF-8
+W pełni zgodny lekser Haskella 98.
+
%package prof
Summary: Profiling %{pkgname} library for GHC
Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC
@@ -38,8 +44,8 @@ Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%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
@@ -57,6 +63,7 @@ runhaskell Setup.hs configure -v2 \
--docdir=%{_docdir}/%{name}-%{version}
runhaskell Setup.hs build
+
runhaskell Setup.hs haddock --executables
%install
@@ -67,8 +74,7 @@ runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
# work around automatic haddock docs installation
%{__rm} -rf %{name}-%{version}-doc
-cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
-%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
runhaskell Setup.hs register \
--gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-haskell-lexer.git/commitdiff/066ef760652ce0282c72300efc12c963e3371ea0
More information about the pld-cvs-commit
mailing list