telegram-cli.spec 1.06 KB
Newer Older
Pablo's avatar
Pablo committed
1
Name:       	telegram-cli
2
Version:	Beta
Pablo's avatar
Pablo committed
3
Release:	2%{?dist}
4 5
Summary:	Private fast and open platform for instant messaging

Pablo's avatar
Pablo committed
6
Packager: 	Pablo Iranzo Gómez (Pablo.Iranzo@gmail.com)
7 8 9 10 11
Group:		Internet/Messaging
License:	GPL
URL:		https://github.com/vysheng/tg
Source:		master.zip

Pablo's avatar
Pablo committed
12 13
BuildRequires:	lua-devel, openssl-devel, libconfig-devel, readline-devel, wget
#Requires:	wget
14 15 16 17

%description
Telegram is an Open Source messaging platform for mobile, desktop focused on privacy.

Pablo's avatar
Pablo committed
18

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


%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
35
%{__install} -D -m0755 telegram %{buildroot}/usr/bin/telegram
36
%{__install} -D -m0644 tg-server.pub %{buildroot}/etc/telegram/server.pub
37 38 39

%files
/usr/bin/telegram
Pablo's avatar
Pablo committed
40
/etc/telegram/server.pub
41 42

%changelog
Pablo's avatar
Pablo committed
43 44
* Tue Feb 4 2014 Pablo Iranzo Gómez (Pablo.Iranzo@gmail.com)
- Add server key to /etc/telegram/
45 46
* Sat Feb 1 2014 Pablo Iranzo Gómez (Pablo.Iranzo@gmail.com)
- Initial SPEC file