3 %bcond_without static_libs # don't build static library
5 Summary: Library for building efficient parsers
11 Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
12 # Source0-md5: 11c2b4ff17406b57dcb718d4fad022bb
14 URL: http://www.netsurf-browser.org/projects/libparserutils/
15 BuildRequires: netsurf-buildsystem
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 LibParserUtils is a library for building efficient parsers, written in
20 C. It was developed as part of the NetSurf project and is available
21 for use by other software under the MIT licence.
24 - No mandatory dependencies (iconv() implementation optional for
25 enhanced charset support)
26 - A number of built-in character set converters
27 - Mapping of character set names to/from MIB enum values
28 - UTF-8 and UTF-16 (host endian) support functions
29 - Various simple data structures (resizeable buffer, stack, vector)
30 - A UTF-8 input stream
35 Summary: libparserutils library headers
36 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libparserutils
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 This is the libraries, include files and other resources you can use
42 to incorporate libparserutils into applications.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe pozwalające na używanie biblioteki libparserutils w
49 Summary: libparserutils static libraries
50 Summary(pl.UTF-8): Statyczne biblioteki libparserutils
51 Group: Development/Libraries
52 Requires: %{name}-devel = %{version}-%{release}
55 This is package with static libparserutils libraries.
57 %description static -l pl.UTF-8
58 Statyczna biblioteka libparserutils.
65 %{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-shared Q='' \
66 CFLAGS="%{rpmcflags} -Iinclude -Isrc" LDFLAGS="%{rpmldflags}"
68 %if %{with static_libs}
69 %{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-static Q='' \
70 CFLAGS="%{rpmcflags} -Iinclude -Isrc" LDFLAGS="%{rpmldflags}"
74 rm -rf $RPM_BUILD_ROOT
75 %{__make} install Q='' \
78 COMPONENT_TYPE=lib-shared \
79 DESTDIR=$RPM_BUILD_ROOT
81 %if %{with static_libs}
82 %{__make} install Q='' \
85 COMPONENT_TYPE=lib-static \
86 DESTDIR=$RPM_BUILD_ROOT
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_libdir}/lib*.so
102 %{_includedir}/parserutils
105 %if %{with static_libs}
107 %defattr(644,root,root,755)