[packages/libhubbub] - pl - use LIBDIR to get proper libs directory, also in .pc files - install time dependencies
qboosh
qboosh at pld-linux.org
Mon May 12 22:09:38 CEST 2014
commit a0409436b09cd11982136d23c3fb24747ca700a9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon May 12 22:12:15 2014 +0200
- pl
- use LIBDIR to get proper libs directory, also in .pc files
- install time dependencies
libhubbub.spec | 58 +++++++++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 45 insertions(+), 13 deletions(-)
---
diff --git a/libhubbub.spec b/libhubbub.spec
index c631885..e202bf8 100644
--- a/libhubbub.spec
+++ b/libhubbub.spec
@@ -3,6 +3,7 @@
%bcond_without static_libs # don't build static library
Summary: HTML5 compliant parsing library
+Summary(pl.UTF-8): Biblioteka analizująca HTML5
Name: libhubbub
Version: 0.3.0
Release: 1
@@ -13,6 +14,7 @@ Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-sr
URL: http://www.netsurf-browser.org/projects/libhubbub/
BuildRequires: libparserutils-devel >= 0.2.0
BuildRequires: netsurf-buildsystem >= 1.1
+Requires: libparserutils >= 0.2.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -37,28 +39,51 @@ Features:
- Portable
- Shared library
+%description -l pl.UTF-8
+Hubbub to napisana w C biblioteka analizująca HTML5. Powstała jako
+część projektu NetSurf i można jej używać w innych programach na
+licencji MIT.
+
+Specyfikacja HTML definiuje algorytm analizy w oparciu o zachowanie
+głównych przeglądarek, które dostarczają instrukcje, jak analizować
+znaczniki, zarówno poprawne, jak i niepoprawne. W efekcie Hubbub
+dobrze analizuje treści WWW.
+
+W razie potrzeby analizowania HTML5 w języku Python lub Ruby, można
+rozważyć użycie html5lib.
+
+Cechy biblioteki:
+- analizuje HTML, dobry i wadliwy
+- proste API dla języka C
+- szybka
+- wykrywanie kodowania znaków
+- dobrze przetestowana (~90% pokrycia testami)
+- przenośna
+- współdzielona
+
%package devel
Summary: libhubbub library headers
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libhubbub
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: libparserutils-devel >= 0.2.0
%description devel
-This is the libraries, include files and other resources you can use
-to incorporate libhubbub into applications.
+This package contains the include files and other resources you can
+use to incorporate libhubbub into applications.
%description devel -l pl.UTF-8
Pliki nagłówkowe pozwalające na używanie biblioteki libhubbub w swoich
programach.
%package static
-Summary: libhubbub static libraries
-Summary(pl.UTF-8): Statyczne biblioteki libhubbub
+Summary: libhubbub static library
+Summary(pl.UTF-8): Statyczna biblioteka libhubbub
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
-This is package with static libhubbub libraries.
+This is package with static libhubbub library.
%description static -l pl.UTF-8
Statyczna biblioteka libhubbub.
@@ -71,28 +96,34 @@ export CC="%{__cc}"
export CFLAGS="%{rpmcflags}"
export LDFLAGS="%{rpmldflags}"
-%{__make} Q= \
+%{__make} \
+ Q= \
PREFIX=%{_prefix} \
+ LIBDIR=%{_lib} \
COMPONENT_TYPE=lib-shared
%if %{with static_libs}
-%{__make} Q= \
+%{__make} \
+ Q= \
PREFIX=%{_prefix} \
+ LIBDIR=%{_lib} \
COMPONENT_TYPE=lib-static
%endif
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install Q= \
- lib=%{_lib} \
+%{__make} install \
+ Q= \
PREFIX=%{_prefix} \
+ LIBDIR=%{_lib} \
COMPONENT_TYPE=lib-shared \
DESTDIR=$RPM_BUILD_ROOT
%if %{with static_libs}
-%{__make} install Q= \
- lib=%{_lib} \
+%{__make} install \
+ Q= \
PREFIX=%{_prefix} \
+ LIBDIR=%{_lib} \
COMPONENT_TYPE=lib-static \
DESTDIR=$RPM_BUILD_ROOT
%endif
@@ -105,12 +136,13 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc COPYING README
%attr(755,root,root) %{_libdir}/libhubbub.so.*.*.*
-%ghost %{_libdir}/libhubbub.so.0
+%attr(755,root,root) %ghost %{_libdir}/libhubbub.so.0
%files devel
%defattr(644,root,root,755)
-%{_libdir}/libhubbub.so
+%attr(755,root,root) %{_libdir}/libhubbub.so
%{_includedir}/hubbub
%{_pkgconfigdir}/libhubbub.pc
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libhubbub.git/commitdiff/a0409436b09cd11982136d23c3fb24747ca700a9
More information about the pld-cvs-commit
mailing list