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 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 0.10.0-1mamba - package created using the webbuild interface