[packages/ghc-mime-types] - pl, dependencies
qboosh
qboosh at pld-linux.org
Tue Jul 22 21:35:45 CEST 2025
commit fdb3c1578d6b6033fb562b2077bbaf28c4c3fd8e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jul 22 21:37:26 2025 +0200
- pl, dependencies
ghc-mime-types.spec | 30 ++++++++++++++++++++++++++----
1 file changed, 26 insertions(+), 4 deletions(-)
---
diff --git a/ghc-mime-types.spec b/ghc-mime-types.spec
index dee58bf..7a728da 100644
--- a/ghc-mime-types.spec
+++ b/ghc-mime-types.spec
@@ -4,6 +4,7 @@
#
%define pkgname mime-types
Summary: Basic mime-type handling types and functions
+Summary(pl.UTF-8): Podstawowe typy i funkcje do obsługi mime-type
Name: ghc-%{pkgname}
Version: 0.1.0.9
Release: 2
@@ -14,12 +15,25 @@ Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{v
# Source0-md5: e936b48f8549c390e9fac883c99ff3fd
URL: http://hackage.haskell.org/package/mime-types
BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc-base >= 4
+BuildRequires: ghc-base < 5
+BuildRequires: ghc-bytestring
+BuildRequires: ghc-containers
+BuildRequires: ghc-text
%if %{with prof}
-BuildRequires: ghc-prof
+BuildRequires: ghc-prof >= 6.12.3
+BuildRequires: ghc-base-prof >= 4
+BuildRequires: ghc-bytestring-prof
+BuildRequires: ghc-containers-prof
+BuildRequires: ghc-text-prof
%endif
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
Requires(post,postun): /usr/bin/ghc-pkg
+Requires: ghc-base >= 4
+Requires: ghc-bytestring
+Requires: ghc-containers
+Requires: ghc-text
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# debuginfo is not useful for ghc
@@ -31,15 +45,22 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Basic mime-type handling types and functions.
+%description -l pl.UTF-8
+Podstawowe typy i funkcje do obsługi mime-type.
+
%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
+Requires: ghc-bytestring-prof
+Requires: ghc-containers-prof
+Requires: ghc-text-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
@@ -57,6 +78,7 @@ runhaskell Setup.lhs configure -v2 \
--docdir=%{_docdir}/%{name}-%{version}
runhaskell Setup.lhs build
+
runhaskell Setup.lhs haddock --executables
%install
@@ -87,7 +109,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-mime-types.git/commitdiff/fdb3c1578d6b6033fb562b2077bbaf28c4c3fd8e
More information about the pld-cvs-commit
mailing list