[packages/python-xlrd] - up to 0.9.3 - minimum supported python-version is 2.6 - examples and docs dropped from tarball

atler atler at pld-linux.org
Sun Jul 6 00:05:22 CEST 2014


commit edc50e72c9c253880a2887a9a9c95b43401210af
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Jul 5 21:19:08 2014 +0200

    - up to 0.9.3
    - minimum supported python-version is 2.6
    - examples and docs dropped from tarball

 python-xlrd.spec | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)
---
diff --git a/python-xlrd.spec b/python-xlrd.spec
index 705be4e..d44c986 100644
--- a/python-xlrd.spec
+++ b/python-xlrd.spec
@@ -2,16 +2,17 @@
 Summary:	Python interface to extracting data from Excel datasheets
 Summary(pl.UTF-8):	Pythonowy interfejs do odczytywania danych z arkuszy Excela
 Name:		python-%{module}
-Version:	0.9.2
-Release:	2
+Version:	0.9.3
+Release:	1
 License:	BSD-style
 Group:		Development/Languages/Python
 Source0:	http://pypi.python.org/packages/source/x/xlrd/%{module}-%{version}.tar.gz
-# Source0-md5:	91a81ee76233e9f3115acaaa1b251b0e
+# Source0-md5:	6f3325132f246594988171bc72e1a385
 URL:		http://www.lexicon.net/sjmachin/xlrd.htm
-BuildRequires:	python-devel
+BuildRequires:	python-devel >= 1:2.6
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python >= 1:2.6
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -29,15 +30,11 @@ Pythonowy interfejs do odczytywania danych z arkuszy Excela
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %{__python} setup.py install \
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
-cp -p xlrd/examples/namesdemo.xls $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -p xlrd/examples/xlrdnameAPIdemo.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/runxlrd{.py,}
 %{__sed} -i -e 's|/usr/bin/env python|%{__python}|' $RPM_BUILD_ROOT%{_bindir}/runxlrd
 
@@ -45,17 +42,13 @@ cp -p xlrd/examples/xlrdnameAPIdemo.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{
 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_postclean
 
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/xlrd/{examples,doc}
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc xlrd/doc/compdoc.html xlrd/doc/xlrd.html
 %dir %{py_sitescriptdir}/%{module}
 %{py_sitescriptdir}/%{module}/*.py[co]
-%{_examplesdir}/%{name}-%{version}
 %attr(755,root,root) %{_bindir}/runxlrd
 %if "%{py_ver}" > "2.4"
 %{py_sitescriptdir}/%{module}-*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-xlrd.git/commitdiff/edc50e72c9c253880a2887a9a9c95b43401210af



More information about the pld-cvs-commit mailing list