[packages/ghc-monad-control] - updated to 0.3.2.2, pl, unified, added -prof package
qboosh
qboosh at pld-linux.org
Sat Dec 21 10:29:15 CET 2013
commit 48d8cdd07b1a87a60673999177f21dcd905779bf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 21 10:29:19 2013 +0100
- updated to 0.3.2.2, pl, unified, added -prof package
ghc-monad-control.spec | 106 ++++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 91 insertions(+), 15 deletions(-)
---
diff --git a/ghc-monad-control.spec b/ghc-monad-control.spec
index b3ff93a..dc93e20 100644
--- a/ghc-monad-control.spec
+++ b/ghc-monad-control.spec
@@ -1,17 +1,50 @@
+#
+# Conditional build:
+%bcond_without prof # profiling library
+#
%define pkgname monad-control
Summary: Generic control operations
+Summary(pl.UTF-8): Ogólne operacje sterujące
Name: ghc-%{pkgname}
-Version: 0.3.2.1
+Version: 0.3.2.2
Release: 1
License: BSD
Group: Development/Languages
-Source0: http://hackage.haskell.org/packages/archive/monad-control/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5: 91f6c3e726b50dc0e625ad17ee5812a9
-URL: http://hackage.haskell.org/package/monad-control/
+#Source0Download: http://hackage.haskell.org/package/monad-control
+Source0: http://hackage.haskell.org/package/monad-control-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: cc836f29b8e95c6b6ea28d804422ae1c
+URL: http://hackage.haskell.org/package/monad-control
BuildRequires: ghc >= 6.12.3
-BuildRequires: ghc-transformers-base
+BuildRequires: ghc-base >= 3
+BuildRequires: ghc-base < 5
+BuildRequires: ghc-base-unicode-symbols >= 0.1.1
+BuildRequires: ghc-base-unicode-symbols < 0.3
+BuildRequires: ghc-transformers >= 0.2
+BuildRequires: ghc-transformers < 0.4
+BuildRequires: ghc-transformers-base >= 0.4.1
+BuildRequires: ghc-transformers-base < 0.5
+%if %{with prof}
+BuildRequires: ghc-prof >= 6.12.3
+BuildRequires: ghc-base-prof >= 3
+BuildRequires: ghc-base-prof < 5
+BuildRequires: ghc-base-unicode-symbols-prof >= 0.1.1
+BuildRequires: ghc-base-unicode-symbols-prof < 0.3
+BuildRequires: ghc-transformers-prof >= 0.2
+BuildRequires: ghc-transformers-prof < 0.4
+BuildRequires: ghc-transformers-base-prof >= 0.4.1
+BuildRequires: ghc-transformers-base-prof < 0.5
+%endif
BuildRequires: rpmbuild(macros) >= 1.608
+Requires(post,postun): /usr/bin/ghc-pkg
%requires_eq ghc
+Requires: ghc-base >= 3
+Requires: ghc-base < 5
+Requires: ghc-base-unicode-symbols >= 0.1.1
+Requires: ghc-base-unicode-symbols < 0.3
+Requires: ghc-transformers >= 0.2
+Requires: ghc-transformers < 0.4
+Requires: ghc-transformers-base >= 0.4.1
+Requires: ghc-transformers-base < 0.5
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# debuginfo is not useful for ghc
@@ -24,22 +57,53 @@ lifted from IO or any other base monad. Instances are based on monad
transformers in MonadTransControl, which includes all standard monad
transformers in the transformers library except ContT.
+%description -l pl.UTF-8
+Ten pakiet definiuje klasę typu MonadBaseControl, będącą podzbiorem
+MonadBase, do której można podnieść ogólne operacje sterujące (takie
+jak catch) z IO lub dowolnej innej podstawowej monady. Instancje są
+oparte na transformatorach monad w MonadTransControl, która dołącza
+wszystkie standardowe transformatory monad z biblioteki transformers z
+wyjątkiem ContT.
+
+%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 >= 3
+Requires: ghc-base-prof < 5
+Requires: ghc-base-unicode-symbols-prof >= 0.1.1
+Requires: ghc-base-unicode-symbols-prof < 0.3
+Requires: ghc-transformers-prof >= 0.2
+Requires: ghc-transformers-prof < 0.4
+Requires: ghc-transformers-base-prof >= 0.4.1
+Requires: ghc-transformers-base-prof < 0.5
+
+%description prof
+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
+kiedy potrzebujemy systemu profilującego z GHC.
+
%package doc
-Summary: HTML documentation for %{pkgname}
-Summary(pl.UTF-8): Dokumentacja w formacie HTML dla pakietu %{pkgname}
+Summary: HTML documentation for ghc %{pkgname} package
+Summary(pl.UTF-8): Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}
Group: Documentation
%description doc
-HTML documentation for %{pkgname}.
+HTML documentation for ghc %{pkgname} package.
%description doc -l pl.UTF-8
-Dokumentacja w formacie HTML dla pakietu %{pkgname}.
+Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
%prep
%setup -q -n %{pkgname}-%{version}
%build
runhaskell Setup.hs configure -v2 \
+ %{?with_prof:--enable-library-profiling} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
@@ -55,13 +119,12 @@ install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
# work around automatic haddock docs installation
-rm -rf %{name}-%{version}-doc
+%{__rm} -rf %{name}-%{version}-doc
cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
runhaskell Setup.hs register \
- --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
-
-%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+ --gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%clean
rm -rf $RPM_BUILD_ROOT
@@ -74,9 +137,22 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc LICENSE
+%doc LICENSE NEWS README.markdown
%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSmonad-control-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSmonad-control-%{version}.a
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Trans
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Trans/Control.hi
+
+%if %{with prof}
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSmonad-control-%{version}_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Control/Monad/Trans/Control.p_hi
+%endif
%files doc
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-monad-control.git/commitdiff/48d8cdd07b1a87a60673999177f21dcd905779bf
More information about the pld-cvs-commit
mailing list