[packages/liblouis] - new
qboosh
qboosh at pld-linux.org
Fri Oct 4 21:37:05 CEST 2013
commit 5ab74684e52e9a0efb435506c9e94c63aa536529
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Oct 4 21:37:48 2013 +0200
- new
liblouis-info.patch | 14 +++++
liblouis.spec | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 161 insertions(+)
---
diff --git a/liblouis.spec b/liblouis.spec
new file mode 100644
index 0000000..8a6a511
--- /dev/null
+++ b/liblouis.spec
@@ -0,0 +1,147 @@
+Summary: Braille translator and back-translator library
+Summary(pl.UTF-8): Biblioteka tłumacząca na i z alfabetu Braille'a
+Name: liblouis
+Version: 2.5.3
+Release: 1
+License: LGPL v3+ (library), GPL v3+ (tools)
+Group: Libraries
+#Source0-Download: http://code.google.com/p/liblouis/downloads/list
+Source0: http://liblouis.googlecode.com/files/%{name}-%{version}.tar.gz
+# Source0-md5: 5de179044c5147b71c60ca0edbeaabab
+Patch0: %{name}-info.patch
+URL: http://code.google.com/p/liblouis/
+BuildRequires: help2man
+BuildRequires: pkgconfig
+BuildRequires: python-devel >= 1:2.6
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: sed >= 4.0
+BuildRequires: texinfo
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Liblouis is an open-source braille translator and back-translator. It
+features support for computer and literary braille, supports
+contracted and uncontracted translation for many, many languages
+
+%description -l pl.UTF-8
+Liblouis to mający otwarte źródła tłumacz na i z alfabetu Braille'a.
+Ma obsługę komputerowego i literackiego Braille'a, obowiązujących
+i nie obowiązujących tłumaczeń dla naprawdę wielu języków.
+
+%package devel
+Summary: Header files for liblouis library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki liblouis
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for liblouis library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki liblouis.
+
+%package static
+Summary: Static liblouis library
+Summary(pl.UTF-8): Statyczna biblioteka liblouis
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static liblouis library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka liblouis.
+
+%package -n python-louis
+Summary: Python ctypes binding for liblouis
+Summary(pl.UTF-8): Wiązania Pythona oparte na ctypes do biblioteki liblouis
+Group: Development/Languages/Python
+Requires: %{name} = %{version}-%{release}
+
+%description -n python-louis
+Python ctypes binding for liblouis.
+
+%description -n python-louis -l pl.UTF-8
+Wiązania Pythona oparte na ctypes do biblioteki liblouis.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%{__sed} -i -e '1s,#!/usr/bin/env python,#!/usr/bin/python,' tools/lou_harnessGenerator
+
+%build
+%configure
+
+%{__make} \
+ dlname="liblouis.so.2"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+cd python
+LD_LIBRARY_PATH=$(pwd)/../liblouis/.libs \
+%{__python} setup.py install \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/liblouis.la
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/liblouis
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%post devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_bindir}/lou_allround
+%attr(755,root,root) %{_bindir}/lou_checkhyphens
+%attr(755,root,root) %{_bindir}/lou_checktable
+%attr(755,root,root) %{_bindir}/lou_debug
+%attr(755,root,root) %{_bindir}/lou_trace
+%attr(755,root,root) %{_bindir}/lou_translate
+%attr(755,root,root) %{_libdir}/liblouis.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/liblouis.so.2
+%{_datadir}/liblouis
+%{_mandir}/man1/lou_allround.1*
+%{_mandir}/man1/lou_checkhyphens.1*
+%{_mandir}/man1/lou_checktable.1*
+%{_mandir}/man1/lou_debug.1*
+%{_mandir}/man1/lou_trace.1*
+%{_mandir}/man1/lou_translate.1*
+
+%files devel
+%defattr(644,root,root,755)
+%doc HACKING doc/liblouis.html
+%attr(755,root,root) %{_libdir}/liblouis.so
+%{_includedir}/liblouis
+%{_pkgconfigdir}/liblouis.pc
+%{_infodir}/liblouis.info*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/liblouis.a
+
+%files -n python-louis
+%defattr(644,root,root,755)
+%doc python/README
+%attr(755,root,root) %{_bindir}/lou_harnessGenerator
+%dir %{py_sitescriptdir}/louis
+%{py_sitescriptdir}/louis/__init__.py[co]
+%{py_sitescriptdir}/louis-%{version}-py*.egg-info
diff --git a/liblouis-info.patch b/liblouis-info.patch
new file mode 100644
index 0000000..625ee86
--- /dev/null
+++ b/liblouis-info.patch
@@ -0,0 +1,14 @@
+--- liblouis-2.5.3/doc/liblouis.texi.orig 2013-06-21 14:13:16.000000000 +0200
++++ liblouis-2.5.3/doc/liblouis.texi 2013-10-04 20:09:54.107770348 +0200
+@@ -4,9 +4,9 @@
+ @include version.texi
+ @settitle Liblouis User's and Programmer's Manual
+
+- at dircategory Misc
++ at dircategory Miscellaneous:
+ @direntry
+-* Liblouis: (liblouis). A braille translator and back-translator
++* Liblouis: (liblouis). A braille translator and back-translator
+ @end direntry
+
+ @finalout
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/liblouis.git/commitdiff/5ab74684e52e9a0efb435506c9e94c63aa536529
More information about the pld-cvs-commit
mailing list