3 %bcond_without static_libs # don't build static library
5 Summary: Implementation of W3C DOM
6 Summary(pl.UTF-8): Implementacja W3C DOM
12 Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
13 # Source0-md5: 055878cf633a935031517e2e209062f6
14 Patch0: no-Werror.patch
15 URL: http://www.netsurf-browser.org/projects/libdom/
16 BuildRequires: expat-devel >= 1.95
17 BuildRequires: libhubbub-devel >= 0.3.0
18 BuildRequires: libparserutils-devel >= 0.2.0
19 BuildRequires: libwapcaplet-devel >= 0.2.1
20 BuildRequires: libxml2-devel >= 2.0
21 BuildRequires: netsurf-buildsystem >= 1.1
22 BuildRequires: pkgconfig
23 Requires: libparserutils >= 0.2.0
24 Requires: libwapcaplet >= 0.2.1
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 LibDOM is an implementation of the W3C DOM, written in C. It is
29 currently in development for use with NetSurf and is intended to be
30 suitable for use in other projects too.
32 %description -l pl.UTF-8
33 LibDOM to implementacja W3C DOM, napisana w C. Jest rozwijana do
34 wykorzystania w ramach projektu NetSurf, ale także z myślą o
35 możliwości użycia w innych projektach.
38 Summary: libdom library headers
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdom
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
43 Requires: libhubbub-devel >= 0.3.0
46 This package contains the include files and other resources you can
47 use to incorporate libdom into applications.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe pozwalające na używanie biblioteki libdom w swoich
54 Summary: libdom static library
55 Summary(pl.UTF-8): Statyczna biblioteka libdom
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
60 This is package with static libdom library.
62 %description static -l pl.UTF-8
63 Statyczna biblioteka libdom.
71 export CFLAGS="%{rpmcflags}"
72 export LDFLAGS="%{rpmldflags}"
78 COMPONENT_TYPE=lib-shared
80 %if %{with static_libs}
85 COMPONENT_TYPE=lib-static
89 rm -rf $RPM_BUILD_ROOT
94 COMPONENT_TYPE=lib-shared \
95 DESTDIR=$RPM_BUILD_ROOT
97 %if %{with static_libs}
102 COMPONENT_TYPE=lib-static \
103 DESTDIR=$RPM_BUILD_ROOT
107 rm -rf $RPM_BUILD_ROOT
109 %post -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
113 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/libdom.so.*.*.*
116 %attr(755,root,root) %ghost %{_libdir}/libdom.so.0
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/libdom.so
122 %{_pkgconfigdir}/libdom.pc
124 %if %{with static_libs}
126 %defattr(644,root,root,755)