[packages/ghc-temporary] - new

qboosh qboosh at pld-linux.org
Fri Dec 20 20:44:53 CET 2013


commit 519a6d6f6d7df381f8c2b9f4ef1b39d950344016
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Dec 20 20:44:49 2013 +0100

    - new

 ghc-temporary.spec | 158 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 158 insertions(+)
---
diff --git a/ghc-temporary.spec b/ghc-temporary.spec
new file mode 100644
index 0000000..c9f5538
--- /dev/null
+++ b/ghc-temporary.spec
@@ -0,0 +1,158 @@
+#
+# Conditional build:
+%bcond_without	prof	# profiling library
+#
+%define		pkgname	temporary
+Summary:	Portable temporary file and directory support for Windows and Unix
+Summary(pl.UTF-8):	Przenośna obsługa plików i katalogów tymczasowych dla Windows i Uniksa
+Name:		ghc-%{pkgname}
+Version:	1.1.2.4
+Release:	1
+License:	BSD
+Group:		Development/Languages
+#Source0Download: http://hackage.haskell.org/package/temporary
+Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5:	80bf7f663b8a1e2e92dc117fa74629d3
+URL:		http://hackage.haskell.org/package/temporary
+BuildRequires:	ghc >= 6.12.3
+BuildRequires:	ghc-base >= 3
+BuildRequires:	ghc-base < 6
+BuildRequires:	ghc-directory >= 1.0
+BuildRequires:	ghc-directory < 1.3
+BuildRequires:	ghc-filepath >= 1.1
+BuildRequires:	ghc-filepath < 1.4
+%if %{with prof}
+BuildRequires:	ghc-prof >= 6.12.3
+BuildRequires:	ghc-base-prof >= 3
+BuildRequires:	ghc-base-prof < 6
+BuildRequires:	ghc-directory-prof >= 1.0
+BuildRequires:	ghc-directory-prof < 1.3
+BuildRequires:	ghc-filepath-prof >= 1.1
+BuildRequires:	ghc-filepath-prof < 1.4
+%endif
+BuildRequires:	rpmbuild(macros) >= 1.608
+Requires(post,postun):	/usr/bin/ghc-pkg
+%requires_eq	ghc
+Requires:	ghc-base >= 3
+Requires:	ghc-base < 6
+Requires:	ghc-directory >= 1.0
+Requires:	ghc-directory < 1.3
+Requires:	ghc-filepath >= 1.1
+Requires:	ghc-filepath < 1.4
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# debuginfo is not useful for ghc
+%define		_enable_debug_packages	0
+
+# don't compress haddock files
+%define		_noautocompressdoc	*.haddock
+
+%description
+The functions for creating temporary files and directories in the base
+library are quite limited. The unixutils package contains some good
+ones, but they aren't portable to Windows. This library just
+repackages the Cabal implementations of its own temporary file and
+folder functions so that you can use them without linking against
+Cabal or depending on it being installed.
+
+%description -l pl.UTF-8
+Funkcje do tworzenia plików i katalogów tymczasowych w bibliotece
+podstawowej są nieco ograniczone. Pakiet unixutils zawiera kilka
+dobrych, ale nie są one przenośne na Windows. Ta biblioteka zawiera
+przepakietowane implementacje funkcji i katalogów tymczasowych z
+pakietu Cabal, dzięki czemu można ich używać bez zależności od
+Cabala.
+
+%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 < 6
+Requires:	ghc-directory-prof >= 1.0
+Requires:	ghc-directory-prof < 1.3
+Requires:	ghc-filepath-prof >= 1.1
+Requires:	ghc-filepath-prof < 1.4
+
+%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 ghc %{pkgname} package
+Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}
+Group:		Documentation
+
+%description doc
+HTML documentation for ghc %{pkgname} package.
+
+%description doc -l pl.UTF-8
+Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%build
+runhaskell Setup.lhs configure -v2 \
+	%{?with_prof:--enable-library-profiling} \
+	--prefix=%{_prefix} \
+	--libdir=%{_libdir} \
+	--libexecdir=%{_libexecdir} \
+	--docdir=%{_docdir}/%{name}-%{version}
+
+runhaskell Setup.lhs build
+runhaskell Setup.lhs haddock --executables
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
+
+runhaskell Setup.lhs 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}
+
+runhaskell Setup.lhs register \
+	--gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%ghc_pkg_recache
+
+%postun
+%ghc_pkg_recache
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE
+%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HStemporary-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHStemporary-%{version}.a
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Distribution
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Distribution/Compat
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Distribution/Compat/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/IO
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/IO/Temp.hi
+
+%if %{with prof}
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHStemporary-%{version}_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Distribution/Compat/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/System/IO/Temp.p_hi
+%endif
+
+%files doc
+%defattr(644,root,root,755)
+%doc %{name}-%{version}-doc/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-temporary.git/commitdiff/519a6d6f6d7df381f8c2b9f4ef1b39d950344016



More information about the pld-cvs-commit mailing list