|
|
9b59b9d |
|
|
|
9b59b9d |
%global pname docx
|
|
|
9b59b9d |
%global with_python3 1
|
|
|
9b59b9d |
|
|
|
9b59b9d |
Name: python-docx
|
|
|
9b59b9d |
Version: 0.8.5
|
|
|
9126d56 |
Release: 15%{?dist}
|
|
|
9b59b9d |
Summary: Create and update Microsoft Word .docx files
|
|
|
9b59b9d |
|
|
|
9b59b9d |
License: MIT
|
|
|
9b59b9d |
URL: https://github.com/python-openxml/python-docx
|
|
|
9b59b9d |
Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
|
|
9b59b9d |
|
|
|
9b59b9d |
BuildArch: noarch
|
|
|
9b59b9d |
|
|
|
dac4c72 |
BuildRequires: python2-devel
|
|
|
dac4c72 |
BuildRequires: python2-lxml
|
|
|
9b59b9d |
# test requirements
|
|
|
dac4c72 |
BuildRequires: python2-behave >= 1.2.3
|
|
|
dac4c72 |
BuildRequires: python2-pyparsing >= 2.0.1
|
|
|
dac4c72 |
BuildRequires: python2-mock >= 1.0.1
|
|
|
dac4c72 |
BuildRequires: python2-flake8 >= 2.0
|
|
|
9b59b9d |
|
|
|
9b59b9d |
|
|
|
9b59b9d |
%if 0%{?fedora} >=21
|
|
|
dac4c72 |
BuildRequires: python2-pytest >= 2.5
|
|
|
9b59b9d |
%else
|
|
|
9b59b9d |
BuildRequires: pytest
|
|
|
9b59b9d |
%endif
|
|
|
9b59b9d |
|
|
|
9b59b9d |
%if 0%{?with_python3}
|
|
|
9b59b9d |
%package -n python3-%{pname}
|
|
|
9b59b9d |
Summary: Create and update Microsoft Word .docx files
|
|
|
3f5f196 |
Requires: python3-lxml
|
|
|
3f5f196 |
%{?python_provide:%python_provide python3-%{pname}}
|
|
|
9b59b9d |
BuildRequires: python3-devel
|
|
|
9b59b9d |
BuildRequires: python3-lxml
|
|
|
9b59b9d |
#Testing requirements
|
|
|
9b59b9d |
|
|
|
9b59b9d |
# python-behave Not available for python3
|
|
|
9b59b9d |
BuildRequires: python3-pyparsing >= 2.0.1
|
|
|
9b59b9d |
BuildRequires: python3-mock >= 1.0.1
|
|
|
9b59b9d |
BuildRequires: python3-flake8 >= 2.0
|
|
|
9b59b9d |
|
|
|
9b59b9d |
%if 0%{?fedora} >=21
|
|
|
9b59b9d |
BuildRequires: python3-pytest >= 2.5
|
|
|
9b59b9d |
%endif
|
|
|
9b59b9d |
|
|
|
9b59b9d |
%description -n python3-%{pname}
|
|
|
9b59b9d |
Python library for creating and updating Microsoft Word (.docx) files.
|
|
|
9b59b9d |
%endif
|
|
|
9b59b9d |
|
|
|
9b59b9d |
|
|
|
16af156 |
%global _description\
|
|
|
9b59b9d |
Python library for creating and updating Microsoft Word (.docx) files.
|
|
|
9b59b9d |
|
|
|
16af156 |
%description %_description
|
|
|
16af156 |
|
|
|
16af156 |
%package -n python2-%{pname}
|
|
|
16af156 |
Summary: %summary
|
|
|
dac4c72 |
Requires: python2-lxml
|
|
|
16af156 |
%{?python_provide:%python_provide python2-%{pname}}
|
|
|
16af156 |
|
|
|
16af156 |
%description -n python2-%{pname} %_description
|
|
|
16af156 |
|
|
|
9b59b9d |
%prep
|
|
|
9b59b9d |
%setup -qn %{name}-%{version}
|
|
|
9b59b9d |
# Remove bundled egg-info
|
|
|
9b59b9d |
rm -rf python_%{pname}.egg-info
|
|
|
9b59b9d |
|
|
|
9b59b9d |
%build
|
|
|
9b59b9d |
%{__python2} setup.py build
|
|
|
9b59b9d |
|
|
|
9b59b9d |
%if 0%{?with_python3}
|
|
|
9b59b9d |
%{__python3} setup.py build
|
|
|
9b59b9d |
%endif
|
|
|
9b59b9d |
|
|
|
9b59b9d |
%install
|
|
|
9b59b9d |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
9b59b9d |
|
|
|
9b59b9d |
%if 0%{?with_python3}
|
|
|
9b59b9d |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
9b59b9d |
%endif
|
|
|
9b59b9d |
|
|
|
9b59b9d |
%check
|
|
|
9b59b9d |
py.test
|
|
|
9b59b9d |
behave --stop
|
|
|
9b59b9d |
|
|
|
9b59b9d |
%if 0%{?with_python3} && 0%{?fedora} >=21
|
|
|
9b59b9d |
%{__python3} -m pytest
|
|
|
9b59b9d |
%endif
|
|
|
9b59b9d |
|
|
|
16af156 |
%files -n python2-%{pname}
|
|
|
9b59b9d |
%doc README.rst
|
|
|
9b59b9d |
%license LICENSE
|
|
|
9b59b9d |
%{python2_sitelib}/%{pname}
|
|
|
9b59b9d |
%{python2_sitelib}/python_%{pname}-%{version}-py?.?.egg-info
|
|
|
9b59b9d |
|
|
|
9b59b9d |
%if 0%{?with_python3}
|
|
|
9b59b9d |
%files -n python3-%{pname}
|
|
|
9b59b9d |
%doc README.rst
|
|
|
9b59b9d |
%license LICENSE
|
|
|
9b59b9d |
%{python3_sitelib}/%{pname}
|
|
|
9b59b9d |
%{python3_sitelib}/python_%{pname}-%{version}-py?.?.egg-info
|
|
|
9b59b9d |
%endif
|
|
|
9b59b9d |
|
|
|
9b59b9d |
%changelog
|
|
|
9126d56 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-15
|
|
|
9126d56 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
9126d56 |
|
|
|
8f4af12 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.5-14
|
|
|
8f4af12 |
- Rebuilt for Python 3.7
|
|
|
8f4af12 |
|
|
|
80ccbc1 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.5-13
|
|
|
80ccbc1 |
- Rebuilt for Python 3.7
|
|
|
80ccbc1 |
|
|
|
2d0deb9 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-12
|
|
|
2d0deb9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
2d0deb9 |
|
|
|
dac4c72 |
* Tue Jan 30 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.8.5-11
|
|
|
dac4c72 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
dac4c72 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
3f5f196 |
- Move python3-lxml form py2 to py3 subpkg
|
|
|
3f5f196 |
- Add python_provide to py3 subpackage
|
|
|
dac4c72 |
|
|
|
16af156 |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.8.5-10
|
|
|
16af156 |
- Python 2 binary package renamed to python2-docx
|
|
|
16af156 |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
16af156 |
|
|
|
0eb1479 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-9
|
|
|
0eb1479 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
0eb1479 |
|
|
|
d54288e |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-8
|
|
|
d54288e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
d54288e |
|
|
|
4c367b7 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.8.5-7
|
|
|
4c367b7 |
- Rebuild for Python 3.6
|
|
|
4c367b7 |
|
|
|
0499479 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-6
|
|
|
0499479 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
0499479 |
|
|
|
832bc0a |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.5-5
|
|
|
832bc0a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
832bc0a |
|
|
|
bb36a98 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-4
|
|
|
bb36a98 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
bb36a98 |
|
|
|
d101549 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-3
|
|
|
d101549 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
d101549 |
|
|
|
1d3f75f |
* Fri Mar 13 2015 Kushal Khandelwal <kushal124@gmail.com> - 0.8.5-2
|
|
|
1d3f75f |
- Fix dependency requirement.
|
|
|
1d3f75f |
|
|
|
9b59b9d |
* Mon Mar 9 2015 Kushal Khandelwal <kushal124@gmail.com> - 0.8.5-1
|
|
|
9b59b9d |
- update to 0.8.5
|
|
|
9b59b9d |
|
|
|
9b59b9d |
* Fri Feb 20 2015 Kushal Khandelwal <kushal124@gmail.com> - 0.8.2-1
|
|
|
9b59b9d |
- Initial package.
|