Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| daa79c1098 |
@@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 11 14:01:21 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Make the libalternatives transition conditional
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 15 06:52:35 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Do not put bottle.py in /usr/bin, bsc#1245790
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 17 08:43:33 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 21 13:26:32 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
|
Mon Apr 21 13:26:32 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-bottle
|
Name: python-bottle
|
||||||
Version: 0.13.3
|
Version: 0.13.3
|
||||||
@@ -30,8 +35,13 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -60,29 +70,35 @@ This subpackage contains the PDF documentation for %{name}.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n bottle-%{version}
|
%autosetup -p1 -n bottle-%{version}
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
|
chmod 644 bottle.py
|
||||||
|
sed -i '1{ /^#!/d }' bottle.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
|
rm -rf %{buildroot}%{_bindir}/bottle.py
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%python_clone -a %{buildroot}%{_bindir}/bottle.py
|
|
||||||
%python_clone -a %{buildroot}%{_bindir}/bottle
|
%python_clone -a %{buildroot}%{_bindir}/bottle
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pyunittest -v
|
%pyunittest -v
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative bottle.py
|
||||||
|
%python_libalternatives_reset_alternative bottle
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative bottle.py bottle
|
%python_install_alternative bottle
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative bottle.py bottle
|
%python_uninstall_alternative bottle.py
|
||||||
|
%python_uninstall_alternative bottle
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%python_alternative %{_bindir}/bottle.py
|
|
||||||
%python_alternative %{_bindir}/bottle
|
%python_alternative %{_bindir}/bottle
|
||||||
%{python_sitelib}/bottle.py*
|
%{python_sitelib}/bottle.py*
|
||||||
%pycache_only %{python_sitelib}/__pycache__
|
%pycache_only %{python_sitelib}/__pycache__
|
||||||
|
|||||||
Reference in New Issue
Block a user