packages: ghc-utf8-string/ghc-utf8-string.spec (NEW) - initial revision
baggins
baggins at pld-linux.org
Sat Apr 10 18:32:29 CEST 2010
Author: baggins Date: Sat Apr 10 16:32:29 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- initial revision
---- Files affected:
packages/ghc-utf8-string:
ghc-utf8-string.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/ghc-utf8-string/ghc-utf8-string.spec
diff -u /dev/null packages/ghc-utf8-string/ghc-utf8-string.spec:1.1
--- /dev/null Sat Apr 10 18:32:29 2010
+++ packages/ghc-utf8-string/ghc-utf8-string.spec Sat Apr 10 18:32:24 2010
@@ -0,0 +1,111 @@
+# $Revision$, $Date$
+%define pkgname utf8-string
+Summary: Support for reading and writing UTF8 Strings
+Name: ghc-%{pkgname}
+Version: 0.3.6
+Release: 1
+License: BSD
+Group: Development/Languages
+Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: be8c5ef52a0824babdc89d60c1e9b600
+URL: http://hackage.haskell.org/package/%{pkgname}/
+BuildRequires: ghc >= 6.10
+%requires_eq ghc
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define libsubdir ghc-%(/usr/bin/ghc --numeric-version)/%{pkgname}-%{version}
+
+%description
+A UTF8 layer for IO and Strings. The utf8-string package
+provides operations for encoding UTF8 strings to Word8 lists
+and back, and for reading and writing UTF8 without truncation.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%build
+./Setup.lhs configure -v2 \
+ --prefix=%{_prefix} \
+ --libdir=%{_libdir} \
+ --libexecdir=%{_libexecdir} \
+ --libsubdir=%{libsubdir} \
+ --docdir=%{_docdir}/%{name}-%{version}
+
+./Setup.lhs build
+./Setup.lhs haddock --executables
+
+%install
+rm -rf $RPM_BUILD_ROOT
+./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
+
+./Setup.lhs register \
+ --gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{libsubdir}/%{pkgname}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/usr/bin/ghc-pkg update %{_libdir}/%{libsubdir}/%{pkgname}.conf
+
+%postun
+if [ "$1" = "0" ]; then
+ /usr/bin/ghc-pkg unregister %{pkgname}-%{version}
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc %{name}-%{version}-doc/html
+%{_libdir}/%{libsubdir}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2010/04/10 16:32:24 baggins
+- initial revision
+
+Revision 1.12 2010/04/08 22:06:04 glen
+- docdir
+
+Revision 1.11 2010/04/08 21:59:35 baggins
+- BR will most likely be R
+
+Revision 1.10 2010/04/08 21:58:04 baggins
+- quiet configure a bit
+
+Revision 1.9 2010/04/08 21:56:14 baggins
+- safekeep all docs, not only html
+
+Revision 1.8 2010/04/08 21:53:15 baggins
+- require ghc with haddock
+- work around automatic docs installation to docdir
+
+Revision 1.7 2010/04/08 21:37:19 baggins
+- exclusivearch is not needed, ghc has this dependency
+
+Revision 1.6 2010/04/08 21:25:34 baggins
+- reqs cleanup
+
+Revision 1.5 2010/04/08 21:23:06 baggins
+- ghc comment not needed after renaming spec to ghc-package
+
+Revision 1.4 2010/04/08 19:23:03 baggins
+- ghc-centrism
+- cleanups
+- unregister module only on last uninstall
+
+Revision 1.3 2010/04/08 12:19:17 baggins
+- build and package docs
+
+Revision 1.2 2010/04/08 12:04:54 baggins
+- fixed post
+
+Revision 1.1 2010/04/08 12:03:46 baggins
+- template for haskell (ghc) packages
+
================================================================
More information about the pld-cvs-commit
mailing list