Update to 3.0.10

epel9
Scott K Logan 6 years ago
parent a3bcda8c66
commit 65c2dd0f0b

1
.gitignore vendored

@ -2,3 +2,4 @@
/filelock-252a308.tar.gz /filelock-252a308.tar.gz
/python-filelock-0980867.tar.gz /python-filelock-0980867.tar.gz
/python-filelock-b71c3a4.tar.gz /python-filelock-b71c3a4.tar.gz
/py-filelock-3.0.10.tar.gz

@ -0,0 +1,3 @@
# KNOWN BUGS
addFilter(r'file-not-utf8 /usr/share/doc/python-filelock-doc(-[\d\.]+)?/html/objects.inv')
addFilter(r'wrong-file-end-of-line-encoding /usr/share/doc/python-filelock-doc/html/objects.inv')

@ -1,23 +1,20 @@
%{?!_without_doc:%global with_doc 1} %{?!_without_doc:%global with_doc 1}
%{?!_without_python2:%global with_python2 0%{?_with_python2:1} || (0%{?fedora} < 30 && 0%{?rhel} < 8)} %{?!_without_python2:%global with_python2 0%{?_with_python2:1} || !(0%{?fedora} >= 30 || 0%{?rhel} >= 8)}
%{?!_without_python3:%global with_python3 0%{?_with_python3:1} || !0%{?rhel} || 0%{?rhel} >= 7} %{?!_without_python3:%global with_python3 0%{?_with_python3:1} || !0%{?rhel} || 0%{?rhel} >= 7}
%{?!_without_python3_other:%global with_python3_other 0%{?_with_python3_other:1} || 0%{?rhel} == 7} %{?!_without_python3_other:%global with_python3_other 0%{?_with_python3_other:1} || 0%{?rhel} == 7}
%{?!_without_tests:%global with_tests 1} %{?!_without_tests:%global with_tests 1}
%global commit b71c3a494b1a9a84ddaa4a4d43bfd985a01e81e7
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global srcname filelock %global srcname filelock
%global sum A platform independent file lock
Name: python-%{srcname} Name: python-%{srcname}
Version: 3.0.9 Version: 3.0.10
Release: 1%{?dist} Release: 1%{?dist}
Summary: %{sum} Summary: A platform independent file lock
Group: Development/Libraries Group: Development/Libraries
License: Unlicense License: Unlicense
URL: https://github.com/benediktschmitt/py-%{srcname} URL: https://github.com/benediktschmitt/py-%{srcname}
Source0: https://github.com/benediktschmitt/py-%{srcname}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Source0: https://github.com/benediktschmitt/py-%{srcname}/archive/v%{version}/py-%{srcname}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
@ -30,23 +27,23 @@ the same lock object twice, it will not block.
%if 0%{?with_doc} %if 0%{?with_doc}
%package doc %package doc
Summary: Documentation for %{srcname}, %{sum} Summary: Documentation for %{srcname}, %{summary}
%if 0%{?rhel} && 0%{?rhel} < 8 %if !0%{?rhel} || 0%{?rhel} >= 8
BuildRequires: python2-sphinx
BuildRequires: python2-sphinx-theme-alabaster
%else # rhel
BuildRequires: python%{python3_pkgversion}-sphinx BuildRequires: python%{python3_pkgversion}-sphinx
BuildRequires: python%{python3_pkgversion}-sphinx-theme-alabaster BuildRequires: python%{python3_pkgversion}-sphinx-theme-alabaster
%else # rhel
BuildRequires: python2-sphinx
BuildRequires: python2-sphinx-theme-alabaster
%endif # rhel %endif # rhel
%description doc %description doc
Documentation for %{srcname}, %{sum} %{summary}
%endif # with_doc %endif # with_doc
%if 0%{?with_python2} %if 0%{?with_python2}
%package -n python2-%{srcname} %package -n python2-%{srcname}
Summary: %{sum} Summary: %{summary}
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python2-setuptools BuildRequires: python2-setuptools
@ -70,7 +67,7 @@ the same lock object twice, it will not block.
%if 0%{?with_python3} %if 0%{?with_python3}
%package -n python%{python3_pkgversion}-%{srcname} %package -n python%{python3_pkgversion}-%{srcname}
Summary: %{sum} Summary: %{summary}
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-setuptools
@ -92,7 +89,7 @@ the same lock object twice, it will not block.
%if 0%{?with_python3_other} %if 0%{?with_python3_other}
%package -n python%{python3_other_pkgversion}-%{srcname} %package -n python%{python3_other_pkgversion}-%{srcname}
Summary: %{sum} Summary: %{summary}
BuildRequires: python%{python3_other_pkgversion}-devel BuildRequires: python%{python3_other_pkgversion}-devel
BuildRequires: python%{python3_other_pkgversion}-setuptools BuildRequires: python%{python3_other_pkgversion}-setuptools
@ -113,9 +110,7 @@ the same lock object twice, it will not block.
%endif # with_python3_other %endif # with_python3_other
%prep %prep
%autosetup -n py-%{srcname}-%{commit} %autosetup -p1 -n py-%{srcname}-%{version}
sed -i '1{s|^#!\(/usr/bin/\(env \)\?\)\?python||}' %{srcname}.py
%build %build
%if 0%{?with_python2} %if 0%{?with_python2}
@ -169,47 +164,50 @@ install -p -m0644 -D docs/build/man/py-%{srcname}.1 %{buildroot}%{_mandir}/man1/
%if 0%{?with_doc} %if 0%{?with_doc}
%files doc %files doc
%doc docs/build/html
%license LICENSE.rst %license LICENSE.rst
%doc docs/build/html
%endif # with_doc %endif # with_doc
%if 0%{?with_python2} %if 0%{?with_python2}
%files -n python2-%{srcname} %files -n python2-%{srcname}
%doc README.rst
%license LICENSE.rst %license LICENSE.rst
%if 0%{?with_doc} %doc README.rst
%{_mandir}/man1/py-%{srcname}.1.gz
%endif # with_doc
%{python2_sitelib}/%{srcname}.py %{python2_sitelib}/%{srcname}.py
%{python2_sitelib}/%{srcname}.py[co] %{python2_sitelib}/%{srcname}.py[co]
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info %{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
%if 0%{?with_doc}
%{_mandir}/man1/py-%{srcname}.1.gz
%endif # with_doc
%endif # with_python2 %endif # with_python2
%if 0%{?with_python3} %if 0%{?with_python3}
%files -n python%{python3_pkgversion}-%{srcname} %files -n python%{python3_pkgversion}-%{srcname}
%doc README.rst
%license LICENSE.rst %license LICENSE.rst
%if 0%{?with_doc} %doc README.rst
%{_mandir}/man1/py-%{srcname}.1.gz
%endif # with_doc
%{python3_sitelib}/%{srcname}.py %{python3_sitelib}/%{srcname}.py
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/__pycache__/%{srcname}*.py[co] %{python3_sitelib}/__pycache__/%{srcname}*.py[co]
%if 0%{?with_doc}
%{_mandir}/man1/py-%{srcname}.1.gz
%endif # with_doc
%endif # with_python3 %endif # with_python3
%if 0%{?with_python3_other} %if 0%{?with_python3_other}
%files -n python%{python3_other_pkgversion}-%{srcname} %files -n python%{python3_other_pkgversion}-%{srcname}
%doc README.rst
%license LICENSE.rst %license LICENSE.rst
%if 0%{?with_doc} %doc README.rst
%{_mandir}/man1/py-%{srcname}.1.gz
%endif # with_doc
%{python3_other_sitelib}/%{srcname}.py %{python3_other_sitelib}/%{srcname}.py
%{python3_other_sitelib}/%{srcname}-%{version}-py%{python3_other_version}.egg-info %{python3_other_sitelib}/%{srcname}-%{version}-py%{python3_other_version}.egg-info
%{python3_other_sitelib}/__pycache__/%{srcname}*.py[co] %{python3_other_sitelib}/__pycache__/%{srcname}*.py[co]
%if 0%{?with_doc}
%{_mandir}/man1/py-%{srcname}.1.gz
%endif # with_doc
%endif # with_python3_other %endif # with_python3_other
%changelog %changelog
* Fri Nov 16 2018 Scott K Logan <logans@cottsay.net> - 3.0.10-1
- Update to 3.0.10
* Tue Oct 30 2018 Scott K Logan <logans@cottsay.net> - 3.0.9-1 * Tue Oct 30 2018 Scott K Logan <logans@cottsay.net> - 3.0.9-1
- Update to 3.0.9 - Update to 3.0.9
- Add spec conditionals for python version targeting (rhbz#1632320) - Add spec conditionals for python version targeting (rhbz#1632320)

@ -1 +1 @@
SHA512 (python-filelock-b71c3a4.tar.gz) = bf2c3a27488e4e0b0469599c5037658482b27eee08ef1844de5419865a67f01966b72f1f463ce7418660901c991ad06740a90f332db0b2d3d62967f0f270aba9 SHA512 (py-filelock-3.0.10.tar.gz) = 1fa4594eaba6689ea61149a60a71e86007297614a1c22dc6c94b4774520d396ff8ad03076dfdbb2ce49d2b6e42c374af065a115c167d81cf6107918abfbe52ef

Loading…
Cancel
Save