]> git.pld-linux.org Git - packages/libxml2.git/blame - libxml2.spec
- updated to 2.8.0
[packages/libxml2.git] / libxml2.spec
CommitLineData
e8966c4b 1# TODO:
2# - fix build without libxml2-devel (python library uses old headers)
7b503906
JB
3#
4# Conditional build:
3ba0dd16 5%bcond_without apidocs # do not build and package API docs
30f31f4d
JB
6%bcond_without python # don't build python module
7%bcond_without static_libs # don't build static libraries
0b339d08 8%bcond_without zlib # don't use zlib
bb6f7bb6 9%bcond_with mem_debug # enable libxml2 memory debuging
3ba0dd16 10
9146e4ca 11Summary: libXML library
c6cb7fae
ER
12Summary(es.UTF-8): Biblioteca libXML version 2
13Summary(pl.UTF-8): Biblioteka libXML wersja 2
14Summary(pt_BR.UTF-8): Biblioteca libXML versão 2
9146e4ca 15Name: libxml2
74971558
JB
16Version: 2.8.0
17Release: 1
32bd2aad 18Epoch: 1
78f6a9a3 19License: MIT
9146e4ca 20Group: Libraries
f555f133 21#Source0: http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/%{name}-%{version}.tar.bz2
22Source0: ftp://xmlsoft.org/libxml2/%{name}-%{version}.tar.gz
74971558
JB
23# Source0-md5: c62106f02ee00b6437f0fb9d370c1093
24Patch0: %{name}-man_fixes.patch
25Patch1: %{name}-open.gz.patch
26Patch2: %{name}-largefile.patch
9146e4ca 27URL: http://xmlsoft.org/
74971558 28BuildRequires: autoconf >= 2.59
30f31f4d 29BuildRequires: automake >= 1.4
7b503906 30BuildRequires: libtool >= 1:1.4.2-9
7b503906
JB
31%{?with_python:BuildRequires: python-devel}
32%{?with_python:BuildRequires: python-modules}
7b503906 33%{?with_python:BuildRequires: rpm-pythonprov}
30f31f4d 34BuildRequires: rpmbuild(macros) >= 1.219
b176c2d0 35%{?with_zlib:BuildRequires: zlib-devel >= 1.2.3.3}
d00368fa
JB
36# history support in xmllint is disabled by default
37#BuildRequires: ncurses-devel
38#BuildRequires: readline-devel >= 4.2
b176c2d0 39Requires: zlib >= 1.2.3.3
e8966c4b 40Obsoletes: xml-common
9146e4ca
AM
41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
9146e4ca
AM
43%description
44This library allows you to manipulate XML files.
45
257f3917
JR
46%description -l es.UTF-8
47Esta biblioteca permite manipulación de archivos XML.
326c44e7 48
257f3917
JR
49%description -l pl.UTF-8
50Biblioteka libxml2 umożliwia manipulowanie zawartością plików XML.
9146e4ca 51
257f3917
JR
52%description -l pt_BR.UTF-8
53Esta biblioteca permite a manipulação de arquivos XML.
326c44e7 54
9146e4ca
AM
55%package devel
56Summary: Header files etc to develop libxml2 applications
c6cb7fae
ER
57Summary(es.UTF-8): Biblioteca y archivos de inclusión para desarrollo de aplicaciones libXML
58Summary(pl.UTF-8): Pliki nagłówkowe i inne do libxml2
59Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações que usem a biblioteca libxml
9146e4ca 60Group: Development/Libraries
4f124b4c 61Requires: %{name} = %{epoch}:%{version}-%{release}
5ff229cc 62Requires: zlib-devel
9146e4ca
AM
63
64%description devel
65Header files etc you can use to develop libxml2 applications.
66
257f3917
JR
67%description devel -l es.UTF-8
68Biblioteca y archivos de inclusión para desarrollo de aplicaciones
326c44e7 69libXML.
70
257f3917
JR
71%description devel -l pl.UTF-8
72Pakiet ten zawiera pliki nagłówkowe i inne do libxml2 niezbędne przy
73tworzeniu aplikacji opartych o tę bibliotekę.
9146e4ca 74
257f3917
JR
75%description devel -l pt_BR.UTF-8
76Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
326c44e7 77que usem a biblioteca libxml.
78
9146e4ca
AM
79%package static
80Summary: Static libxml2 libraries
c6cb7fae
ER
81Summary(es.UTF-8): Static libraries to develop libxml applications
82Summary(pl.UTF-8): Biblioteka statyczna libxml2
83Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento de aplicações que usem a biblioteca libxml
9146e4ca 84Group: Development/Libraries
4f124b4c 85Requires: %{name}-devel = %{epoch}:%{version}-%{release}
9146e4ca
AM
86
87%description static
88Static libxml2 libraries.
89
257f3917 90%description static -l es.UTF-8
326c44e7 91Static libraries, you can use to develop libxml applications.
92
257f3917 93%description static -l pl.UTF-8
9146e4ca
AM
94Biblioteka statyczna libxml2.
95
257f3917
JR
96%description static -l pt_BR.UTF-8
97Bibliotecas estáticas para desenvolvimento de aplicações que usem a
326c44e7 98biblioteca libxml.
99
e5fe7879
MB
100%package apidocs
101Summary: libxml2 API documentation
102Summary(pl.UTF-8): Dokumentacja API libxml2
103Group: Documentation
104Requires: gtk-doc-common
105
106%description apidocs
107libxml2 API documentation.
108
109%description apidocs -l pl.UTF-8
110Dokumentacja API libxml2.
111
fef91692 112%package progs
113Summary: XML files parser
c6cb7fae 114Summary(pl.UTF-8): Analizator składniowy plików XML
fef91692 115Group: Applications/Text
4f124b4c 116Requires: %{name} = %{epoch}:%{version}-%{release}
fef91692 117
118%description progs
119XML files parser.
120
257f3917
JR
121%description progs -l pl.UTF-8
122Analizator składniowy plików XML.
fef91692 123
78f6a9a3 124%package -n python-%{name}
125Summary: Python support for libxml2
c6cb7fae 126Summary(pl.UTF-8): Moduły języka Python dla biblioteki libxml2
db6d9c9b 127Group: Libraries/Python
4f124b4c 128Requires: %{name} = %{epoch}:%{version}-%{release}
eff67c27 129%pyrequires_eq python-libs
560a3de6 130Obsoletes: libxml2-python
78f6a9a3 131
132%description -n python-%{name}
133Python support for libxml2.
134
257f3917
JR
135%description -n python-%{name} -l pl.UTF-8
136Moduły języka Python dla biblioteki libxml2.
78f6a9a3 137
9146e4ca
AM
138%prep
139%setup -q
6f41977c 140%patch0 -p1
0b339d08 141%if %{with zlib}
74971558 142%patch1 -p1
0b339d08 143%endif
74971558 144%patch2 -p1
ccf06610 145
9146e4ca 146%build
c3e0f8bb 147%{__libtoolize}
194fa592 148%{__aclocal}
b65cf538 149%{__autoconf}
7b503906 150%{__autoheader}
b65cf538 151%{__automake}
e0ab6350 152%configure \
74971558
JB
153 --disable-silent-rules \
154 %{!?with_static_libs:--disable-static=no} \
0b339d08 155 %{!?with_python:--without-python} \
74971558 156 %{!?with_zlib:--without-zlib} \
bb6f7bb6 157 --with%{!?with_mem_debug:out}-mem-debug
9c79f44a 158
9146e4ca
AM
159%{__make}
160
161%install
162rm -rf $RPM_BUILD_ROOT
163
5d7e8892
JB
164%{__make} install \
165 DESTDIR=$RPM_BUILD_ROOT \
30f31f4d 166 DEVHELP_DIR=%{_gtkdocdir}/libxml2 \
5d7e8892
JB
167 m4datadir=%{_aclocaldir} \
168 pkgconfigdir=%{_pkgconfigdir}
9146e4ca 169
4b15d29d 170# move examples to proper dir
171install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-devel-%{version} \
172 $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
173mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/examples/* \
174 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-devel-%{version}
97e76e01 175
7b503906
JB
176%if %{with python}
177mv -f $RPM_BUILD_ROOT%{_docdir}/%{name}-python-%{version}/examples/* \
4b15d29d 178 $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
97e76e01
ER
179
180%if "%{py_ver}" > "2.4"
64256ca4
JK
181cd python
182./setup.py install_egg_info --install-dir=$RPM_BUILD_ROOT%{py_sitedir}
183cd ..
4b15d29d 184%endif
97e76e01 185%endif
4b15d29d 186
187# move html doc to -devel package
188install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-devel-%{version}
e0ab6350 189mv -f $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html \
4b15d29d 190 $RPM_BUILD_ROOT%{_docdir}/%{name}-devel-%{version}
191rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
192
9cad6a31 193# install catalog file
194install -d $RPM_BUILD_ROOT%{_sysconfdir}/xml
195LD_LIBRARY_PATH=.libs ./xmlcatalog --create \
196 > $RPM_BUILD_ROOT%{_sysconfdir}/xml/catalog
197
7b503906 198%if %{with python}
78f6a9a3 199%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
200%py_comp $RPM_BUILD_ROOT%{py_sitedir}
30f31f4d 201%py_postclean
465bf951 202rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
696b50a8 203%endif
78f6a9a3 204
9146e4ca 205%clean
7939e1ec 206rm -rf $RPM_BUILD_ROOT
9146e4ca 207
e8d2b5b5 208%post -p /sbin/ldconfig
209%postun -p /sbin/ldconfig
9146e4ca
AM
210
211%files
212%defattr(644,root,root,755)
d73bc3df 213%doc AUTHORS ChangeLog Copyright NEWS README TODO
ccba1061
JB
214%attr(755,root,root) %{_libdir}/libxml2.so.*.*.*
215%attr(755,root,root) %ghost %{_libdir}/libxml2.so.2
216%{_mandir}/man3/libxml.3*
9146e4ca 217
9cad6a31 218%dir %{_sysconfdir}/xml
5a57b590 219%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xml/catalog
9cad6a31 220
9146e4ca
AM
221%files devel
222%defattr(644,root,root,755)
4b15d29d 223%doc %{_docdir}/%{name}-devel-%{version}
f0e239fb 224%attr(755,root,root) %{_bindir}/xml2-config
ccba1061
JB
225%attr(755,root,root) %{_libdir}/libxml2.so
226%{_libdir}/libxml2.la
74971558 227%attr(755,root,root) %{_libdir}/xml2Conf.sh
ccba1061
JB
228%{_pkgconfigdir}/libxml-2.0.pc
229%{_aclocaldir}/libxml.m4
326f70c8 230%{_includedir}/libxml2
fef91692 231%{_mandir}/man1/xml2-config.1*
96a30929 232%{_examplesdir}/%{name}-devel-%{version}
9146e4ca 233
e0ab6350 234%if %{with static_libs}
9146e4ca
AM
235%files static
236%defattr(644,root,root,755)
ccba1061 237%{_libdir}/libxml2.a
e0ab6350 238%endif
fef91692 239
3ba0dd16 240%if %{with apidocs}
e5fe7879
MB
241%files apidocs
242%defattr(644,root,root,755)
243%{_gtkdocdir}/libxml2
3ba0dd16 244%endif
e5fe7879 245
fef91692 246%files progs
247%defattr(644,root,root,755)
6f41977c 248%attr(755,root,root) %{_bindir}/xmlcatalog
fef91692 249%attr(755,root,root) %{_bindir}/xmllint
6f41977c 250%{_mandir}/man1/xmlcatalog.1*
fef91692 251%{_mandir}/man1/xmllint.1*
78f6a9a3 252
7b503906 253%if %{with python}
78f6a9a3 254%files -n python-%{name}
255%defattr(644,root,root,755)
ccba1061 256%attr(755,root,root) %{py_sitedir}/libxml2mod.so
30f31f4d
JB
257%{py_sitedir}/drv_libxml2.py[co]
258%{py_sitedir}/libxml2.py[co]
97e76e01 259%if "%{py_ver}" > "2.4"
64256ca4 260%{py_sitedir}/libxml2_python-*.egg-info
97e76e01 261%endif
30f31f4d 262%{_examplesdir}/python-%{name}-%{version}
696b50a8 263%endif
This page took 0.106441 seconds and 4 git commands to generate.