|
|
7b06432 |
%global commit 252a308f2844f16f9ad77fd5a4e9da4c3f5f4c3c
|
|
|
f8531d3 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
f8531d3 |
%global srcname filelock
|
|
|
f8531d3 |
%global sum A platform independent file lock
|
|
|
f8531d3 |
|
|
|
f8531d3 |
Name: python-%{srcname}
|
|
|
7b06432 |
Version: 2.0.8
|
|
|
c01a1bb |
Release: 7%{?dist}
|
|
|
f8531d3 |
Summary: %{sum}
|
|
|
f8531d3 |
|
|
|
f8531d3 |
Group: Development/Libraries
|
|
|
f8531d3 |
License: Unlicense
|
|
|
f8531d3 |
URL: https://github.com/benediktschmitt/py-%{srcname}
|
|
|
f8531d3 |
Source0: https://github.com/benediktschmitt/py-%{srcname}/archive/%{commit}.tar.gz#/%{srcname}-%{shortcommit}.tar.gz
|
|
|
f8531d3 |
|
|
|
f8531d3 |
BuildArch: noarch
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%description
|
|
|
f8531d3 |
This package contains a single module, which implements a platform independent
|
|
|
f8531d3 |
file locking mechanism for Python.
|
|
|
f8531d3 |
|
|
|
f8531d3 |
The lock includes a lock counter and is thread safe. This means, when locking
|
|
|
f8531d3 |
the same lock object twice, it will not block.
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%package doc
|
|
|
f8531d3 |
Summary: Documentation for %{srcname}, %{sum}
|
|
|
12417af |
BuildRequires: python2-sphinx
|
|
|
12417af |
BuildRequires: python2-sphinx_rtd_theme
|
|
|
f8531d3 |
Requires: fontawesome-fonts
|
|
|
f8531d3 |
Requires: google-roboto-slab-fonts
|
|
|
f8531d3 |
Requires: lato-fonts
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%description doc
|
|
|
f8531d3 |
Documentation for %{srcname}, %{sum}
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%package -n python2-%{srcname}
|
|
|
f8531d3 |
Summary: %{sum}
|
|
|
f8531d3 |
BuildRequires: python2-devel
|
|
|
f8531d3 |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
f8531d3 |
Recommends: %{name}-doc
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%description -n python2-%{srcname}
|
|
|
f8531d3 |
This package contains a single module, which implements a platform independent
|
|
|
f8531d3 |
file locking mechanism for Python.
|
|
|
f8531d3 |
|
|
|
f8531d3 |
The lock includes a lock counter and is thread safe. This means, when locking
|
|
|
f8531d3 |
the same lock object twice, it will not block.
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%package -n python3-%{srcname}
|
|
|
f8531d3 |
Summary: %{sum}
|
|
|
f8531d3 |
BuildRequires: python3-devel
|
|
|
f8531d3 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
f8531d3 |
Recommends: %{name}-doc
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%description -n python3-%{srcname}
|
|
|
f8531d3 |
This package contains a single module, which implements a platform independent
|
|
|
f8531d3 |
file locking mechanism for Python.
|
|
|
f8531d3 |
|
|
|
f8531d3 |
The lock includes a lock counter and is thread safe. This means, when locking
|
|
|
f8531d3 |
the same lock object twice, it will not block.
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%prep
|
|
|
f8531d3 |
%autosetup -n py-%{srcname}-%{commit}
|
|
|
f8531d3 |
|
|
|
f8531d3 |
sed -i '1{\@^#!/usr/bin/python@d}' %{srcname}.py
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%build
|
|
|
f8531d3 |
%py2_build
|
|
|
f8531d3 |
%py3_build
|
|
|
f8531d3 |
|
|
|
f8531d3 |
make -C docs html man
|
|
|
f8531d3 |
rm docs/build/html/.buildinfo
|
|
|
f8531d3 |
|
|
|
f8531d3 |
# Unbundle fonts
|
|
|
f8531d3 |
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.eot docs/build/html/_static/fonts/fontawesome-webfont.eot
|
|
|
f8531d3 |
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.svg docs/build/html/_static/fonts/fontawesome-webfont.svg
|
|
|
f8531d3 |
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.ttf docs/build/html/_static/fonts/fontawesome-webfont.ttf
|
|
|
f8531d3 |
ln -sf %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff docs/build/html/_static/fonts/fontawesome-webfont.woff
|
|
|
f8531d3 |
ln -sf %{_datadir}/fonts/google-roboto-slab/RobotoSlab-Bold.ttf docs/build/html/_static/fonts/RobotoSlab-Bold.ttf
|
|
|
f8531d3 |
ln -sf %{_datadir}/fonts/google-roboto-slab/RobotoSlab-Regular.ttf docs/build/html/_static/fonts/RobotoSlab-Regular.ttf
|
|
|
f8531d3 |
ln -sf %{_datadir}/fonts/lato/Lato-Bold.ttf docs/build/html/_static/fonts/Lato-Bold.ttf
|
|
|
f8531d3 |
ln -sf %{_datadir}/fonts/lato/Lato-Regular.ttf docs/build/html/_static/fonts/Lato-Regular.ttf
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%install
|
|
|
f8531d3 |
%py2_install
|
|
|
f8531d3 |
%py3_install
|
|
|
f8531d3 |
|
|
|
f8531d3 |
install -p -m0644 -D docs/build/man/py-%{srcname}.1 %{buildroot}%{_mandir}/man1/py-%{srcname}.1
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%check
|
|
|
f8531d3 |
%{__python2} test.py
|
|
|
f8531d3 |
%{__python3} test.py
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%files doc
|
|
|
f8531d3 |
%doc docs/build/html
|
|
|
f8531d3 |
%license LICENSE.rst
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%files -n python2-%{srcname}
|
|
|
f8531d3 |
%doc README.rst
|
|
|
f8531d3 |
%license LICENSE.rst
|
|
|
f8531d3 |
%{_mandir}/man1/py-%{srcname}.1.gz
|
|
|
f8531d3 |
%{python2_sitelib}/%{srcname}.py
|
|
|
f8531d3 |
%{python2_sitelib}/%{srcname}.py[co]
|
|
|
f8531d3 |
%{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%files -n python3-%{srcname}
|
|
|
f8531d3 |
%doc README.rst
|
|
|
f8531d3 |
%license LICENSE.rst
|
|
|
f8531d3 |
%{_mandir}/man1/py-%{srcname}.1.gz
|
|
|
f8531d3 |
%{python3_sitelib}/%{srcname}.py
|
|
|
f8531d3 |
%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info
|
|
|
f8531d3 |
%{python3_sitelib}/__pycache__/%{srcname}*.py[co]
|
|
|
f8531d3 |
|
|
|
f8531d3 |
%changelog
|
|
|
c01a1bb |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-7
|
|
|
c01a1bb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
c01a1bb |
|
|
|
861dff0 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.8-6
|
|
|
861dff0 |
- Rebuilt for Python 3.7
|
|
|
861dff0 |
|
|
|
12417af |
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0.8-5
|
|
|
12417af |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
12417af |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
12417af |
|
|
|
455d450 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-4
|
|
|
455d450 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
455d450 |
|
|
|
1ba16f2 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-3
|
|
|
1ba16f2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
1ba16f2 |
|
|
|
a3700e7 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-2
|
|
|
a3700e7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
a3700e7 |
|
|
|
7b06432 |
* Sat Feb 04 2017 Scott K Logan <logans@cottsay.net> - 2.0.8-1
|
|
|
7b06432 |
- Update to version 2.0.8
|
|
|
7b06432 |
|
|
|
90b5d2b |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.6-2
|
|
|
90b5d2b |
- Rebuild for Python 3.6
|
|
|
90b5d2b |
|
|
|
f8531d3 |
* Sun May 01 2016 Scott K Logan <logans@cottsay.net> - 2.0.6-1
|
|
|
f8531d3 |
- Initial package
|