Update to 1.8.0.
Update spec file.
This commit is contained in:
parent
c78d8baf41
commit
c80d2e0285
@ -3,7 +3,7 @@
|
||||
%bcond_without docs
|
||||
# the testsuite is curremtly not compatible with pytest 3, see
|
||||
# https://github.com/pytest-dev/py/issues/104
|
||||
%if 0%{?fedora} >= 26 || 0%{?rhel} > 7
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
%bcond_with tests
|
||||
%else
|
||||
%bcond_without tests
|
||||
@ -18,13 +18,13 @@
|
||||
%global srcname py
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 1.7.0
|
||||
Release: 3%{?dist}
|
||||
Version: 1.8.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Library with cross-python path, ini-parsing, io, code, log facilities
|
||||
License: MIT and Public Domain
|
||||
# main package: MIT, except: doc/style.css: Public Domain
|
||||
URL: http://pylib.readthedocs.io/en/stable/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
|
||||
URL: http://py.readthedocs.io/
|
||||
Source: %{pypi_source}
|
||||
BuildArch: noarch
|
||||
|
||||
%if %{with tests}
|
||||
@ -102,50 +102,36 @@ following tools and modules:
|
||||
|
||||
|
||||
%prep
|
||||
%setup -qc -n %{srcname}-%{version}
|
||||
%autosetup -n %{srcname}-%{version}
|
||||
|
||||
# remove shebangs and fix permissions
|
||||
find %{srcname}-%{version} \
|
||||
find . \
|
||||
-type f -a \( -name '*.py' -o -name 'py.*' \) \
|
||||
-exec sed -i '1{/^#!/d}' {} \; \
|
||||
-exec chmod u=rw,go=r {} \;
|
||||
|
||||
mv %{srcname}-%{version} python2
|
||||
cp -a python2 python3
|
||||
|
||||
|
||||
%build
|
||||
%if %{with python2}
|
||||
pushd python2
|
||||
%py2_build
|
||||
popd
|
||||
%endif # with python2
|
||||
|
||||
%if %{with python3}
|
||||
pushd python3
|
||||
%py3_build
|
||||
%if %{with docs}
|
||||
make -C doc html PYTHONPATH=$(pwd)
|
||||
rm -rf doc/_build/html/.buildinfo
|
||||
%endif # with docs
|
||||
popd
|
||||
%endif # with python3
|
||||
|
||||
|
||||
%install
|
||||
%if %{with python2}
|
||||
pushd python2
|
||||
%py2_install
|
||||
# remove hidden file
|
||||
rm -rf doc/_build/html/.buildinfo
|
||||
popd
|
||||
%endif # with python2
|
||||
|
||||
%if %{with python3}
|
||||
pushd python3
|
||||
%py3_install
|
||||
# remove hidden file
|
||||
rm -rf doc/_build/html/.buildinfo
|
||||
popd
|
||||
%endif # with python3
|
||||
|
||||
|
||||
@ -154,18 +140,14 @@ popd
|
||||
# disable failing Subversion checks for now
|
||||
|
||||
%if %{with python2}
|
||||
pushd python2
|
||||
PYTHONPATH=%{buildroot}%{python2_sitelib} \
|
||||
LC_ALL=C.UTF-8 \
|
||||
py.test-%{python2_version} -r s -k"-TestWCSvnCommandPath" testing
|
||||
popd
|
||||
%endif # with python2
|
||||
|
||||
%if %{with python3}
|
||||
pushd python3
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
||||
py.test-%{python3_version} -r s -k"-TestWCSvnCommandPath" testing
|
||||
popd
|
||||
%endif # with python3
|
||||
|
||||
%endif # with tests
|
||||
@ -173,9 +155,9 @@ popd
|
||||
|
||||
%if %{with python2}
|
||||
%files -n python2-%{srcname}
|
||||
%doc python2/CHANGELOG
|
||||
%doc python2/README.rst
|
||||
%license python2/LICENSE
|
||||
%doc CHANGELOG
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python2_sitelib}/py-*.egg-info/
|
||||
%{python2_sitelib}/py/
|
||||
%endif # with python2
|
||||
@ -183,11 +165,11 @@ popd
|
||||
|
||||
%if %{with python3}
|
||||
%files -n python3-%{srcname}
|
||||
%doc python3/CHANGELOG
|
||||
%doc python3/README.rst
|
||||
%license python3/LICENSE
|
||||
%doc CHANGELOG
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%if %{with docs}
|
||||
%doc python3/doc/_build/html
|
||||
%doc doc/_build/html
|
||||
%endif # with_docs
|
||||
%{python3_sitelib}/py-*.egg-info/
|
||||
%{python3_sitelib}/py/
|
||||
@ -195,6 +177,10 @@ popd
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Apr 15 2019 Thomas Moschny <thomas.moschny@gmx.de> - 1.8.0-1
|
||||
- Update to 1.8.0.
|
||||
- Update spec file.
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (py-1.7.0.tar.gz) = c522be926c5716d866cb800eaa398a55518889da207a00575212254642eda2107e68c286e72b99cf94ecec1c8dcde1f763e2d8f296ab7e7673ae2671e70d5548
|
||||
SHA512 (py-1.8.0.tar.gz) = 37b9a66229b834a034d9ba6769a46addf098380b494c1eb863607a52d00b7ec5b9157dd7ac6ffc52535a05006648c775c78716d7f85cf44966065b225be6e95b
|
||||
|
Loading…
Reference in New Issue
Block a user