python-xml/python-xml.spec

74 lines
2.2 KiB
RPMSpec

Name: python-xml
Version: 0.8.4
Release: 5mamba
Summary: XML package for Python
Group: Development/Bindings
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: http://www.python.org/sigs/xml-sig/
Source: http://downloads.sourceforge.net/pyxml/PyXML-%{version}.tar.gz
Patch: python-xml-0.8.4-datasize.patch
License: Python
Provides: python-pyxml
Obsoletes: python-pyxml
Provides: pyxml
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpython-devel
BuildRequires: libpython27-devel
## AUTOBUILDREQ-END
%description
The PyXML package is a collection of libraries to process XML with Python.
The distribution contains a validating XML parser, an implementation of the SAX and DOM programming interfaces and an interface to the Expat parser.
%prep
%setup -q -n PyXML-%{version}
%patch -p1
%build
CFLAGS="%{optflags}" %{__python} setup.py build \
--with-xslt
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%{__python} setup.py install \
--root=%{buildroot} \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--with-xslt
#%{__python} -O %{_libdir}/python%{pyver}/compileall.py \
# %{buildroot}%{python_sitearch}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/xmlproc_parse
%{_bindir}/xmlproc_val
%dir %{python_sitearch}/_xmlplus
%{python_sitearch}/_xmlplus/*
%{python_sitearch}/PyXML-%{version}-py%{python_version}.egg-info
%changelog
* Sun Sep 21 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.4-5mamba
- really rebuild with python 2.7
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.4-4mamba
- python 2.7 mass rebuild
* Wed Dec 30 2009 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.8.4-3mamba
- fixed a problem calculating the datasize of the data read from an XML file
- fixed license
- added missing build requirements
* Tue Sep 30 2008 Tiziana Ferro <tiziana.ferro@email.it> 0.8.4-2mamba
- update buildrequirements list and rebuild
* Fri Sep 23 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.8.4-1qilnx
- package created by autospec