Blob Blame Raw
%global pkgname Flask-XML-RPC
%global modname Flask_XML_RPC

Name:               python-flask-xml-rpc
Version:            0.1.2
Release:            15%{?dist}
Summary:            Adds support for creating XML-RPC APIs to Flask

License:            MIT
URL:                http://pypi.python.org/pypi/Flask-XML-RPC
Source0:            http://pypi.python.org/packages/source/F/%{pkgname}/%{pkgname}-%{version}.tar.gz
Patch1:             https://bitbucket.org/ppjet6/flask-xml-rpc/commits/9da0e2bcfe5e32a1db95b639f41f67d3e1a43b80/raw/#/python3-compat.patch

BuildArch:          noarch

BuildRequires:      python3-devel
BuildRequires:      python3-setuptools
BuildRequires:      python3-flask
BuildRequires:      python3-nose

%global _description \
Flask-XML-RPC adds XML-RPC support to Flask.                            \
This way, you can provide simple APIs easily accessible from almost any \
programming language.                                                   \
                                                                        \
documentation:                                                          \
  http://packages.python.org/Flask-XML-RPC                              \
development version:                                                    \
  http://bitbucket.org/leafstorm/flask-xml-rpc/get/tip.gz#egg=Flask-XML-RPC-dev

%description %_description

%package -n python3-flask-xml-rpc
Summary:            %{summary}
Requires:           python3-flask
%{?python_provide:%python_provide python3-flask-xml-rpc}

%description -n python3-flask-xml-rpc %_description

%prep
%autosetup -n %{pkgname}-%{version} -p1

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test

%files -n python3-flask-xml-rpc
%doc README
%{python3_sitelib}/flaskext/
%{python3_sitelib}/%{modname}-%{version}*

%changelog
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Mon Jan 28 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-14
- Subpackage python2-flask-xml-rpc has been removed
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal

* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-12
- Rebuilt for Python 3.7

* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Thu Jan 18 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.1.2-10
- Update Python 2 dependency declarations to new packaging standards
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-7
- Rebuild for Python 3.6

* Tue Aug  9 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.1.2-6
- Add python3 subpackage

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Thu Aug 21 2014 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.2-2
- Include %%{python2_sitelib}/flaskext/ in the file list
- Rename the spec file to all lower case
- Add comment about the missing LICENSE file

* Tue Aug 19 2014 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.2-1
- initial package for Fedora