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