|
|
@ -1,14 +1,11 @@
|
|
|
|
%{?!_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_tests:%global with_tests 1}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global srcname filelock
|
|
|
|
%global srcname filelock
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
Name: python-%{srcname}
|
|
|
|
Version: 3.0.10
|
|
|
|
Version: 3.0.12
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: A platform independent file lock
|
|
|
|
Summary: A platform independent file lock
|
|
|
|
|
|
|
|
|
|
|
|
License: Unlicense
|
|
|
|
License: Unlicense
|
|
|
@ -24,37 +21,26 @@ file locking mechanism for Python.
|
|
|
|
The lock includes a lock counter and is thread safe. This means, when locking
|
|
|
|
The lock includes a lock counter and is thread safe. This means, when locking
|
|
|
|
the same lock object twice, it will not block.
|
|
|
|
the same lock object twice, it will not block.
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_doc}
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{srcname}, %{summary}
|
|
|
|
Summary: Documentation for %{srcname}, %{summary}
|
|
|
|
|
|
|
|
|
|
|
|
%if !0%{?rhel} || 0%{?rhel} >= 8
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
%description doc
|
|
|
|
%{summary}
|
|
|
|
%{summary}
|
|
|
|
%endif # with_doc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
%package -n python2-%{srcname}
|
|
|
|
%package -n python2-%{srcname}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
|
|
|
|
|
%if 0%{?with_doc}
|
|
|
|
|
|
|
|
Recommends: %{name}-doc
|
|
|
|
Recommends: %{name}-doc
|
|
|
|
%endif # with_doc
|
|
|
|
%endif # with_doc
|
|
|
|
%else # fedora
|
|
|
|
|
|
|
|
Provides: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%endif # fedora
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{srcname}
|
|
|
|
%description -n python2-%{srcname}
|
|
|
|
This package contains a single module, which implements a platform independent
|
|
|
|
This package contains a single module, which implements a platform independent
|
|
|
@ -64,18 +50,16 @@ The lock includes a lock counter and is thread safe. This means, when locking
|
|
|
|
the same lock object twice, it will not block.
|
|
|
|
the same lock object twice, it will not block.
|
|
|
|
%endif # with_python2
|
|
|
|
%endif # with_python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
%package -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
|
|
|
|
|
%if 0%{?with_doc}
|
|
|
|
|
|
|
|
Recommends: %{name}-doc
|
|
|
|
Recommends: %{name}-doc
|
|
|
|
%endif # with_doc
|
|
|
|
|
|
|
|
%endif # fedora
|
|
|
|
%endif # fedora
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
%description -n python%{python3_pkgversion}-%{srcname}
|
|
|
@ -86,31 +70,11 @@ The lock includes a lock counter and is thread safe. This means, when locking
|
|
|
|
the same lock object twice, it will not block.
|
|
|
|
the same lock object twice, it will not block.
|
|
|
|
%endif # with_python3
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3_other}
|
|
|
|
|
|
|
|
%package -n python%{python3_other_pkgversion}-%{srcname}
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_other_pkgversion}-devel
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_other_pkgversion}-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{srcname}}
|
|
|
|
|
|
|
|
%if 0%{?with_doc}
|
|
|
|
|
|
|
|
Recommends: %{name}-doc
|
|
|
|
|
|
|
|
%endif # with_doc
|
|
|
|
|
|
|
|
%endif # fedora
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_other_pkgversion}-%{srcname}
|
|
|
|
|
|
|
|
This package contains a single module, which implements a platform independent
|
|
|
|
|
|
|
|
file locking mechanism for Python.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The lock includes a lock counter and is thread safe. This means, when locking
|
|
|
|
|
|
|
|
the same lock object twice, it will not block.
|
|
|
|
|
|
|
|
%endif # with_python3_other
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n py-%{srcname}-%{version}
|
|
|
|
%autosetup -p1 -n py-%{srcname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
%py2_build
|
|
|
|
%py2_build
|
|
|
@ -120,14 +84,9 @@ the same lock object twice, it will not block.
|
|
|
|
%py3_build
|
|
|
|
%py3_build
|
|
|
|
%endif # with_python3
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3_other}
|
|
|
|
make -C docs html man SPHINXBUILD=sphinx-build-%{python3_version}
|
|
|
|
%py3_other_build
|
|
|
|
|
|
|
|
%endif # with_python3_other
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_doc}
|
|
|
|
|
|
|
|
make -C docs html man
|
|
|
|
|
|
|
|
rm docs/build/html/.buildinfo
|
|
|
|
rm docs/build/html/.buildinfo
|
|
|
|
%endif # with_doc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
%if 0%{?with_python2}
|
|
|
@ -138,15 +97,9 @@ rm docs/build/html/.buildinfo
|
|
|
|
%py3_install
|
|
|
|
%py3_install
|
|
|
|
%endif # with_python3
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3_other}
|
|
|
|
|
|
|
|
%py3_other_install
|
|
|
|
|
|
|
|
%endif # with_python3_other
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_doc}
|
|
|
|
|
|
|
|
install -p -m0644 -D docs/build/man/py-%{srcname}.1 %{buildroot}%{_mandir}/man1/py-%{srcname}.1
|
|
|
|
install -p -m0644 -D docs/build/man/py-%{srcname}.1 %{buildroot}%{_mandir}/man1/py-%{srcname}.1
|
|
|
|
%endif # with_doc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_tests}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
%{__python2} test.py
|
|
|
|
%{__python2} test.py
|
|
|
@ -156,54 +109,37 @@ install -p -m0644 -D docs/build/man/py-%{srcname}.1 %{buildroot}%{_mandir}/man1/
|
|
|
|
%{__python3} test.py
|
|
|
|
%{__python3} test.py
|
|
|
|
%endif # with_python3
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3_other}
|
|
|
|
|
|
|
|
%{__python3_other} test.py
|
|
|
|
|
|
|
|
%endif # with_python3_other
|
|
|
|
|
|
|
|
%endif # with_tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_doc}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%license LICENSE.rst
|
|
|
|
%license LICENSE
|
|
|
|
%doc docs/build/html
|
|
|
|
%doc docs/build/html
|
|
|
|
%endif # with_doc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
%files -n python2-%{srcname}
|
|
|
|
%files -n python2-%{srcname}
|
|
|
|
%license LICENSE.rst
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.md
|
|
|
|
%{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
|
|
|
|
%{_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}
|
|
|
|
%license LICENSE.rst
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.md
|
|
|
|
%{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
|
|
|
|
%{_mandir}/man1/py-%{srcname}.1.gz
|
|
|
|
%endif # with_doc
|
|
|
|
|
|
|
|
%endif # with_python3
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3_other}
|
|
|
|
|
|
|
|
%files -n python%{python3_other_pkgversion}-%{srcname}
|
|
|
|
|
|
|
|
%license LICENSE.rst
|
|
|
|
|
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
%{python3_other_sitelib}/%{srcname}.py
|
|
|
|
|
|
|
|
%{python3_other_sitelib}/%{srcname}-%{version}-py%{python3_other_version}.egg-info
|
|
|
|
|
|
|
|
%{python3_other_sitelib}/__pycache__/%{srcname}*.py[co]
|
|
|
|
|
|
|
|
%if 0%{?with_doc}
|
|
|
|
|
|
|
|
%{_mandir}/man1/py-%{srcname}.1.gz
|
|
|
|
|
|
|
|
%endif # with_doc
|
|
|
|
|
|
|
|
%endif # with_python3_other
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun May 19 2019 Scott K Logan <logans@cottsay.net> - 3.0.12-1
|
|
|
|
|
|
|
|
- Update to 3.0.12 (rhbz#1711583)
|
|
|
|
|
|
|
|
- Switch to Python 3 sphinx
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.10-2
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.10-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|