3 %bcond_without static_libs # don't build static library
5 Summary: HTML5 compliant parsing library
6 Summary(pl.UTF-8): Biblioteka analizująca HTML5
12 Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
13 # Source0-md5: 9baf3f765e25336ab1b64da8968270f7
14 Patch0: %{name}-build.patch
15 URL: http://www.netsurf-browser.org/projects/libhubbub/
16 BuildRequires: libparserutils-devel >= 0.2.0
17 BuildRequires: netsurf-buildsystem >= 1.1
18 Requires: libparserutils >= 0.2.0
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Hubbub is an HTML5 compliant parsing library, written in C. It was
23 developed as part of the NetSurf project and is available for use by
24 other software under the MIT licence.
26 The HTML5 specification defines a parsing algorithm, based on the
27 behaviour of mainstream browsers, which provides instructions for how
28 to parse all markup, both valid and invalid. As a result, Hubbub
29 parses web content well.
31 If you are looking for an HTML5 parser in Python or Ruby, you may wish
35 - Parses HTML, good and bad
38 - Character encoding detection
39 - Well-tested (~90% test coverage)
43 %description -l pl.UTF-8
44 Hubbub to napisana w C biblioteka analizująca HTML5. Powstała jako
45 część projektu NetSurf i można jej używać w innych programach na
48 Specyfikacja HTML definiuje algorytm analizy w oparciu o zachowanie
49 głównych przeglądarek, które dostarczają instrukcje, jak analizować
50 znaczniki, zarówno poprawne, jak i niepoprawne. W efekcie Hubbub
51 dobrze analizuje treści WWW.
53 W razie potrzeby analizowania HTML5 w języku Python lub Ruby, można
54 rozważyć użycie html5lib.
57 - analizuje HTML, dobry i wadliwy
58 - proste API dla języka C
60 - wykrywanie kodowania znaków
61 - dobrze przetestowana (~90% pokrycia testami)
66 Summary: libhubbub library headers
67 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libhubbub
68 Group: Development/Libraries
69 Requires: %{name} = %{version}-%{release}
70 Requires: libparserutils-devel >= 0.2.0
73 This package contains the include files and other resources you can
74 use to incorporate libhubbub into applications.
76 %description devel -l pl.UTF-8
77 Pliki nagłówkowe pozwalające na używanie biblioteki libhubbub w swoich
81 Summary: libhubbub static library
82 Summary(pl.UTF-8): Statyczna biblioteka libhubbub
83 Group: Development/Libraries
84 Requires: %{name}-devel = %{version}-%{release}
87 This is package with static libhubbub library.
89 %description static -l pl.UTF-8
90 Statyczna biblioteka libhubbub.
98 export CFLAGS="%{rpmcflags} %{rpmcppflags}"
99 export LDFLAGS="%{rpmldflags}"
105 COMPONENT_TYPE=lib-shared
107 %if %{with static_libs}
112 COMPONENT_TYPE=lib-static
116 rm -rf $RPM_BUILD_ROOT
121 COMPONENT_TYPE=lib-shared \
122 DESTDIR=$RPM_BUILD_ROOT
124 %if %{with static_libs}
129 COMPONENT_TYPE=lib-static \
130 DESTDIR=$RPM_BUILD_ROOT
134 rm -rf $RPM_BUILD_ROOT
136 %post -p /sbin/ldconfig
137 %postun -p /sbin/ldconfig
140 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/libhubbub.so.*.*.*
143 %attr(755,root,root) %ghost %{_libdir}/libhubbub.so.0
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_libdir}/libhubbub.so
148 %{_includedir}/hubbub
149 %{_pkgconfigdir}/libhubbub.pc
151 %if %{with static_libs}
153 %defattr(644,root,root,755)
154 %{_libdir}/libhubbub.a