Compare commits

...

No commits in common. 'i10fe' and 'i9ce' have entirely different histories.
i10fe ... i9ce

2
.gitignore vendored

@ -1 +1 @@
SOURCES/sh-2.0.6.tar.gz
SOURCES/sh-1.14.2.tar.gz

@ -1 +1 @@
b4dc3d4b851451f533209c77c8fd6a304c33eb97 SOURCES/sh-2.0.6.tar.gz
4dd45f1754b3486fde50b4031f32163e26bdf931 SOURCES/sh-1.14.2.tar.gz

@ -1,43 +1,38 @@
## START: Set by rpmautospec
## (rpmautospec version 0.6.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 6;
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 sh
%global common_description %{expand:
sh is a full-fledged subprocess replacement for Python that allows you to call
any program as if it were a function. sh is not a collection of system
commands implemented in Python.}
Name: python-sh
Version: 2.0.6
Release: %autorelease
Summary: Python subprocess replacement
Name: python-%{srcname}
License: MIT
URL: https://sh.readthedocs.io/
Source: %{pypi_source sh}
Summary: Python subprocess replacement
Version: 1.14.2
Release: 5%{?dist}
URL: https://github.com/amoffat/sh
Source0: %pypi_source
BuildArch: noarch
BuildRequires: python3-devel
# Several tests run the python command.
BuildRequires: python-unversioned-command
# MiscTests.test_no_fd_leak needs lsof, but it is a "flaky test by nature", and
# sometimes fails the package build. Without lsof installed, the test is
# skipped. Let's leave it out for now.
# https://github.com/amoffat/sh/issues/600
#BuildRequires: lsof
%description %{common_description}
%package -n python3-sh
%package -n python3-%{srcname}
Summary: %{summary}
BuildRequires: python3-devel
%description -n python3-sh %{common_description}
%description -n python3-%{srcname} %{common_description}
%prep
%autosetup -p 1 -n sh-%{version}
%autosetup -n %{srcname}-%{version} -p1
%generate_buildrequires
@ -50,73 +45,20 @@ Summary: %{summary}
%install
%pyproject_install
%pyproject_save_files sh
%pyproject_save_files %{srcname}
%check
# The tests expect sh.py and sh_test.py to be in the same directory.
# https://github.com/amoffat/sh/blob/2.0.6/tests/Dockerfile#L47
# https://github.com/amoffat/sh/blob/2.0.6/tox.ini#L14
mv tests/sh_test.py .
# https://github.com/amoffat/sh/commit/bfb2bc97635f694de3e5234dcec08d604f0d880f
export SH_TESTS_RUNNING=1
%{python3} sh.py travis
# Normally we should run the tests with %%{py3_test_envvars}, but some tests
# fail if we modify PYTHONPATH.
# https://github.com/amoffat/sh/issues/692
# Run tests with both poll and select.
# https://github.com/amoffat/sh/commit/e8737f82585bc39a3bc079c5fa7054c973148e3d
SH_TESTS_USE_SELECT=0 %{python3} sh_test.py
SH_TESTS_USE_SELECT=1 %{python3} sh_test.py
%files -n python3-sh -f %{pyproject_files}
%license LICENSE.txt
%doc README.rst CHANGELOG.md MIGRATION.md
%files -n python3-%{srcname} -f %{pyproject_files}
%doc CHANGELOG.md README.rst
%changelog
* Thu Dec 26 2024 Dmitriy Samoylik <samoylikdv@msvsphere-os.ru> - 2.0.6-6
- Rebuilt for MSVSphere 10
## START: Generated by rpmautospec
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 2.0.6-5
- Rebuilt for Python 3.13
* Mon Jan 29 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Aug 10 2023 Carl George <carlwgeorge@fedoraproject.org> - 2.0.6-1
- Update to version 2.0.6, resolves rhbz#2169128
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.14.3-3
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sun Sep 18 2022 Kevin Fenzi <kevin@scrye.com> - 1.14.3-1
- Update to 1.14.3. Fixes rhbz#2108380
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.14.2-6
- Rebuilt for Python 3.11
* Sun Jul 28 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 1.14.2-5
- Rebuilt for MSVSphere 9.4
* Sat Mar 19 2022 Carl George <carl@george.computer> - 1.14.2-5
- Convert to pyproject macros
@ -270,5 +212,3 @@ SH_TESTS_USE_SELECT=1 %{python3} sh_test.py
* Thu Mar 22 2012 Andy Grover <agrover@redhat.com> - 0.95-2
- Initial packaging
## END: Generated by rpmautospec

Loading…
Cancel
Save