Author: jajcus                       Date: Mon Dec 27 12:25:02 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new spec

---- Files affected:
packages/ghc-hslogger:
   ghc-hslogger.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ghc-hslogger/ghc-hslogger.spec
diff -u /dev/null packages/ghc-hslogger/ghc-hslogger.spec:1.1
--- /dev/null   Mon Dec 27 13:25:02 2010
+++ packages/ghc-hslogger/ghc-hslogger.spec     Mon Dec 27 13:24:57 2010
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+%define        pkgname hslogger
+Summary:       Versatile logging framework for Haskell
+Name:          ghc-%{pkgname}
+Version:       1.1.0
+Release:       1
+License:       LGPL
+Group:         Development/Languages
+Source0:       
http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: 8039e079338dae19e1273bbd73332014
+URL:           http://hackage.haskell.org/package/%{pkgname}/
+BuildRequires: ghc >= 6.12.3
+%requires_releq        ghc
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                ghcdir          ghc-%(/usr/bin/ghc --numeric-version)
+
+%description
+hslogger is a logging framework for Haskell, roughly similar to Python's
+logging module.
+
+hslogger lets each log message have a priority and source be associated with
+it.  The programmer can then define global handlers that route or filter
+messages based on the priority and source.  hslogger also has a syslog handler
+built in.
+
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%build
+runhaskell Setup.hs configure -v2 \
+       --prefix=%{_prefix} \
+       --libdir=%{_libdir} \
+       --libexecdir=%{_libexecdir} \
+       --docdir=%{_docdir}/%{name}-%{version}
+
+runhaskell Setup.hs build
+runhaskell Setup.hs haddock --executables
+
+%install
+rm -rf $RPM_BUILD_ROOT
+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
+cp -a $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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/usr/bin/ghc-pkg recache
+
+%postun
+/usr/bin/ghc-pkg recache
+
+%files
+%defattr(644,root,root,755)
+%doc %{name}-%{version}-doc/html
+%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/12/27 12:24:57  jajcus
+- new spec
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to