You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-path/python-path.spec

186 lines
5.5 KiB

%if 0%{?fedora} || 0%{?rhel} > 7
%global with_python3 1
%endif
12 years ago
%global bname path
%bcond_without tests
12 years ago
Name: python-%{bname}
11 years ago
Version: 5.2
Release: 17%{?dist}
12 years ago
Summary: A python module wrapper for os.path
License: MIT
URL: https://pypi.python.org/pypi/path.py
Source0: https://pypi.python.org/packages/source/p/path.py/%{bname}.py-%{version}.zip
BuildArch: noarch
BuildRequires: python2-devel
%if %{with tests}
BuildRequires: pytest
%endif
%if 0%{?with_python3}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-pytest
%endif
%endif
12 years ago
%description
path.py implements a path objects as first-class entities,
allowing common operations on files to be invoked on those path objects directly.
See documentation here http://amoffat.github.io/sh/.
%package -n python2-%{bname}
Summary: Python 2 module wrapper for os.path
%{?python_provide:%python_provide python2-%{bname}}
%description -n python2-%{bname}
path.py implements a path objects as first-class entities,
12 years ago
allowing common operations on files to be invoked on those path objects directly.
See documentation here http://amoffat.github.io/sh/.
%if 0%{?with_python3}
%package -n python3-%{bname}
Summary: Python 3 module wrapper for os.path
%description -n python3-%{bname}
path.py implements a path objects as first-class entities,
allowing common operations on files to be invoked on those path objects directly.
See documentation here http://amoffat.github.io/sh/.
%endif
12 years ago
%prep
%setup -q -n %{bname}.py-%{version}
sed -i 's/\[pytest\]/\[tool:pytest\]/' setup.cfg
12 years ago
%build
%if 0%{?with_python3}
%py3_build
%endif
%py2_build
12 years ago
%if %{with tests}
11 years ago
%check
pushd build/lib
LC_ALL=C.UTF-8 py.test-2 -v
#%{__python} test_path.py
popd
11 years ago
%if 0%{?with_python3}
pushd build/lib
py.test-%{python3_version} -v
11 years ago
popd
%endif
%endif # with tests
12 years ago
%install
%if 0%{?with_python3}
%py3_install
%endif
%py2_install
12 years ago
%files -n python2-path
12 years ago
%doc CHANGES.rst README.rst
%{python2_sitelib}/path.py
%{python2_sitelib}/path.pyc
%{python2_sitelib}/path.pyo
%{python2_sitelib}/path.py-%{version}-py?.?.egg-info/
%{python2_sitelib}/test_path.py*
12 years ago
%if 0%{?with_python3}
%files -n python3-path
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/path.py
%{python3_sitelib}/path.py-%{version}-py?.?.egg-info/
%{python3_sitelib}/test_path.py
%endif
12 years ago
%changelog
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.2-15
- Drop explicit locale setting for python3, use C.UTF-8 for python2
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 5.2-13
- Rebuilt for Python 3.7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Tue Jan 16 2018 Troy Dawson <tdawson@redhat.com> - 5.2-11
- Update conditional
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Jan 02 2017 Thomas Spura <tomspur@fedoraproject.org> - 5.2-8
- rename python-* to python2-*
- expand %%files
- use py_build/install macros
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 5.2-7
- Rebuild for Python 3.6
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-6
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9 years ago
* Wed Nov 11 2015 Orion Poplawski <orion@cora.nwra.com> - 5.2-4
- Fix py.test call for python3
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-4
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
11 years ago
* Wed Sep 3 2014 Thomas Spura <tomspur@fedoraproject.org> - 5.2-2
- enable testsuite
11 years ago
* Wed Sep 3 2014 Thomas Spura <tomspur@fedoraproject.org> - 5.2-1
- update to 5.2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
* Fri Apr 04 2014 Xavier Lamien <laxathom@fedoraproject.org> - 5.1-1
- Upstream release.
- Add python3's subpackage.
* Fri Jul 26 2013 Xavier Lamien <laxathom@fedoraproject.org> - 4.3-1
- Upstream release.
12 years ago
* Wed Apr 10 2013 Xavier Lamien <laxathom@fedoraproject.org> - 3.0.1-2
- Add %%check stage.
- Update BuildRequire.
- Add missing %%docs.
* Wed Apr 10 2013 Xavier Lamien <laxathom@fedoraproject.org> - 3.0.1-1
- Initial RPM release.