Accepting request 993086 from utilities
- Do not remove egg info anymore as the pythonm3 interpreter does not work anymore without this information (boo#1202137) OBS-URL: https://build.opensuse.org/request/show/993086 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/urlscan?expand=0&rev=11
This commit is contained in:
commit
b238215ebf
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 4 13:26:52 UTC 2022 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
- Do not remove egg info anymore as the pythonm3 interpreter
|
||||||
|
does not work anymore without this information (boo#1202137)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jan 30 15:23:36 UTC 2022 - Avinesh Kumar <avinesh.kumar@suse.com>
|
Sun Jan 30 15:23:36 UTC 2022 - Avinesh Kumar <avinesh.kumar@suse.com>
|
||||||
|
|
||||||
|
22
urlscan.spec
22
urlscan.spec
@ -26,10 +26,12 @@ Group: Productivity/Networking/Web/Browsers
|
|||||||
URL: https://github.com/firecat53/urlscan
|
URL: https://github.com/firecat53/urlscan
|
||||||
Source0: https://github.com/firecat53/urlscan/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/firecat53/urlscan/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Source1: muttrc
|
Source1: muttrc
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-rpm-macros
|
BuildRequires: python3-rpm-macros
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: sed
|
||||||
Requires: python3
|
Requires: python3
|
||||||
Requires: python3-base
|
Requires: python3-base
|
||||||
Requires: python3-urwid
|
Requires: python3-urwid
|
||||||
@ -45,21 +47,31 @@ quoted-printable and base64 encoding.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python3 setup.py build
|
%python3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python3_install
|
||||||
rm -rf %{buildroot}%{_datadir}/doc/%{name}*
|
|
||||||
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
|
||||||
|
if test -e %{buildroot}%{_datadir}/doc/%{name}*
|
||||||
|
then
|
||||||
|
rm -vf %{buildroot}%{_datadir}/doc/%{name}*/COPYING
|
||||||
|
mv %{buildroot}%{_datadir}/doc/%{name}*/* \
|
||||||
|
%{buildroot}%{_defaultdocdir}/%{name}/
|
||||||
|
fi
|
||||||
|
rm -rf %{buildroot}%{_datadir}/doc/%{name}*
|
||||||
install -m 0644 %{SOURCE1} %{buildroot}%{_defaultdocdir}/%{name}
|
install -m 0644 %{SOURCE1} %{buildroot}%{_defaultdocdir}/%{name}
|
||||||
rm -rvf %{buildroot}%{python_sitelib}/%{name}-%{version}-*-info
|
chmod 755 %{buildroot}%{python_sitelib}/%{name}/__main__*
|
||||||
|
sed -ri '1 { s@(/usr/bin/)env *@\1@ }' %{buildroot}%{python_sitelib}/%{name}/__main__*
|
||||||
|
%fdupes %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{python_sitelib}/%{name}
|
%{python_sitelib}/%{name}
|
||||||
|
%{python_sitelib}/%{name}-%{version}-py*.egg-info
|
||||||
%{_mandir}/man1/%{name}.1%{?ext_man}
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
||||||
|
%dir %{_defaultdocdir}/%{name}/
|
||||||
%doc %{_defaultdocdir}/%{name}/muttrc
|
%doc %{_defaultdocdir}/%{name}/muttrc
|
||||||
%dir %{_docdir}/urlscan
|
%doc %{_defaultdocdir}/%{name}/README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user