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
14 URL: http://www.netsurf-browser.org/projects/libdom/
15 BuildRequires: libhubbub-devel >= 0.2.0
16 BuildRequires: libparserutils-devel >= 0.1.2
17 BuildRequires: libwapcaplet-devel >= 0.2.0
18 BuildRequires: libxml2-devel
19 BuildRequires: netsurf-buildsystem
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 LibDOM is an implementation of the W3C DOM, written in C. It is
24 currently in development for use with NetSurf and is intended to be
25 suitable for use in other projects too.
28 Summary: libdom library headers
29 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdom
30 Group: Development/Libraries
31 Requires: %{name} = %{version}-%{release}
34 This is the libraries, include files and other resources you can use
35 to incorporate libdom into applications.
37 %description devel -l pl.UTF-8
38 Pliki nagłówkowe pozwalające na używanie biblioteki libdom w swoich
42 Summary: libdom static libraries
43 Summary(pl.UTF-8): Statyczne biblioteki libdom
44 Group: Development/Libraries
45 Requires: %{name}-devel = %{version}-%{release}
48 This is package with static libdom libraries.
50 %description static -l pl.UTF-8
51 Statyczna biblioteka libdom.
59 export CFLAGS="%{rpmcflags}"
60 export LDFLAGS="%{rpmldflags}"
64 COMPONENT_TYPE=lib-shared
66 %if %{with static_libs}
69 COMPONENT_TYPE=lib-static
73 rm -rf $RPM_BUILD_ROOT
74 %{__make} install Q= \
77 COMPONENT_TYPE=lib-shared \
78 DESTDIR=$RPM_BUILD_ROOT
80 %if %{with static_libs}
81 %{__make} install Q= \
84 COMPONENT_TYPE=lib-static \
85 DESTDIR=$RPM_BUILD_ROOT
89 rm -rf $RPM_BUILD_ROOT
91 %post -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
95 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_libdir}/libdom.so.*.*.*
97 %ghost %{_libdir}/libdom.so.0
100 %defattr(644,root,root,755)
103 %{_pkgconfigdir}/libdom.pc
105 %if %{with static_libs}
107 %defattr(644,root,root,755)