]> git.pld-linux.org Git - packages/libdom.git/blame - libdom.spec
- updated -devel dependencies
[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
8e63aa7f 8Version: 0.4.2
f4771f8e 9Release: 1
d9686636 10License: MIT
11Group: Libraries
12Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
8e63aa7f 13# Source0-md5: 715c8018dbf0ed8b61a1afcc8cb13ed9
d9686636 14URL: http://www.netsurf-browser.org/projects/libdom/
89960186 15BuildRequires: expat-devel >= 1.95
8e63aa7f
WF
16BuildRequires: libhubbub-devel >= 0.3.8
17BuildRequires: libparserutils-devel >= 0.2.5
f6de4658 18BuildRequires: libwapcaplet-devel >= 0.4.3
89960186 19BuildRequires: libxml2-devel >= 2.0
8e63aa7f 20BuildRequires: netsurf-buildsystem >= 1.10
89960186 21BuildRequires: pkgconfig
8e63aa7f
WF
22Requires: libhubbub >= 0.3.8
23Requires: libparserutils >= 0.2.5
f6de4658 24Requires: libwapcaplet >= 0.4.3
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 42Requires: expat-devel >= 1.95
899e263f
JB
43Requires: libhubbub-devel >= 0.3.8
44Requires: libwapcaplet-devel >= 0.4.3
d9686636 45
46%description devel
89960186
JB
47This package contains the include files and other resources you can
48use to incorporate libdom into applications.
d9686636 49
50%description devel -l pl.UTF-8
51Pliki nagłówkowe pozwalające na używanie biblioteki libdom w swoich
52programach.
53
54%package static
89960186
JB
55Summary: libdom static library
56Summary(pl.UTF-8): Statyczna biblioteka libdom
d9686636 57Group: Development/Libraries
58Requires: %{name}-devel = %{version}-%{release}
59
60%description static
89960186 61This is package with static libdom library.
d9686636 62
63%description static -l pl.UTF-8
64Statyczna biblioteka libdom.
65
66%prep
67%setup -q
68
69%build
e57f53fb 70export AR="%{__ar}"
a9f7cd23
ER
71export CC="%{__cc}"
72export CFLAGS="%{rpmcflags}"
73export LDFLAGS="%{rpmldflags}"
74
89960186
JB
75%{__make} \
76 Q= \
a9f7cd23 77 PREFIX=%{_prefix} \
89960186 78 LIBDIR=%{_lib} \
a9f7cd23 79 COMPONENT_TYPE=lib-shared
d9686636 80
d9686636 81%if %{with static_libs}
89960186
JB
82%{__make} \
83 Q= \
a9f7cd23 84 PREFIX=%{_prefix} \
89960186 85 LIBDIR=%{_lib} \
a9f7cd23 86 COMPONENT_TYPE=lib-static
d9686636 87%endif
88
89%install
c8590f8b
JB
90rm -rf $RPM_BUILD_ROOT
91
e57f53fb
WF
92export AR="%{__ar}"
93export CC="%{__cc}"
94export CFLAGS="%{rpmcflags}"
95export LDFLAGS="%{rpmldflags}"
96
89960186
JB
97%{__make} install \
98 Q= \
d9686636 99 PREFIX=%{_prefix} \
89960186 100 LIBDIR=%{_lib} \
d9686636 101 COMPONENT_TYPE=lib-shared \
a9f7cd23 102 DESTDIR=$RPM_BUILD_ROOT
d9686636 103
104%if %{with static_libs}
89960186
JB
105%{__make} install \
106 Q= \
d9686636 107 PREFIX=%{_prefix} \
89960186 108 LIBDIR=%{_lib} \
d9686636 109 COMPONENT_TYPE=lib-static \
a9f7cd23 110 DESTDIR=$RPM_BUILD_ROOT
d9686636 111%endif
112
113%clean
114rm -rf $RPM_BUILD_ROOT
115
116%post -p /sbin/ldconfig
117%postun -p /sbin/ldconfig
118
119%files
120%defattr(644,root,root,755)
89960186 121%doc COPYING README
e1de32bc 122%attr(755,root,root) %{_libdir}/libdom.so.*.*.*
89960186 123%attr(755,root,root) %ghost %{_libdir}/libdom.so.0
d9686636 124
125%files devel
126%defattr(644,root,root,755)
89960186 127%attr(755,root,root) %{_libdir}/libdom.so
d9686636 128%{_includedir}/dom
e1de32bc 129%{_pkgconfigdir}/libdom.pc
d9686636 130
131%if %{with static_libs}
132%files static
133%defattr(644,root,root,755)
e1de32bc 134%{_libdir}/libdom.a
d9686636 135%endif
This page took 0.105491 seconds and 4 git commands to generate.