Update to 3.4.4, Use %%license, cleanup spec

This commit is contained in:
Peter Robinson 2015-08-28 18:09:32 +01:00
parent 3a9c7bab3c
commit 76c7498a0a
3 changed files with 16 additions and 15 deletions

2
.gitignore vendored
View File

@ -38,3 +38,5 @@ lxml-2.2.7.tar.gz.asc
/lxml-3.3.5.tgz.asc /lxml-3.3.5.tgz.asc
/lxml-3.3.6.tgz /lxml-3.3.6.tgz
/lxml-3.3.6.tgz.asc /lxml-3.3.6.tgz.asc
/lxml-3.4.4.tgz
/lxml-3.4.4.tgz.asc

View File

@ -9,8 +9,8 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: python-lxml Name: python-lxml
Version: 3.3.6 Version: 3.4.4
Release: 2%{?dist} Release: 1%{?dist}
Summary: ElementTree-like Python bindings for libxml2 and libxslt Summary: ElementTree-like Python bindings for libxml2 and libxslt
Group: Development/Libraries Group: Development/Libraries
@ -19,8 +19,6 @@ URL: http://lxml.de
Source0: http://lxml.de/files/lxml-%{version}.tgz Source0: http://lxml.de/files/lxml-%{version}.tgz
Source1: http://lxml.de/files/lxml-%{version}.tgz.asc Source1: http://lxml.de/files/lxml-%{version}.tgz.asc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libxslt-devel BuildRequires: libxslt-devel
BuildRequires: python-devel BuildRequires: python-devel
@ -81,7 +79,7 @@ rm -f src/lxml/lxml.etree_api.h
rm -f src/lxml/lxml.objectify.c rm -f src/lxml/lxml.objectify.c
chmod a-x doc/rest2html.py chmod a-x doc/rest2html.py
%{__sed} -i 's/\r//' doc/s5/ui/default/print.css \ sed -i 's/\r//' doc/s5/ui/default/print.css \
doc/s5/ep2008/atom.rng \ doc/s5/ep2008/atom.rng \
doc/s5/ui/default/iepngfix.htc doc/s5/ui/default/iepngfix.htc
@ -105,7 +103,6 @@ popd
%endif %endif
%install %install
rm -rf %{buildroot}
%{__python} setup.py install --skip-build --no-compile --with-cython --root %{buildroot} %{__python} setup.py install --skip-build --no-compile --with-cython --root %{buildroot}
%if 0%{?with_python3} %if 0%{?with_python3}
@ -137,28 +134,30 @@ export PYTHONPATH=src
popd popd
%endif %endif
%clean
rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc}
%doc LICENSES.txt PKG-INFO CREDITS.txt CHANGES.txt %license LICENSES.txt
%doc PKG-INFO CREDITS.txt CHANGES.txt
%{python_sitearch}/lxml %{python_sitearch}/lxml
%{python_sitearch}/lxml-*.egg-info %{python_sitearch}/lxml-*.egg-info
%files docs %files docs
%defattr(-,root,root,-)
%doc doc/* %doc doc/*
%if 0%{?with_python3} %if 0%{?with_python3}
%files -n python3-lxml %files -n python3-lxml
%defattr(-,root,root,-) %license LICENSES.txt
%doc LICENSES.txt PKG-INFO CREDITS.txt CHANGES.txt %doc PKG-INFO CREDITS.txt CHANGES.txt
%{python3_sitearch}/lxml-*.egg-info %{python3_sitearch}/lxml-*.egg-info
%{python3_sitearch}/lxml %{python3_sitearch}/lxml
%endif %endif
%changelog %changelog
* Fri Aug 28 2015 Peter Robinson <pbrobinson@fedoraproject.org> 3.4.4-1
- Update to 3.4.4
- Use %%license, cleanup spec
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.6-2 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

View File

@ -1,2 +1,2 @@
a804b36864c483fe7abdd7f493a0c379 lxml-3.3.6.tgz a9a65972afc173ec7a39c585f4eea69c lxml-3.4.4.tgz
c4eac2553c1b69b022403792f93adc51 lxml-3.3.6.tgz.asc 32178b79a94cff09e71b562bfa65c60a lxml-3.4.4.tgz.asc