[packages/ghc-ansi-terminal] - pl, updated dependencies and doc
qboosh
qboosh at pld-linux.org
Tue Mar 24 18:54:20 CET 2026
commit 53e79b5c5ad341c2253c392b6e39a7f8d201e10e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Mar 24 18:54:32 2026 +0100
- pl, updated dependencies and doc
ghc-ansi-terminal.spec | 34 +++++++++++++++++++++-------------
1 file changed, 21 insertions(+), 13 deletions(-)
---
diff --git a/ghc-ansi-terminal.spec b/ghc-ansi-terminal.spec
index 5323a8a..a431153 100644
--- a/ghc-ansi-terminal.spec
+++ b/ghc-ansi-terminal.spec
@@ -4,6 +4,7 @@
#
%define pkgname ansi-terminal
Summary: Simple ANSI terminal support
+Summary(pl.UTF-8): Prosta obsługa terminala ANSI
Name: ghc-%{pkgname}
Version: 0.10.3
Release: 2
@@ -13,18 +14,20 @@ Group: Development/Languages
Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
# Source0-md5: 023154bdde151da707b345d38553b451
URL: http://hackage.haskell.org/package/ansi-terminal
-BuildRequires: ghc >= 6.12.3
-BuildRequires: ghc-base >= 4
+BuildRequires: ghc >= 7.0.1
+BuildRequires: ghc-base >= 4.3
+BuildRequires: ghc-base < 5
BuildRequires: ghc-colour >= 2.1.0
%if %{with prof}
-BuildRequires: ghc-prof >= 6.12.3
-BuildRequires: ghc-base-prof >= 4
+BuildRequires: ghc-prof >= 7.0.1
+BuildRequires: ghc-base-prof >= 4.3
+BuildRequires: ghc-base-prof < 5
BuildRequires: ghc-colour-prof >= 2.1.0
%endif
BuildRequires: rpmbuild(macros) >= 1.608
Requires(post,postun): /usr/bin/ghc-pkg
%requires_eq ghc
-Requires: ghc-base >= 4
+Requires: ghc-base >= 4.3
Requires: ghc-colour >= 2.1.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,20 +40,25 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
ANSI terminal support for Haskell: allows cursor movement, screen
clearing, color output showing or hiding the cursor, and changing the
-title.
+title.
+
+%description -l pl.UTF-8
+Obsługa terminala ANSI dla Haskella: umożliwia przemieszczanie
+kursora, czyszczenie ekranu, kolorowe wyjście z wyświetlaniem lub
+ukryciem kursora oraz zmianę tytułu.
%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-prof >= 6.12.3
-Requires: ghc-base-prof >= 4
+Requires: ghc-prof >= 7.0.1
+Requires: ghc-base-prof >= 4.3
Requires: ghc-colour-prof >= 2.1.0
%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
@@ -68,6 +76,7 @@ runhaskell Setup.hs configure -v2 \
--docdir=%{_docdir}/%{name}-%{version}
runhaskell Setup.hs build
+
runhaskell Setup.hs haddock --executables
%install
@@ -78,8 +87,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
@@ -95,7 +103,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc %{name}-%{version}-doc/*
+%doc CHANGELOG.md README.md %{name}-%{version}-doc/*
%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSansi-terminal-%{version}-*.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-ansi-terminal.git/commitdiff/53e79b5c5ad341c2253c392b6e39a7f8d201e10e
More information about the pld-cvs-commit
mailing list