diff --git a/README.md b/README.md index 76b7460..b6722f6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # python-lxml +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. + diff --git a/python-lxml.spec b/python-lxml.spec new file mode 100644 index 0000000..bc1b25e --- /dev/null +++ b/python-lxml.spec @@ -0,0 +1,133 @@ +Name: python-lxml +Version: 3.3.5 +Release: 1mamba +Summary: Python binding for the libxml2 and libxslt libraries +Group: System/Libraries/Python +Vendor: openmamba +Distribution: openmamba +Packager: Automatic Build System +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 +* Fri Apr 18 2014 Automatic Build System 3.3.5-1mamba +- automatic version update by autodist + +* Fri Apr 04 2014 Automatic Build System 3.3.4-1mamba +- automatic version update by autodist + +* Mon Mar 17 2014 Automatic Build System 3.3.3-1mamba +- automatic version update by autodist + +* Sun Mar 02 2014 Automatic Build System 3.3.1-1mamba +- automatic version update by autodist + +* Thu Feb 06 2014 Automatic Build System 3.3.0-1mamba +- automatic version update by autodist + +* Wed Dec 04 2013 Automatic Build System 3.2.4-1mamba +- automatic version update by autodist + +* Sun Aug 04 2013 Automatic Build System 3.2.3-1mamba +- automatic update by autodist + +* Fri May 17 2013 Silvan Calarco 3.2.1-1mamba +- python 2.7 mass rebuild + +* Sat Apr 13 2013 Automatic Build System 3.1.2-1mamba +- automatic version update by autodist + +* Tue Dec 18 2012 Automatic Build System 3.0.2-1mamba +- automatic version update by autodist + +* Sun Oct 14 2012 Automatic Build System 3.0.1-1mamba +- automatic version update by autodist + +* Wed Aug 08 2012 Automatic Build System 2.3.5-1mamba +- automatic version update by autodist + +* Tue Dec 20 2011 Stefano Cotta Ramusino 2.3.2-1mamba +- update to 2.3.2 + +* Wed Oct 12 2011 Stefano Cotta Ramusino 2.3.1-1mamba +- update to 2.3.1 + +* Mon May 23 2011 Stefano Cotta Ramusino 2.3-1mamba +- update to 2.3 + +* Fri Oct 15 2010 Stefano Cotta Ramusino 2.2.8-1mamba +- update to 2.2.8 +- added doc package + +* Thu Jul 29 2010 Automatic Build System 2.2.7-1mamba +- automatic update by autodist + +* Thu Apr 15 2010 Automatic Build System 2.2.6-1mamba +- automatic update by autodist + +* Wed Jan 13 2010 Automatic Build System 2.2.4-1mamba +- automatic update by autodist + +* Fri Aug 28 2009 Automatic Build System 2.2.2-1mamba +- automatic update by autodist + +* Sat Jan 10 2009 gil 2.1.5-1mamba +- package created by autospec