63 lines
1.7 KiB
RPMSpec
63 lines
1.7 KiB
RPMSpec
%define gittag %(echo %version | cut -d. -f3)
|
|
Name: telegram-cli
|
|
Version: 20200106
|
|
Release: 1mamba
|
|
Summary: Telegram messenger CLI
|
|
Group: Applications/Communication
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/vysheng/tg
|
|
Source: https://github.com/kenorb-contrib/tg.git/%{version}/tg-%{version}.tar.bz2
|
|
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: libz-devel
|
|
## AUTOBUILDREQ-END
|
|
|
|
%description
|
|
Telegram messenger CLI.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -n tg-%{version}
|
|
|
|
%build
|
|
%configure \
|
|
CFLAGS="%{optflags} -L%{_libdir}" \
|
|
LDFLAGS="-L%{_libdir} -Wl,--allow-multiple-definition"
|
|
|
|
%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 Mar 14 2024 Automatic Build System <autodist@openmamba.org> 20200106-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Sep 14 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1.20220726git.7f8f739-1mamba
|
|
- update to 1.3.1.20220726git.7f8f739
|
|
|
|
* Tue Oct 31 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1.20171031git-1mamba
|
|
- package created using the webbuild interface
|