# hint: sources of kfei instead of sgratzl are outdated %if 0 %global upstream kfei %global commit0 11686f8b2d9d0f3e6a48ccf8c1fa3daf7a0af62e %global date0 20161113 %else %global upstream sgratzl %endif %global _summary Bulk delete messages/files on Slack %global modname slack_cleaner %global tarstamp %{?date0:%{commit0}#/%{name}-%{commit0}:v%{version}} %global tarstamp %{?!date0:v%{version}} %?python_enable_dependency_generator Name: slack-cleaner # take version from pypi Version: 0.5.0 %if 0%{?date0} Release: 1.%{date0}git%(c=%{commit0}; echo ${c:0:7} )%{?dist} %else Release: 1%{?dist} %endif Summary: %_summary License: MIT URL: https://github.com/%{upstream}/%{name} Source0: %{url}/archive/%{tarstamp}.tar.gz#/%{name}-%{tarstamp}.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-slacker BuildRequires: python%{python3_pkgversion}-setuptools Requires: python%{python3_pkgversion}-%{modname} %description %_summary %package -n python%{python3_pkgversion}-%{modname} Summary: %_summary %{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} Requires: python%{python3_pkgversion}-slacker %description -n python%{python3_pkgversion}-%{modname} %_summary This package installs the python%{python3_pkgversion} modules. %prep # hint: maybe use commit0 instead of version %autosetup -n%{name}-%{version} %build %py3_build %install %py3_install %files %license LICENSE %doc README.md %{_bindir}/%{name} %files -n python%{python3_pkgversion}-%{modname} %license LICENSE %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}-py?.?.egg-info/ %changelog * Tue Jan 15 2019 Raphael Groner - 0.5.0-1 - switch to fork from sgratzl - use rectified summary for description - split subpackage for python modules * Fri Nov 2 2018 Raphael Groner - 0.9.65-1 - initial