Lines Matching +full:python +full:- +full:version
5 Version: @VERSION@
9 Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-root
11 BuildRequires: python-devel
13 BuildRequires: python3-devel
15 BuildRequires: zlib-devel
17 BuildRequires: xz-devel
25 can be a simple SAX stream or and in-memory DOM like representations.
26 In this case one can use the built-in XPath and XPointer implementation
34 Requires: libxml2 = %{version}-%{release}
35 Requires: zlib-devel
36 Requires: xz-devel
45 can be a simple SAX stream or and in-memory DOM like representations.
46 In this case one can use the built-in XPath and XPointer implementation
54 Requires: libxml2 = %{version}-%{release}
60 %package -n python-%{name}
61 %{?python_provide:%python_provide python-%{name}}
62 Summary: Python bindings for the libxml2 library
64 Requires: libxml2 = %{version}-%{release}
65 Obsoletes: %{name}-python < %{version}-%{release}
66 Provides: %{name}-python = %{version}-%{release}
68 %description -n python-%{name}
69 The libxml2-python package contains a Python 2 module that permits applications
70 written in the Python programming language, version 2, to use the interface
79 %package -n python3-%{name}
80 Summary: Python 3 bindings for the libxml2 library
82 Requires: libxml2 = %{version}-%{release}
83 Obsoletes: %{name}-python3 < %{version}-%{release}
84 Provides: %{name}-python3 = %{version}-%{release}
86 %description -n python3-%{name}
87 The libxml2-python3 package contains a Python 3 module that permits
88 applications written in the Python programming language, version 3, to use the
98 %setup -q
102 sed -i 's|#!/usr/bin/python |#!%{__python3} |' py3doc/*.py
108 find doc -type f -exec chmod 0644 \{\} \;
111 rm -fr %{buildroot}
117 %configure --with-python=%{__python3}
122 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
123 rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
124 rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
125 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-%{version}/*
126 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-python-%{version}/*
127 (cd doc/examples ; make clean ; rm -rf .deps Makefile)
128 gzip -9 -c doc/libxml2-api.xml > doc/libxml2-api.xml.gz
131 #disabling python tests from rpm build as broken in Fedora 30
135 rm -fr %{buildroot}
137 %post -p /sbin/ldconfig
139 %postun -p /sbin/ldconfig
142 %defattr(-, root, root)
154 %defattr(-, root, root)
156 %doc %{_mandir}/man1/xml2-config.1*
159 %doc doc/tutorial doc/libxml2-api.xml.gz
161 %doc %dir %{_datadir}/gtk-doc/html/libxml2
162 %doc %{_datadir}/gtk-doc/html/libxml2/*.devhelp
163 %doc %{_datadir}/gtk-doc/html/libxml2/*.html
164 %doc %{_datadir}/gtk-doc/html/libxml2/*.png
165 %doc %{_datadir}/gtk-doc/html/libxml2/*.css
170 %{_bindir}/xml2-config
172 %{_libdir}/pkgconfig/libxml-2.0.pc
173 %{_libdir}/cmake/libxml2/libxml2-config.cmake
176 %defattr(-, root, root)
180 %files -n python-%{name}
181 %defattr(-, root, root)
183 %{_libdir}/python2*/site-packages/libxml2.py*
184 %{_libdir}/python2*/site-packages/drv_libxml2.py*
185 %{_libdir}/python2*/site-packages/libxml2mod*
186 %doc python/TODO
187 %doc python/libxml2class.txt
188 %doc python/tests/*.py
190 %doc doc/python.html
193 %files -n python3-%{name}
194 %defattr(-, root, root)
196 %{_libdir}/python3*/site-packages/libxml2.py*
197 %{_libdir}/python3*/site-packages/drv_libxml2.py*
198 %{_libdir}/python3*/site-packages/__pycache__/*py*
199 %{_libdir}/python3*/site-packages/libxml2mod*
200 %doc python/TODO
201 %doc python/libxml2class.txt
203 %doc doc/python.html
208 - upstream release @VERSION@ see http://xmlsoft.org/news.html