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: 055878cf633a935031517e2e209062f6
13 URL: http://www.netsurf-browser.org/projects/libdom/
14 BuildRequires: libhubbub-devel >= 0.3.0
15 BuildRequires: libparserutils-devel >= 0.2.0
16 BuildRequires: libwapcaplet-devel >= 0.2.1
17 BuildRequires: libxml2-devel
18 BuildRequires: netsurf-buildsystem >= 1.1
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 export CFLAGS="%{rpmcflags}"
58 export LDFLAGS="%{rpmldflags}"
62 COMPONENT_TYPE=lib-shared
64 %if %{with static_libs}
67 COMPONENT_TYPE=lib-static
71 rm -rf $RPM_BUILD_ROOT
72 %{__make} install Q= \
75 COMPONENT_TYPE=lib-shared \
76 DESTDIR=$RPM_BUILD_ROOT
78 %if %{with static_libs}
79 %{__make} install Q= \
82 COMPONENT_TYPE=lib-static \
83 DESTDIR=$RPM_BUILD_ROOT
87 rm -rf $RPM_BUILD_ROOT
89 %post -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_libdir}/libdom.so.*.*.*
95 %ghost %{_libdir}/libdom.so.0
98 %defattr(644,root,root,755)
101 %{_pkgconfigdir}/libdom.pc
103 %if %{with static_libs}
105 %defattr(644,root,root,755)