forked from vysheng/tg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
telegram-cli.spec
54 lines (46 loc) · 1.59 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
47
48
49
50
51
52
53
54
Name: telegram-cli
Version: 0.1
Release: 3%{?dist}
Summary: Private fast and open platform for instant messaging
Packager: Pablo Iranzo Gómez ([email protected])
Group: Internet/Messaging
License: GPL-2.0
URL: https://github.com/koter84/tg
Source: https://github.com/koter84/tg/archive/master.tar.gz
BuildRequires: lua-devel, openssl-devel, libconfig-devel, readline-devel
%description
Telegram is an Open Source messaging platform for mobile, desktop focused on privacy.
%prep
[ -f %{sources} ] || wget -O %{sources} https://github.com/koter84/tg/archive/master.tar.gz
[ -d %{name} ] && rm -Rfv %{name}
mkdir %{name}
cd %{name}
tar -zxvf %{sources}
cd tg-master
./configure
%build
cd %{name}
cd tg-master
%{__make} %{?_smp_mflags}
%install
cd %{name}
cd tg-master
%{__install} -D -m0755 telegram %{buildroot}%{_bindir}/telegram
%{__install} -D -m0644 tg-server.pub %{buildroot}%{_sysconfdir}/telegram/server.pub
%files
%{_bindir}/telegram
%{_sysconfdir}/telegram/
%config %{_sysconfdir}/telegram/server.pub
%changelog
* Sat May 10 2014 Dennis Koot ([email protected])
- Fixed building packages on Fedora
* Sun Feb 23 2014 Pablo Iranzo Gómez ([email protected])
- Add repo definition and increase rpm spec version
* Sun Feb 16 2014 Iavael ([email protected])
- Prettified spec file
* Thu Feb 13 2014 Pablo Iranzo Gómez ([email protected])
- Adapt spec file to be more compliant with Fedora Packaging Guidelines
* 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