forked from pool/python-bottle
- Do not put bottle.py in /usr/bin, bsc#1245790
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=65
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Tue Jun 17 08:43:33 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
@@ -61,14 +61,16 @@ 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
|
||||||
@@ -76,11 +78,11 @@ cp %{SOURCE1} .
|
|||||||
|
|
||||||
%pre
|
%pre
|
||||||
%python_libalternatives_reset_alternative bottle.py
|
%python_libalternatives_reset_alternative bottle.py
|
||||||
|
%python_libalternatives_reset_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