]> git.pld-linux.org Git - packages/libdom.git/blame - libdom.spec
- updated to 0.3.0
[packages/libdom.git] / libdom.spec
CommitLineData
d9686636 1#
2# Conditional build:
3%bcond_without static_libs # don't build static library
a9f7cd23 4
d9686636 5Summary: Implementation of W3C DOM
89960186 6Summary(pl.UTF-8): Implementacja W3C DOM
d9686636 7Name: libdom
e57f53fb 8Version: 0.3.0
f4771f8e 9Release: 1
d9686636 10License: MIT
11Group: Libraries
12Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
e57f53fb 13# Source0-md5: 269bd1ceb4debfc1c3e3732a26ded992
30c507f1 14Patch0: no-Werror.patch
d9686636 15URL: http://www.netsurf-browser.org/projects/libdom/
89960186 16BuildRequires: expat-devel >= 1.95
e57f53fb
WF
17BuildRequires: libhubbub-devel >= 0.3.3
18BuildRequires: libparserutils-devel >= 0.2.3
19BuildRequires: libwapcaplet-devel >= 0.3.0
89960186 20BuildRequires: libxml2-devel >= 2.0
e57f53fb 21BuildRequires: netsurf-buildsystem >= 1.5
89960186 22BuildRequires: pkgconfig
e57f53fb
WF
23Requires: libparserutils >= 0.2.3
24Requires: libwapcaplet >= 0.3.0
d9686636 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28LibDOM is an implementation of the W3C DOM, written in C. It is
29currently in development for use with NetSurf and is intended to be
30suitable for use in other projects too.
31
89960186
JB
32%description -l pl.UTF-8
33LibDOM to implementacja W3C DOM, napisana w C. Jest rozwijana do
34wykorzystania w ramach projektu NetSurf, ale także z myślą o
35możliwości użycia w innych projektach.
36
d9686636 37%package devel
38Summary: libdom library headers
39Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdom
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
16a44712
JB
42Requires: expat-devel >= 1.95
43Requires: libhubbub-devel >= 0.3.1
d9686636 44
45%description devel
89960186
JB
46This package contains the include files and other resources you can
47use to incorporate libdom into applications.
d9686636 48
49%description devel -l pl.UTF-8
50Pliki nagłówkowe pozwalające na używanie biblioteki libdom w swoich
51programach.
52
53%package static
89960186
JB
54Summary: libdom static library
55Summary(pl.UTF-8): Statyczna biblioteka libdom
d9686636 56Group: Development/Libraries
57Requires: %{name}-devel = %{version}-%{release}
58
59%description static
89960186 60This is package with static libdom library.
d9686636 61
62%description static -l pl.UTF-8
63Statyczna biblioteka libdom.
64
65%prep
66%setup -q
67
68%build
e57f53fb 69export AR="%{__ar}"
a9f7cd23
ER
70export CC="%{__cc}"
71export CFLAGS="%{rpmcflags}"
72export LDFLAGS="%{rpmldflags}"
73
89960186
JB
74%{__make} \
75 Q= \
a9f7cd23 76 PREFIX=%{_prefix} \
89960186 77 LIBDIR=%{_lib} \
a9f7cd23 78 COMPONENT_TYPE=lib-shared
d9686636 79
d9686636 80%if %{with static_libs}
89960186
JB
81%{__make} \
82 Q= \
a9f7cd23 83 PREFIX=%{_prefix} \
89960186 84 LIBDIR=%{_lib} \
a9f7cd23 85 COMPONENT_TYPE=lib-static
d9686636 86%endif
87
88%install
e57f53fb
WF
89export AR="%{__ar}"
90export CC="%{__cc}"
91export CFLAGS="%{rpmcflags}"
92export LDFLAGS="%{rpmldflags}"
93
d9686636 94rm -rf $RPM_BUILD_ROOT
89960186
JB
95%{__make} install \
96 Q= \
d9686636 97 PREFIX=%{_prefix} \
89960186 98 LIBDIR=%{_lib} \
d9686636 99 COMPONENT_TYPE=lib-shared \
a9f7cd23 100 DESTDIR=$RPM_BUILD_ROOT
d9686636 101
102%if %{with static_libs}
89960186
JB
103%{__make} install \
104 Q= \
d9686636 105 PREFIX=%{_prefix} \
89960186 106 LIBDIR=%{_lib} \
d9686636 107 COMPONENT_TYPE=lib-static \
a9f7cd23 108 DESTDIR=$RPM_BUILD_ROOT
d9686636 109%endif
110
111%clean
112rm -rf $RPM_BUILD_ROOT
113
114%post -p /sbin/ldconfig
115%postun -p /sbin/ldconfig
116
117%files
118%defattr(644,root,root,755)
89960186 119%doc COPYING README
e1de32bc 120%attr(755,root,root) %{_libdir}/libdom.so.*.*.*
89960186 121%attr(755,root,root) %ghost %{_libdir}/libdom.so.0
d9686636 122
123%files devel
124%defattr(644,root,root,755)
89960186 125%attr(755,root,root) %{_libdir}/libdom.so
d9686636 126%{_includedir}/dom
e1de32bc 127%{_pkgconfigdir}/libdom.pc
d9686636 128
129%if %{with static_libs}
130%files static
131%defattr(644,root,root,755)
e1de32bc 132%{_libdir}/libdom.a
d9686636 133%endif
This page took 0.138869 seconds and 4 git commands to generate.