60 lines
1.5 KiB
RPMSpec
60 lines
1.5 KiB
RPMSpec
|
Name: telegram-cli
|
||
|
Version: 1.3.1.20171031git
|
||
|
Release: 1mamba
|
||
|
Summary: Telegram messenger CLI
|
||
|
Group: Applications/Communications
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://github.com/vysheng/tg
|
||
|
## GITSOURCE https://github.com/vysheng/tg.git master
|
||
|
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
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%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
|
||
|
* Tue Oct 31 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1.20171031git-1mamba
|
||
|
- package created using the webbuild interface
|