[packages/ghc-colour] - pl, cleanup, drop BRs for unused tests

qboosh qboosh at pld-linux.org
Mon Mar 23 21:38:00 CET 2026


commit bd0452b34208458b7a6d1dee77cbbb43b130559a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Mar 23 21:38:12 2026 +0100

    - pl, cleanup, drop BRs for unused tests

 ghc-colour.spec | 30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/ghc-colour.spec b/ghc-colour.spec
index 59834f8..b81fe62 100644
--- a/ghc-colour.spec
+++ b/ghc-colour.spec
@@ -4,6 +4,7 @@
 #
 %define		pkgname	colour
 Summary:	A model for human colour/color perception
+Summary(pl.UTF-8):	Model do ludzkiej percepcji kolorów
 Name:		ghc-%{pkgname}
 Version:	2.3.5
 Release:	2
@@ -13,21 +14,17 @@ Group:		Development/Languages
 Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
 # Source0-md5:	fe7bbf4c511d5ad8b626caf53c544682
 URL:		http://hackage.haskell.org/package/colour
-BuildRequires:	ghc >= 6.12.3
+BuildRequires:	ghc >= 8.0.1
 BuildRequires:	ghc-base >= 4.9
-BuildRequires:	ghc-QuickCheck >= 2.5
-BuildRequires:	ghc-random >= 1.0
+BuildRequires:	ghc-base < 5
 %if %{with prof}
-BuildRequires:	ghc-prof
+BuildRequires:	ghc-prof >= 8.0.1
 BuildRequires:	ghc-base-prof >= 4.9
-BuildRequires:	ghc-QuickCheck-prof >= 2.5
-BuildRequires:	ghc-random-prof >= 1.0
+BuildRequires:	ghc-base-prof < 5
 %endif
 BuildRequires:	rpmbuild(macros) >= 1.608
 %requires_eq	ghc
 Requires:	ghc-base >= 4.9
-Requires:	ghc-QuickCheck >= 2.5
-Requires:	ghc-random >= 1.0
 Requires(post,postun):	/usr/bin/ghc-pkg
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -42,6 +39,11 @@ This package provides a data type for colours and transparency.
 Colours can be blended and composed. Various colour spaces are
 supported. A module of colour names (Data.Colour.Names) is provided.
 
+%description -l pl.UTF-8
+Ten pakiet dostarcza typ danych dla kolorów i przezroczystości.
+Kolory mogą być mieszane i składane. Obsługiwane są różne przestrzenie
+kolorów. Dołączony jest moduł nazw kolorów (Data.Colour.Names).
+
 %package prof
 Summary:	Profiling %{pkgname} library for GHC
 Summary(pl.UTF-8):	Biblioteka profilująca %{pkgname} dla GHC
@@ -49,12 +51,10 @@ Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 Requires:	ghc-prof
 Requires:	ghc-base-prof >= 4.9
-Requires:	ghc-QuickCheck-prof >= 2.5
-Requires:	ghc-random-prof >= 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
@@ -72,6 +72,7 @@ runhaskell Setup.lhs configure -v2 \
 	--docdir=%{_docdir}/%{name}-%{version}
 
 runhaskell Setup.lhs build
+
 runhaskell Setup.lhs haddock --executables
 
 %install
@@ -82,8 +83,9 @@ runhaskell Setup.lhs 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
+
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{pkgname}-%{version}/{CHANGELOG,README}
 
 runhaskell Setup.lhs register \
 	--gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-colour.git/commitdiff/bd0452b34208458b7a6d1dee77cbbb43b130559a



More information about the pld-cvs-commit mailing list