[packages/ghc-cereal] - proper descriptions, dependencies
qboosh
qboosh at pld-linux.org
Wed Jul 23 18:39:06 CEST 2025
commit 442e3d90eeab0c9a2a39ff070351aef5f7fb6b7c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Jul 23 18:40:47 2025 +0200
- proper descriptions, dependencies
ghc-cereal.spec | 47 ++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 40 insertions(+), 7 deletions(-)
---
diff --git a/ghc-cereal.spec b/ghc-cereal.spec
index 8a345d2..071736d 100644
--- a/ghc-cereal.spec
+++ b/ghc-cereal.spec
@@ -3,7 +3,8 @@
%bcond_without prof # profiling library
#
%define pkgname cereal
-Summary: A Haskell binding to the cereal graphics library
+Summary: Binary serialization library
+Summary(pl.UTF-8): Biblioteka serializacji binarnej
Name: ghc-%{pkgname}
Version: 0.5.8.1
Release: 3
@@ -12,29 +13,59 @@ Group: Development/Languages
Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
# Source0-md5: 4f5e41ee3371272daa12a2d073d2fd4f
URL: http://hackage.haskell.org/package/cereal/
-BuildRequires: ghc >= 6.12.3
+# for ghc < 8.0 also ghc-fail 4.9.x
+BuildRequires: ghc >= 8.0
+BuildRequires: ghc-array
+BuildRequires: ghc-base >= 4.4
+BuildRequires: ghc-base < 5
+BuildRequires: ghc-bytestring >= 0.10.4
+BuildRequires: ghc-bytestring < 1
+BuildRequires: ghc-containers
+BuildRequires: ghc-ghc-prim >= 0.2
%if %{with prof}
-BuildRequires: ghc-prof
+BuildRequires: ghc-prof >= 8.0
+BuildRequires: ghc-array-prof
+BuildRequires: ghc-base-prof >= 4.4
+BuildRequires: ghc-bytestring-prof >= 0.10.4
+BuildRequires: ghc-containers-prof
+BuildRequires: ghc-ghc-prim-prof >= 0.2
%endif
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
+Requires: ghc-array
+Requires: ghc-base >= 4.4
+Requires: ghc-bytestring >= 0.10.4
+Requires: ghc-containers
+Requires: ghc-ghc-prim >= 0.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# debuginfo is not useful for ghc
%define _enable_debug_packages 0
%description
-A Haskell binding to the cereal graphics library.
+A binary serialization library, similar to binary, that introduces an
+isolate primitive for parser isolation, and labeled blocks for better
+error messages.
+
+%description -l pl.UTF-8
+Biblioteka serializacji binarnej, podobna do binary, wprowadzająca
+primityw isolate do izolacji parserów oraz etykietowane bloki w celu
+lepszych komunikatów błędów.
%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-array-prof
+Requires: ghc-base-prof >= 4.4
+Requires: ghc-bytestring-prof >= 0.10.4
+Requires: ghc-containers-prof
+Requires: ghc-ghc-prim-prof >= 0.2
%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
@@ -63,6 +94,7 @@ runhaskell Setup.lhs configure -v2 \
--docdir=%{_docdir}/%{name}-%{version}
runhaskell Setup.lhs build
+
runhaskell Setup.lhs haddock --executables
%install
@@ -90,9 +122,10 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE
%{_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-cereal.git/commitdiff/442e3d90eeab0c9a2a39ff070351aef5f7fb6b7c
More information about the pld-cvs-commit
mailing list