Browse Source

python-packaging-18.0-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11938 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 5 years ago
parent
commit
10f20f6a82
1 changed files with 146 additions and 0 deletions
  1. 146 0
      p/python-packaging/python-packaging-vl.spec

+ 146 - 0
p/python-packaging/python-packaging-vl.spec

@@ -0,0 +1,146 @@
+%bcond_with test
+%global pypi_name packaging
+
+#global build_wheel 1
+%global with_python3 1
+
+Name:           python-%{pypi_name}
+Version:        18.0
+Release:        1%{?dist}
+Summary:        Core utilities for Python packages
+
+License:        BSD or ASL 2.0
+URL:            https://github.com/pypa/packaging
+Vendor:         Project Vine
+Distribution:   Vine Linux
+
+Source0:        https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+
+# Dependencies with different names in Fedora and Epel7
+BuildRequires:  python-rpm-macros
+BuildRequires:  python-setuptools
+BuildRequires:  python-devel
+BuildRequires:  python-pyparsing
+BuildRequires:  python-six
+%if %{with test}
+BuildRequires:  python-pytest
+BuildRequires:  python-pretend
+%endif
+
+# Build Python 3 subpackage only for Fedora
+%if 0%{?with_python3}
+BuildRequires:  python3-rpm-macros
+BuildRequires:  python3-setuptools
+BuildRequires:  python3-devel
+BuildRequires:  python3-pyparsing
+BuildRequires:  python3-six
+%if %{with test}
+BuildRequires:  python3-pytest
+BuildRequires:  python3-pretend
+%endif
+%endif
+
+Requires:       python-pyparsing
+Requires:       python-six
+%{?python_provide:%python_provide python2-%{pypi_name}}
+
+%description
+python-packaging provides core utilities for Python packages like utilities for
+dealing with versions, specifiers, markers etc.
+
+%if 0%{?with_python3}
+%package -n python3-%{pypi_name}
+Summary:        %{summary}
+%{?python_provide:%python_provide python3-%{pypi_name}}
+ 
+Requires:       python3-pyparsing
+Requires:       python3-six
+%description -n python3-%{pypi_name}
+python3-packaging provides core utilities for Python packages like utilities for
+dealing with versions, specifiers, markers etc.
+%endif
+
+%prep
+%autosetup -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+%build
+%py_build
+
+%if 0%{?with_python3}
+%py3_build
+%endif
+
+%install
+%py_install
+
+%if 0%{?with_python3}
+%py3_install
+%endif
+
+%check
+%if %{with test}
+%{__python} -m pytest tests/
+%{__python3} -m pytest tests/
+%endif
+
+%files
+%license LICENSE LICENSE.APACHE LICENSE.BSD
+%doc README.rst CHANGELOG.rst CONTRIBUTING.rst
+%{python_sitelib}/%{pypi_name}/
+%{python_sitelib}/%{pypi_name}-*-info/
+
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%license LICENSE LICENSE.APACHE LICENSE.BSD
+%doc README.rst CHANGELOG.rst CONTRIBUTING.rst
+%{python3_sitelib}/%{pypi_name}/
+%{python3_sitelib}/%{pypi_name}-*-info/
+%endif
+
+%changelog
+* Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 18.0-1
+- new upstream release.
+- initial build for Vine Linux.
+
+* Tue Jul 31 2018 Charalampos Stratakis <cstratak@redhat.com> - 17.1-1
+- Update to 17.1
+
+* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.8-11
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 16.8-10
+- Rebuilt for Python 3.7
+
+* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 16.8-9
+- Bootstrap for Python 3.7
+
+* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 16.8-8
+- Update Python 2 dependency declarations to new packaging standards
+  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
+
+* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.8-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.8-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Wed Mar 22 2017 Lumir Balhar <lbalhar@redhat.com> - 16.8-5
+- Epel7 compatible spec/package
+
+* Mon Feb 13 2017 Charalampos Stratakis <cstratak@redhat.com> - 16.8-4
+- Rebuild as wheel
+
+* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 16.8-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 16.8-2
+- Rebuild for Python 3.6
+
+* Wed Nov 02 2016 Lumir Balhar <lbalhar@redhat.com> - 16.8-1
+- New upstream version
+
+* Fri Sep 16 2016 Lumir Balhar <lbalhar@redhat.com> - 16.7-1
+- Initial package.