Compare commits

...

3 Commits
epel9 ... i9ce

Author SHA1 Message Date
MSVSphere Packaging Team c1dd835341 Merge and update
1 year ago
MSVSphere Packaging Team b1c25da112 Remove unnecessary files and fix spec-file
1 year ago
Sergey Cherevko c95cdb3476
import python-filelock-3.7.1-1.el9
1 year ago

10
.gitignore vendored

@ -1,9 +1 @@
/filelock-fde6c13.tar.gz SOURCES/filelock-3.7.1.tar.gz
/filelock-252a308.tar.gz
/python-filelock-0980867.tar.gz
/python-filelock-b71c3a4.tar.gz
/py-filelock-3.0.10.tar.gz
/py-filelock-3.0.12.tar.gz
/py-filelock-3.3.1.tar.gz
/filelock-3.3.1.tar.gz
/filelock-3.7.1.tar.gz

@ -0,0 +1 @@
c68c3dd7b8d9d7f42f09d6641303034cbda764a9 SOURCES/filelock-3.7.1.tar.gz

@ -1,3 +1,132 @@
## START: Set by rpmautospec
## (rpmautospec version 0.3.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 1;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
%global srcname filelock
%if 0%{?fedora}
%bcond_without docs
%else
%bcond_with docs
%endif
%bcond_without tests
Name: python-%{srcname}
Version: 3.7.1
Release: %autorelease
Summary: A platform independent file lock
License: Unlicense
URL: https://github.com/tox-dev/py-filelock
Source0: %{pypi_source %{srcname}}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
%if %{with tests}
# We cannot install extra dependencies because there are some
# we do not have in Fedora like covdefaults in testing or furo in docs.
# Test dependencies
BuildRequires: python3-pytest
BuildRequires: python3-pytest-timeout
%endif
%if %{with docs}
# Doc dependencies
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx-autodoc-typehints
%endif
%description
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.
%package -n python%{python3_pkgversion}-%{srcname}
Summary: %{summary}
%if 0%{?fedora}
Suggests: %{name}-doc
%endif
%description -n python%{python3_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.
%if %{with docs}
%package doc
Summary: Documentation for %{srcname}, %{summary}
%description doc
%{summary}
%endif
%prep
%autosetup -n %{srcname}-%{version}
# furo theme is not available in Fedora
sed -i "/html_theme =.*/d" docs/conf.py
%generate_buildrequires
%pyproject_buildrequires -r
%build
%pyproject_wheel
%if %{with docs}
pushd docs
PYTHONPATH=../src sphinx-build ./ html --color -b html
PYTHONPATH=../src sphinx-build ./ man --color -b man
rm html/.buildinfo
popd
%endif
%install
%pyproject_install
%pyproject_save_files %{srcname}
%if %{with docs}
install -p -m0644 -D docs/man/%{srcname}.1 %{buildroot}%{_mandir}/man1/%{srcname}.1
%endif
%check
%if %{with tests}
%pytest
%else
%pyproject_check_import
%endif
%if %{with docs}
%files doc
%license LICENSE
%doc docs/html
%endif
%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files}
%license LICENSE
%doc README.md
%if %{with docs}
%{_mandir}/man1/%{srcname}.1.gz
%endif
%changelog
* Thu Aug 24 2023 Sergey Cherevko <s.cherevko@msvsphere.ru> - 3.7.1-1
- Rebuilt for MSVSphere 9.2
* Sun Aug 07 2022 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 3.7.1-1
- Update to 3.7.1 - Closes rhbz#2018436
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.3.1-4 * Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.3.1-4
- Rebuilt for Python 3.11 - Rebuilt for Python 3.11
@ -91,3 +220,4 @@ Resolves: rhbz#2008102
* Sun May 01 2016 Scott K Logan <logans@cottsay.net> - 2.0.6-1 * Sun May 01 2016 Scott K Logan <logans@cottsay.net> - 2.0.6-1
- Initial package - Initial package

@ -1,114 +0,0 @@
%global srcname filelock
%if 0%{?fedora}
%bcond_without docs
%else
%bcond_with docs
%endif
%bcond_without tests
Name: python-%{srcname}
Version: 3.7.1
Release: %autorelease
Summary: A platform independent file lock
License: Unlicense
URL: https://github.com/tox-dev/py-filelock
Source0: %{pypi_source %{srcname}}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
%if %{with tests}
# We cannot install extra dependencies because there are some
# we do not have in Fedora like covdefaults in testing or furo in docs.
# Test dependencies
BuildRequires: python3-pytest
BuildRequires: python3-pytest-timeout
%endif
%if %{with docs}
# Doc dependencies
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx-autodoc-typehints
%endif
%description
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.
%package -n python%{python3_pkgversion}-%{srcname}
Summary: %{summary}
%if 0%{?fedora}
Suggests: %{name}-doc
%endif
%description -n python%{python3_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.
%if %{with docs}
%package doc
Summary: Documentation for %{srcname}, %{summary}
%description doc
%{summary}
%endif
%prep
%autosetup -n %{srcname}-%{version}
# furo theme is not available in Fedora
sed -i "/html_theme =.*/d" docs/conf.py
%generate_buildrequires
%pyproject_buildrequires -r
%build
%pyproject_wheel
%if %{with docs}
pushd docs
PYTHONPATH=../src sphinx-build ./ html --color -b html
PYTHONPATH=../src sphinx-build ./ man --color -b man
rm html/.buildinfo
popd
%endif
%install
%pyproject_install
%pyproject_save_files %{srcname}
%if %{with docs}
install -p -m0644 -D docs/man/%{srcname}.1 %{buildroot}%{_mandir}/man1/%{srcname}.1
%endif
%check
%if %{with tests}
%pytest
%else
%pyproject_check_import
%endif
%if %{with docs}
%files doc
%license LICENSE
%doc docs/html
%endif
%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files}
%license LICENSE
%doc README.md
%if %{with docs}
%{_mandir}/man1/%{srcname}.1.gz
%endif
%changelog
%autochangelog

@ -1 +0,0 @@
SHA512 (filelock-3.7.1.tar.gz) = b5e0fb6c641fdf70c9a2579e233598df506a6db53de975029ccb904b30fb4dff4f5b39282f4d298d228a851de9f5c91fe642350fac737a616b16f67881c9ae13
Loading…
Cancel
Save