1
0
python-et_xmlfile/python-et_xmlfile.spec

68 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-jdcal
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _pyname et_xmlfile
Name: python-%{_pyname}
Version: 1.0.1
Release: 0
Summary: An implementation of lxml.xmlfile for the standard library
License: MIT
Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/%{_pyname}
Source0: https://pypi.python.org/packages/source/e/%{_pyname}/%{_pyname}-%{version}.tar.gz
Source1: https://bitbucket.org/openpyxl/et_xmlfile/raw/8c7ad6904ebe0ff98c204a3e77d7e78528b10ffe/LICENCE.rst
BuildRequires: python-devel
BuildRequires: python-jdcal
BuildRequires: python-setuptools
BuildRequires: python-base
Requires: python-jdcal
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
#Mandatory for SLE_11
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%else
BuildArch: noarch
%endif
%description
et_xmlfile is a low memory library for creating large XML files.
It is based upon the xmlfile module from lxml with the aim of allowing code to
be developed that will work with both libraries. It was developed initially for
the openpyxl project but is now a standalone module.
%prep
%setup -q -n %{_pyname}-%{version}
rm -rf *.egg-info
cp -a %{S:1} .
%build
python setup.py build
%install
python setup.py install --root=%{buildroot} --prefix=%{_prefix}
%files
%defattr(-,root,root,-)
%doc README.rst LICENCE.rst
%{python_sitelib}/%{_pyname}-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/%{_pyname}/
%changelog