[packages/ghc-ipynb] - pl, base dependencies
qboosh
qboosh at pld-linux.org
Sun Mar 22 14:53:42 CET 2026
commit 8d9f3a57ae919402cb7cf07463cb3cec8b1c5cdf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Mar 22 14:53:53 2026 +0100
- pl, base dependencies
ghc-ipynb.spec | 30 ++++++++++++++++++++++++------
1 file changed, 24 insertions(+), 6 deletions(-)
---
diff --git a/ghc-ipynb.spec b/ghc-ipynb.spec
index f64fe53..87f14ce 100644
--- a/ghc-ipynb.spec
+++ b/ghc-ipynb.spec
@@ -4,6 +4,7 @@
#
%define pkgname ipynb
Summary: Data structure for working with Jupyter notebooks
+Summary(pl.UTF-8): Struktura danych do pracy z notesami Jupytera
Name: ghc-%{pkgname}
Version: 0.1.0.1
Release: 2
@@ -13,22 +14,33 @@ Group: Development/Languages
Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
# Source0-md5: 919889511c354b69351f13689f1ef193
URL: http://hackage.haskell.org/package/ipynb
-BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc >= 7.10.1
BuildRequires: ghc-aeson
+BuildRequires: ghc-base >= 4.8
+BuildRequires: ghc-base < 5
BuildRequires: ghc-base64-bytestring
+BuildRequires: ghc-bytestring
+BuildRequires: ghc-containers
BuildRequires: ghc-semigroups
+BuildRequires: ghc-text
BuildRequires: ghc-unordered-containers
%if %{with prof}
-BuildRequires: ghc-prof
+BuildRequires: ghc-prof >= 7.10.1
BuildRequires: ghc-aeson-prof
+BuildRequires: ghc-base-prof >= 4.8
+BuildRequires: ghc-base-prof < 5
BuildRequires: ghc-base64-bytestring-prof
+BuildRequires: ghc-bytestring-prof
+BuildRequires: ghc-containers-prof
BuildRequires: ghc-semigroups-prof
+BuildRequires: ghc-text-prof
BuildRequires: ghc-unordered-containers-prof
%endif
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
Requires(post,postun): /usr/bin/ghc-pkg
Requires: ghc-aeson
+Requires: ghc-base >= 4.8
Requires: ghc-base64-bytestring
Requires: ghc-semigroups
Requires: ghc-unordered-containers
@@ -45,19 +57,25 @@ ipynb defines a data structure for representing Jupyter notebooks,
along with ToJSON and FromJSON instances for conversion to and from
JSON .ipynb files.
+%description -l pl.UTF-8
+ipynb definuje strukturę danych do reprezentowania notesów Jupytera
+wraz z instancjami ToJSON i FromJSON do konwersji do i z plików JSON
+.ipynb.
+
%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-aeson-prof
+Requires: ghc-base-prof >= 4.8
Requires: ghc-base64-bytestring-prof
Requires: ghc-semigroups-prof
Requires: ghc-unordered-containers-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
@@ -75,6 +93,7 @@ runhaskell Setup.hs configure -v2 \
--docdir=%{_docdir}/%{name}-%{version}
runhaskell Setup.hs build
+
runhaskell Setup.hs haddock --executables
%install
@@ -85,8 +104,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-ipynb.git/commitdiff/8d9f3a57ae919402cb7cf07463cb3cec8b1c5cdf
More information about the pld-cvs-commit
mailing list