From f3eaa4df0923549b6e1a2a97aa87be5e29bd27b3 Mon Sep 17 00:00:00 2001 From: Pablo Date: Sat, 1 Feb 2014 16:49:35 +0100 Subject: [PATCH] Adding initial spec to build from source --- telegram.spec | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 telegram.spec diff --git a/telegram.spec b/telegram.spec new file mode 100644 index 0000000..748a562 --- /dev/null +++ b/telegram.spec @@ -0,0 +1,43 @@ +Name: Telegram +Version: Beta +Release: 1%{?dist} +Summary: Private fast and open platform for instant messaging + +Group: Internet/Messaging +License: GPL +URL: https://github.com/vysheng/tg +Source: master.zip + +BuildRequires: lua-devel, openssl-devel, libconfig-devel, readline-devel +Requires: wget + +%description +Telegram is an Open Source messaging platform for mobile, desktop focused on privacy. + +Packager: Pablo Iranzo Gómez (Pablo.Iranzo@gmail.com) + + +%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 -m0550 telegram %{buildroot}/usr/bin/telegram + +%files +/usr/bin/telegram + + +%changelog +* Sat Feb 1 2014 Pablo Iranzo Gómez (Pablo.Iranzo@gmail.com) +- Initial SPEC file +