Avoid obsolete %%patch0 macro #1
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 18 19:32:36 UTC 2026 - Michal Suchanek <msuchanek@suse.de>
|
||||
|
||||
- Avoid obsolete %%patch0 macro
|
||||
- Drop python2 support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 29 13:37:26 UTC 2023 - Michal Suchanek <msuchanek@suse.com>
|
||||
|
||||
|
||||
28
obmenu.spec
28
obmenu.spec
@@ -16,12 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%if ! 0%{?suse_version} || 0%{?suse_version} >= 1500
|
||||
%define python python3
|
||||
%else
|
||||
%define python python
|
||||
%endif
|
||||
Name: obmenu
|
||||
Version: 1.0
|
||||
Release: 0
|
||||
@@ -42,10 +37,7 @@ Requires: typelib-1_0-Gtk-3_0
|
||||
Obmenu is a menu editor designed for openbox
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%if "%{python}" == "python3"
|
||||
%patch0 -p1
|
||||
%endif
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
@@ -54,14 +46,6 @@ export CFLAGS="%{optflags}"
|
||||
%install
|
||||
%{python} setup.py install --root %{buildroot} --prefix %{_prefix}
|
||||
|
||||
%if "%{python}" == "python3"
|
||||
%define psitelib %{python3_sitelib}
|
||||
%define pver %{python3_version}
|
||||
%else
|
||||
%define psitelib %{python_sitelib}
|
||||
%define pver %{python_version}
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc README
|
||||
@@ -70,13 +54,9 @@ export CFLAGS="%{optflags}"
|
||||
%{_bindir}/obm-nav
|
||||
%{_bindir}/obm-xdg
|
||||
%{_bindir}/obmenu
|
||||
%{psitelib}/obxml.py
|
||||
%if "%{python}" == "python3"
|
||||
%{psitelib}/__pycache__/obxml*.pyc
|
||||
%else
|
||||
%{psitelib}/obxml.pyc
|
||||
%endif
|
||||
%{psitelib}/obMenu-%{version}-py%{pver}.egg-info
|
||||
%{python3_sitelib}/obxml.py
|
||||
%{python3_sitelib}/__pycache__/obxml*.pyc
|
||||
%{python3_sitelib}/obMenu-%{version}-py%{python3_version}.egg-info
|
||||
%{_datadir}/obmenu
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user