%define gittag %(echo %version | cut -d. -f3) Name: telegram-cli Version: 1.3.1.20220726git.7f8f739 Release: 1mamba Summary: Telegram messenger CLI Group: Applications/Communication Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/vysheng/tg Source: https://github.com/kenorb-contrib/tg.git/master@%{gittag}/tg-%{version}.tar.bz2 #Source: https://github.com/vysheng/tg.git/master/tg-%{version}.tar.bz2 Patch0: telegram-cli-1.3.1.20171031git-fixes.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libconfig-devel BuildRequires: libevent-devel BuildRequires: libjansson-devel BuildRequires: liblua-devel BuildRequires: libopenssl-devel BuildRequires: libreadline-devel BuildRequires: libtermcap-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END %description Telegram messenger CLI. %debug_package %prep %setup -q -n tg-%{version} #%patch0 -p1 %build %configure \ LDFLAGS="-ltermcap" %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -D -m0644 tg-server.pub %{buildroot}%{_sysconfdir}/telegram-cli/server.pub install -D -m0755 bin/telegram-cli %{buildroot}%{_bindir}/telegram-cli %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_sysconfdir}/telegram-cli/server.pub %{_bindir}/telegram-cli %doc LICENSE %changelog * Thu Sep 14 2023 Silvan Calarco 1.3.1.20220726git.7f8f739-1mamba - update to 1.3.1.20220726git.7f8f739 * Tue Oct 31 2017 Silvan Calarco 1.3.1.20171031git-1mamba - package created using the webbuild interface