diff --git a/python-distro.spec b/python-distro.spec index 377e600..9a8fe0c 100644 --- a/python-distro.spec +++ b/python-distro.spec @@ -1,6 +1,6 @@ Name: python-distro Version: 1.5.0 -Release: 1mamba +Release: 2mamba Summary: An OS platform information API Group: System/Libraries Vendor: openmamba @@ -10,10 +10,9 @@ URL: https://github.com/nir0s/distro Source: https://pypi.debian.net/distro/distro-%{version}.tar.gz License: Apache License 2.0 ## AUTOBUILDREQ-BEGIN -BuildRequires: libpython-devel +BuildRequires: libpython3-devel +BuildRequires: python3.7dist(setuptools) ## AUTOBUILDREQ-END -Requires: python >= %python_version -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description %{summary}. @@ -37,7 +36,7 @@ CFLAGS="%{optflags}" %{__python} setup.py build --install-lib=%{python_sitearch} \ --record=%{name}.filelist -sed -i "s,.*/man/.*,&.gz," %{name}.filelist +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist %if "%{?pyappend}" != "py3" rm -f %{buildroot}%{_bindir}/distro @@ -46,9 +45,14 @@ sed -i "/\/usr\/bin\/distro/d" %{name}.filelist %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) +%dir %{python_sitearch}/distro-%{version}-py*.egg-info +%{python_sitearch}/distro-%{version}-py*.egg-info/* %doc LICENSE %changelog +* Fri Apr 09 2021 Silvan Calarco 1.5.0-2mamba +- rebuilt with distdeps + * Sun Apr 26 2020 Automatic Build System 1.5.0-1mamba - automatic version update by autodist