python-lxml/python-lxml.spec

152 lines
5.1 KiB
RPMSpec

Name: python-lxml
Version: 3.4.4
Release: 1mamba
Summary: Python binding for the libxml2 and libxslt libraries
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
URL: http://codespeak.net/lxml/
Source: http://pypi.python.org/packages/source/l/lxml/lxml-%{version}.tar.gz
License: BSD, MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpython-devel
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
lxml is a Pythonic binding for the libxml2 and libxslt libraries.
It is unique in that it combines the speed and feature completeness of these libraries with the simplicity of a native Python API, mostly compatible but superior to the well-known ElementTree API.
%package doc
Group: Documentation
Summary: Documentation package for %{name}
Requires: %{name} = %{?epoch:epoch:}%{version}-%{release}
%description doc
lxml is a Pythonic binding for the libxml2 and libxslt libraries.
It is unique in that it combines the speed and feature completeness of these libraries with the simplicity of a native Python API, mostly compatible but superior to the well-known ElementTree API.
This package contains the documentation files.
%prep
%setup -q -n lxml-%{version}
chmod a-x doc/rest2html.py
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--single-version-externally-managed \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
rm -f doc/html/pubkey.asc
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.filelist
%defattr(-,root,root)
%doc CREDITS.txt LICENSES.txt
%files doc
%defattr(-,root,root)
%doc doc/* benchmark
%doc CHANGES.txt TODO.txt
%changelog
* Mon Apr 27 2015 Automatic Build System <autodist@mambasoft.it> 3.4.4-1mamba
- automatic version update by autodist
* Fri Apr 17 2015 Automatic Build System <autodist@mambasoft.it> 3.4.3-1mamba
- automatic version update by autodist
* Sun Feb 08 2015 Automatic Build System <autodist@mambasoft.it> 3.4.2-1mamba
- automatic version update by autodist
* Fri Nov 21 2014 Automatic Build System <autodist@mambasoft.it> 3.4.1-1mamba
- automatic version update by autodist
* Thu Sep 11 2014 Automatic Build System <autodist@mambasoft.it> 3.4.0-1mamba
- automatic version update by autodist
* Thu Aug 28 2014 Automatic Build System <autodist@mambasoft.it> 3.3.6-1mamba
- automatic version update by autodist
* Fri Apr 18 2014 Automatic Build System <autodist@mambasoft.it> 3.3.5-1mamba
- automatic version update by autodist
* Fri Apr 04 2014 Automatic Build System <autodist@mambasoft.it> 3.3.4-1mamba
- automatic version update by autodist
* Mon Mar 17 2014 Automatic Build System <autodist@mambasoft.it> 3.3.3-1mamba
- automatic version update by autodist
* Sun Mar 02 2014 Automatic Build System <autodist@mambasoft.it> 3.3.1-1mamba
- automatic version update by autodist
* Thu Feb 06 2014 Automatic Build System <autodist@mambasoft.it> 3.3.0-1mamba
- automatic version update by autodist
* Wed Dec 04 2013 Automatic Build System <autodist@mambasoft.it> 3.2.4-1mamba
- automatic version update by autodist
* Sun Aug 04 2013 Automatic Build System <autodist@mambasoft.it> 3.2.3-1mamba
- automatic update by autodist
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-1mamba
- python 2.7 mass rebuild
* Sat Apr 13 2013 Automatic Build System <autodist@mambasoft.it> 3.1.2-1mamba
- automatic version update by autodist
* Tue Dec 18 2012 Automatic Build System <autodist@mambasoft.it> 3.0.2-1mamba
- automatic version update by autodist
* Sun Oct 14 2012 Automatic Build System <autodist@mambasoft.it> 3.0.1-1mamba
- automatic version update by autodist
* Wed Aug 08 2012 Automatic Build System <autodist@mambasoft.it> 2.3.5-1mamba
- automatic version update by autodist
* Tue Dec 20 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.3.2-1mamba
- update to 2.3.2
* Wed Oct 12 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.3.1-1mamba
- update to 2.3.1
* Mon May 23 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.3-1mamba
- update to 2.3
* Fri Oct 15 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.2.8-1mamba
- update to 2.2.8
- added doc package
* Thu Jul 29 2010 Automatic Build System <autodist@mambasoft.it> 2.2.7-1mamba
- automatic update by autodist
* Thu Apr 15 2010 Automatic Build System <autodist@mambasoft.it> 2.2.6-1mamba
- automatic update by autodist
* Wed Jan 13 2010 Automatic Build System <autodist@mambasoft.it> 2.2.4-1mamba
- automatic update by autodist
* Fri Aug 28 2009 Automatic Build System <autodist@mambasoft.it> 2.2.2-1mamba
- automatic update by autodist
* Sat Jan 10 2009 gil <puntogil@libero.it> 2.1.5-1mamba
- package created by autospec