3 %bcond_without static_libs # don't build static library
5 Summary: Implementation of W3C DOM
11 Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
12 # Source0-md5: dea386cfe4fc65b79a1815b0515fc688
13 URL: http://www.netsurf-browser.org/projects/libdom/
14 BuildRequires: libhubbub-devel >= 0.2.0
15 BuildRequires: libparserutils-devel >= 0.1.2
16 BuildRequires: libwapcaplet-devel >= 0.2.0
17 BuildRequires: libxml2-devel
18 BuildRequires: netsurf-buildsystem
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 LibDOM is an implementation of the W3C DOM, written in C. It is
23 currently in development for use with NetSurf and is intended to be
24 suitable for use in other projects too.
27 Summary: libdom library headers
28 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdom
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release}
33 This is the libraries, include files and other resources you can use
34 to incorporate libdom into applications.
36 %description devel -l pl.UTF-8
37 Pliki nagłówkowe pozwalające na używanie biblioteki libdom w swoich
41 Summary: libdom static libraries
42 Summary(pl.UTF-8): Statyczne biblioteki libdom
43 Group: Development/Libraries
44 Requires: %{name}-devel = %{version}-%{release}
47 This is package with static libdom libraries.
49 %description static -l pl.UTF-8
50 Statyczna biblioteka libdom.
57 LDFLAGS="%{rpmldflags}"
61 %{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-shared Q='' \
63 %if %{with static_libs}
64 %{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-static Q='' \
69 rm -rf $RPM_BUILD_ROOT
72 DESTDIR=$RPM_BUILD_ROOT \
74 COMPONENT_TYPE=lib-shared \
77 %if %{with static_libs}
79 DESTDIR=$RPM_BUILD_ROOT \
81 COMPONENT_TYPE=lib-static \
86 rm -rf $RPM_BUILD_ROOT
88 %post -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/lib*.so
101 %if %{with static_libs}
103 %defattr(644,root,root,755)