[packages/ghc-haskell-src-meta] - updated to 0.6.0.5, pl, unified
qboosh
qboosh at pld-linux.org
Wed Dec 25 10:15:16 CET 2013
commit 728cee8d41657b8495cbf13aca8a580d1d8a080a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Dec 25 10:15:28 2013 +0100
- updated to 0.6.0.5, pl, unified
ghc-haskell-src-meta.spec | 129 +++++++++++++++++++++++++++++++++-------------
1 file changed, 92 insertions(+), 37 deletions(-)
---
diff --git a/ghc-haskell-src-meta.spec b/ghc-haskell-src-meta.spec
index ee68427..59c2ca0 100644
--- a/ghc-haskell-src-meta.spec
+++ b/ghc-haskell-src-meta.spec
@@ -1,52 +1,107 @@
+#
+# Conditional build:
+%bcond_without prof # profiling library
+#
%define pkgname haskell-src-meta
Summary: Parse source to template-haskell abstract syntax
+Summary(pl.UTF-8): Przetwarzanie źródeł do abstrakcyjnej składni biblioteki template-haskell
Name: ghc-%{pkgname}
-Version: 0.6.0.2
-Release: 4
+Version: 0.6.0.5
+Release: 1
License: BSD
Group: Development/Languages
-Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5: d3b9c3dfbc9bb9466e0a002ed195c352
-URL: http://hackage.haskell.org/package/haskell-src-meta/
+#Source0Download: http://hackage.haskell.org/package/haskell-src-meta
+Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: e59e0fedf6985494e82220477c54795c
+URL: http://hackage.haskell.org/package/haskell-src-meta
BuildRequires: ghc >= 6.12.3
-BuildRequires: ghc-haskell-platform
-BuildRequires: ghc-haskell-platform-prof
-BuildRequires: ghc-haskell-src-exts
-BuildRequires: ghc-haskell-src-exts-prof
-BuildRequires: ghc-th-lift
-BuildRequires: ghc-th-lift-prof
-BuildRequires: ghc-th-orphans
-BuildRequires: ghc-th-orphans-prof
+BuildRequires: ghc-base >= 4.2
+BuildRequires: ghc-base < 4.8
+BuildRequires: ghc-haskell-src-exts >= 1.14
+BuildRequires: ghc-haskell-src-exts < 1.15
+BuildRequires: ghc-pretty >= 1.0
+BuildRequires: ghc-pretty < 1.2
+BuildRequires: ghc-syb >= 0.1
+BuildRequires: ghc-syb < 0.5
+BuildRequires: ghc-template-haskell >= 2.4
+BuildRequires: ghc-template-haskell < 2.10
+BuildRequires: ghc-th-orphans >= 0.5
+BuildRequires: ghc-th-orphans < 0.9
+BuildRequires: ghc-uniplate >= 1.3
+BuildRequires: ghc-uniplate < 1.7
+%if %{with prof}
+BuildRequires: ghc-prof >= 6.12.3
+BuildRequires: ghc-base-prof >= 4.2
+BuildRequires: ghc-base-prof < 4.8
+BuildRequires: ghc-haskell-src-exts-prof >= 1.14
+BuildRequires: ghc-haskell-src-exts-prof < 1.15
+BuildRequires: ghc-pretty-prof >= 1.0
+BuildRequires: ghc-pretty-prof < 1.2
+BuildRequires: ghc-syb-prof >= 0.1
+BuildRequires: ghc-syb-prof < 0.5
+BuildRequires: ghc-template-haskell-prof >= 2.4
+BuildRequires: ghc-template-haskell-prof < 2.10
+BuildRequires: ghc-th-orphans-prof >= 0.5
+BuildRequires: ghc-th-orphans-prof < 0.9
+BuildRequires: ghc-uniplate-prof >= 1.3
+BuildRequires: ghc-uniplate-prof < 1.7
+%endif
BuildRequires: rpmbuild(macros) >= 1.608
+Requires(post,postun): /usr/bin/ghc-pkg
%requires_releq ghc
-Requires: ghc-haskell-platform
-Requires: ghc-haskell-src-exts
-Requires: ghc-th-lift
-Requires: ghc-th-orphans
+Requires: ghc >= 6.12.3
+Requires: ghc-base >= 4.2
+Requires: ghc-base < 4.8
+Requires: ghc-haskell-src-exts >= 1.14
+Requires: ghc-haskell-src-exts < 1.15
+Requires: ghc-pretty >= 1.0
+Requires: ghc-pretty < 1.2
+Requires: ghc-syb >= 0.1
+Requires: ghc-syb < 0.5
+Requires: ghc-template-haskell >= 2.4
+Requires: ghc-template-haskell < 2.10
+Requires: ghc-th-orphans >= 0.5
+Requires: ghc-th-orphans < 0.9
+Requires: ghc-uniplate >= 1.3
+Requires: ghc-uniplate < 1.7
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# debuginfo is not useful for ghc
%define _enable_debug_packages 0
-# don't compress haddoc files
+# don't compress haddock files
%define _noautocompressdoc *.haddock
%description
Parse source to template-haskell abstract syntax.
+%description -l pl.UTF-8
+Przetwarzanie źródeł do abstrakcyjnej składni biblioteki
+template-haskell.
+
%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-haskell-platform-prof
-Requires: ghc-haskell-src-exts-prof
-Requires: ghc-th-lift-prof
-Requires: ghc-th-orphans-prof
+Requires: ghc-base-prof >= 4.2
+Requires: ghc-base-prof < 4.8
+Requires: ghc-haskell-src-exts-prof >= 1.14
+Requires: ghc-haskell-src-exts-prof < 1.15
+Requires: ghc-pretty-prof >= 1.0
+Requires: ghc-pretty-prof < 1.2
+Requires: ghc-syb-prof >= 0.1
+Requires: ghc-syb-prof < 0.5
+Requires: ghc-template-haskell-prof >= 2.4
+Requires: ghc-template-haskell-prof < 2.10
+Requires: ghc-th-orphans-prof >= 0.5
+Requires: ghc-th-orphans-prof < 0.9
+Requires: ghc-uniplate-prof >= 1.3
+Requires: ghc-uniplate-prof < 1.7
%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
@@ -56,7 +111,8 @@ kiedy potrzebujemy systemu profilującego z GHC.
%setup -q -n %{pkgname}-%{version}
%build
-runhaskell Setup.lhs configure -v2 --enable-library-profiling \
+runhaskell Setup.lhs configure -v2 \
+ %{?with_prof:--enable-library-profiling} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
@@ -77,7 +133,7 @@ cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
runhaskell Setup.lhs register \
- --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
+ --gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%clean
rm -rf $RPM_BUILD_ROOT
@@ -90,32 +146,31 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README examples
-%doc %{name}-%{version}-doc/*
+%doc README examples %{name}-%{version}-doc/*
%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.o
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
-%exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
-
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HShaskell-src-meta-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHShaskell-src-meta-%{version}.a
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/*.hi
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/Meta
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/Meta/*.hi
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/Meta/Parse
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/Meta/Parse/*.hi
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/Meta/Syntax
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/Meta/Syntax/*.hi
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/TH
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/TH/Instances
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/*.hi
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/Meta/*.hi
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/Meta/Parse/*.hi
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/Meta/Syntax/*.hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/TH/Instances/*.hi
+%if %{with prof}
%files prof
%defattr(644,root,root,755)
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHShaskell-src-meta-%{version}_p.a
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/Meta/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/Meta/Parse/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/Meta/Syntax/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/TH/Instances/*.p_hi
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-haskell-src-meta.git/commitdiff/728cee8d41657b8495cbf13aca8a580d1d8a080a
More information about the pld-cvs-commit
mailing list