package created using the webbuild interface [release 0.10.0-1mamba;Fri Aug 07 2015]
This commit is contained in:
parent
dde8347b46
commit
392eaeed5c
@ -1,2 +1,4 @@
|
||||
# python-tablib
|
||||
|
||||
Format agnostic tabular data library (XLS, JSON, YAML, CSV).
|
||||
|
||||
|
78
python-tablib-0.10.0-python2.7.patch
Normal file
78
python-tablib-0.10.0-python2.7.patch
Normal file
@ -0,0 +1,78 @@
|
||||
From 84e7e251aec1d0ef8b3d45376ed91c49bf2c2f06 Mon Sep 17 00:00:00 2001
|
||||
From: Iuri de Silvio <iurisilvio@gmail.com>
|
||||
Date: Tue, 27 May 2014 19:25:15 -0300
|
||||
Subject: [PATCH] Separate py2 and py3 packages to avoid installation errors.
|
||||
Fix #151
|
||||
|
||||
---
|
||||
setup.py | 45 ++++++++++++++++++++++++++-------------------
|
||||
1 file changed, 26 insertions(+), 19 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index a6eeb1e..648f7eb 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -36,37 +36,44 @@
|
||||
errors = os.system('py.test test_tablib.py')
|
||||
sys.exit(bool(errors))
|
||||
|
||||
-setup(
|
||||
- name='tablib',
|
||||
- version=tablib.__version__,
|
||||
- description='Format agnostic tabular data library (XLS, JSON, YAML, CSV)',
|
||||
- long_description=(open('README.rst').read() + '\n\n' +
|
||||
- open('HISTORY.rst').read()),
|
||||
- author='Kenneth Reitz',
|
||||
- author_email='me@kennethreitz.org',
|
||||
- url='http://python-tablib.org',
|
||||
- packages=[
|
||||
- 'tablib', 'tablib.formats',
|
||||
- 'tablib.packages',
|
||||
+packages = [
|
||||
+ 'tablib', 'tablib.formats', 'tablib.packages.omnijson',
|
||||
+ 'tablib.packages.unicodecsv', 'tablib.packages',
|
||||
+]
|
||||
+if sys.version_info[0] == 2:
|
||||
+ packages.extend([
|
||||
'tablib.packages.xlwt',
|
||||
- 'tablib.packages.xlwt3',
|
||||
'tablib.packages.xlrd',
|
||||
- 'tablib.packages.xlrd3',
|
||||
- 'tablib.packages.omnijson',
|
||||
'tablib.packages.odf',
|
||||
- 'tablib.packages.odf3',
|
||||
'tablib.packages.openpyxl',
|
||||
'tablib.packages.openpyxl.shared',
|
||||
'tablib.packages.openpyxl.reader',
|
||||
'tablib.packages.openpyxl.writer',
|
||||
+ 'tablib.packages.yaml',
|
||||
+ ])
|
||||
+else:
|
||||
+ packages.extend([
|
||||
+ 'tablib.packages.xlwt3',
|
||||
+ 'tablib.packages.xlrd3',
|
||||
+ 'tablib.packages.odf3',
|
||||
'tablib.packages.openpyxl3',
|
||||
'tablib.packages.openpyxl3.shared',
|
||||
'tablib.packages.openpyxl3.reader',
|
||||
'tablib.packages.openpyxl3.writer',
|
||||
- 'tablib.packages.yaml',
|
||||
'tablib.packages.yaml3',
|
||||
- 'tablib.packages.unicodecsv'
|
||||
- ],
|
||||
+ ])
|
||||
+
|
||||
+
|
||||
+setup(
|
||||
+ name='tablib',
|
||||
+ version=tablib.__version__,
|
||||
+ description='Format agnostic tabular data library (XLS, JSON, YAML, CSV)',
|
||||
+ long_description=(open('README.rst').read() + '\n\n' +
|
||||
+ open('HISTORY.rst').read()),
|
||||
+ author='Kenneth Reitz',
|
||||
+ author_email='me@kennethreitz.org',
|
||||
+ url='http://python-tablib.org',
|
||||
+ packages=packages,
|
||||
license='MIT',
|
||||
classifiers=(
|
||||
'Development Status :: 5 - Production/Stable',
|
54
python-tablib.spec
Normal file
54
python-tablib.spec
Normal file
@ -0,0 +1,54 @@
|
||||
Name: python-tablib
|
||||
Version: 0.10.0
|
||||
Release: 1mamba
|
||||
Summary: Format agnostic tabular data library (XLS, JSON, YAML, CSV)
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://pypi.python.org/pypi/tablib
|
||||
Source: https://pypi.python.org/packages/source/t/tablib/tablib-%{version}.tar.gz
|
||||
Patch0: python-tablib-0.10.0-python2.7.patch
|
||||
License: MIT
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
## note: run 'autospec -u -a6 python-tablib' to get the list of build requirements.
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: libpython-devel
|
||||
Requires: python >= %python_version
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%if "%{?with_pyver}"
|
||||
%pyver_package
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n tablib-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%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} \
|
||||
--record=%{name}.filelist
|
||||
|
||||
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
||||
%if "%{?with_pyver}"
|
||||
sed -i "/markup.cpython/d" %{name}.filelist
|
||||
%endif
|
||||
|
||||
%files %{?pyappend} -f %{name}.filelist
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS LICENSE
|
||||
|
||||
%changelog
|
||||
* Fri Aug 07 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10.0-1mamba
|
||||
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user