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 URL: http://www.netsurf-browser.org/projects/libdom/
15 BuildRequires: expat-devel >= 1.95
16 BuildRequires: libhubbub-devel >= 0.3.0
17 BuildRequires: libparserutils-devel >= 0.2.0
18 BuildRequires: libwapcaplet-devel >= 0.2.1
19 BuildRequires: libxml2-devel >= 2.0
20 BuildRequires: netsurf-buildsystem >= 1.1
21 BuildRequires: pkgconfig
22 Requires: libparserutils >= 0.2.0
23 Requires: libwapcaplet >= 0.2.1
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 LibDOM is an implementation of the W3C DOM, written in C. It is
28 currently in development for use with NetSurf and is intended to be
29 suitable for use in other projects too.
31 %description -l pl.UTF-8
32 LibDOM to implementacja W3C DOM, napisana w C. Jest rozwijana do
33 wykorzystania w ramach projektu NetSurf, ale także z myślą o
34 możliwości użycia w innych projektach.
37 Summary: libdom library headers
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdom
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
42 Requires: libhubbub-devel >= 0.3.0
45 This package contains the include files and other resources you can
46 use to incorporate libdom into applications.
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe pozwalające na używanie biblioteki libdom w swoich
53 Summary: libdom static library
54 Summary(pl.UTF-8): Statyczna biblioteka libdom
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 This is package with static libdom library.
61 %description static -l pl.UTF-8
62 Statyczna biblioteka libdom.
69 export CFLAGS="%{rpmcflags}"
70 export LDFLAGS="%{rpmldflags}"
76 COMPONENT_TYPE=lib-shared
78 %if %{with static_libs}
83 COMPONENT_TYPE=lib-static
87 rm -rf $RPM_BUILD_ROOT
92 COMPONENT_TYPE=lib-shared \
93 DESTDIR=$RPM_BUILD_ROOT
95 %if %{with static_libs}
100 COMPONENT_TYPE=lib-static \
101 DESTDIR=$RPM_BUILD_ROOT
105 rm -rf $RPM_BUILD_ROOT
107 %post -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
111 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/libdom.so.*.*.*
114 %attr(755,root,root) %ghost %{_libdir}/libdom.so.0
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libdom.so
120 %{_pkgconfigdir}/libdom.pc
122 %if %{with static_libs}
124 %defattr(644,root,root,755)