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
13 URL: http://www.netsurf-browser.org/projects/libparserutils/
14 BuildRequires: netsurf-buildsystem
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 LibParserUtils is a library for building efficient parsers, written in
19 C. It was developed as part of the NetSurf project and is available
20 for use by other software under the MIT licence.
24 * No mandatory dependencies (iconv() implementation optional
25 for 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
37 LibParserUtils has the following built-in charset converters.
40 * UTF-16 (platform-native endian)
46 Summary: libparserutils library headers
47 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libparserutils
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
52 This is the libraries, include files and other resources you can use
53 to incorporate libparserutils into applications.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe pozwalające na używanie biblioteki libparserutils w
60 Summary: libparserutils static libraries
61 Summary(pl.UTF-8): Statyczne biblioteki libparserutils
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
66 This is package with static libparserutils libraries.
68 %description static -l pl.UTF-8
69 Statyczna biblioteka libparserutils.
75 %{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-shared Q='' \
76 CFLAGS="%{rpmcflags} -Iinclude -Isrc" LDFLAGS="%{rpmldflags}"
77 %if %{with static_libs}
78 %{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-static Q='' \
79 CFLAGS="%{rpmcflags} -Iinclude -Isrc" LDFLAGS="%{rpmldflags}"
83 rm -rf $RPM_BUILD_ROOT
86 DESTDIR=$RPM_BUILD_ROOT \
88 COMPONENT_TYPE=lib-shared \
91 %if %{with static_libs}
93 DESTDIR=$RPM_BUILD_ROOT \
95 COMPONENT_TYPE=lib-static \
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/lib*.so
112 %{_includedir}/parserutils
115 %if %{with static_libs}
117 %defattr(644,root,root,755)