Accepting request 1092574 from home:dimstar:Factory
Some minor cleanup Requires: must never reference python_module (in python single-spec, this translates to ALL python versions) python_expand can take more than one command OBS-URL: https://build.opensuse.org/request/show/1092574 OBS-URL: https://build.opensuse.org/package/show/utilities/urlscan?expand=0&rev=31
This commit is contained in:
parent
0c8ab2b901
commit
1d62a4bc96
13
urlscan.spec
13
urlscan.spec
@ -36,8 +36,8 @@ BuildRequires: python3-pip
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: sed
|
||||
Requires: %{python_module base}
|
||||
Requires: %{python_module urwid >= 1.2.1}
|
||||
Requires: python3-base}
|
||||
Requires: python3-urwid >= 1.2.1}
|
||||
BuildArch: noarch
|
||||
%global myname %name
|
||||
|
||||
@ -58,10 +58,11 @@ export SETUPTOOLS_SCM_PRETEND_VERSION
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand mkdir -p %{buildroot}%{_defaultdocdir}/%{$python_prefix}-%{myname}
|
||||
%python_expand chmod 755 %{buildroot}%{$python_sitelib}/%{name}/__main__*
|
||||
%python_expand sed -ri '1 { s@(/usr/bin/)env +@\1@ }' %{buildroot}%{$python_sitelib}/%{name}/__main__*
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%{python_expand mkdir -p %{buildroot}%{_defaultdocdir}/%{$python_prefix}-%{myname}
|
||||
chmod 755 %{buildroot}%{$python_sitelib}/%{name}/__main__*
|
||||
sed -ri '1 { s@(/usr/bin/)env +@\1@ }' %{buildroot}%{$python_sitelib}/%{name}/__main__*
|
||||
%fdupes %{buildroot}%{$python_sitelib}
|
||||
}
|
||||
sed -ri '1 { s@(/usr/bin/)env +@\1@;s@(/python3)\.[[:digit:]]+@\1@ }' %{buildroot}%{_bindir}/%{name}
|
||||
if test -e %{buildroot}%{_datadir}/doc/%{myname}*
|
||||
then
|
||||
|
Loading…
x
Reference in New Issue
Block a user