-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
telegram-cli.spec
46 lines (35 loc) · 1.06 KB
/
telegram-cli.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Name: telegram-cli
Version: Beta
Release: 2%{?dist}
Summary: Private fast and open platform for instant messaging
Packager: Pablo Iranzo Gómez ([email protected])
Group: Internet/Messaging
License: GPL
URL: https://github.com/vysheng/tg
Source: master.zip
BuildRequires: lua-devel, openssl-devel, libconfig-devel, readline-devel, wget
#Requires: wget
%description
Telegram is an Open Source messaging platform for mobile, desktop focused on privacy.
%prep
[ -d %{name} ] && rm -Rfv %{name}
mkdir %{name}
cd %{name}
wget -O master.zip https://github.com/vysheng/tg/archive/master.zip
unzip master.zip
cd tg-master
./configure
make %{?_smp_mflags}
%install
cd %{name}
cd tg-master
%{__install} -D -m0755 telegram %{buildroot}/usr/bin/telegram
%{__install} -D -m0644 tg-server.pub %{buildroot}/etc/telegram/server.pub
%files
/usr/bin/telegram
/etc/telegram/server.pub
%changelog
* Tue Feb 4 2014 Pablo Iranzo Gómez ([email protected])
- Add server key to /etc/telegram/
* Sat Feb 1 2014 Pablo Iranzo Gómez ([email protected])
- Initial SPEC file