#https://github.com/Runalyze/Runalyze/commit/394f2fad2a463f681d301402686c2abecc172c2f %global commit0 394f2fad2a463f681d301402686c2abecc172c2f %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global gitdate 20160618 %global rname Runalyze Name: runalyze Version: 2.4 Release: 1.%{gitdate}.git%{shortcommit}%{?dist} Summary: Training analysis for athletes # The tools are GPLv2+. The library is LGPLv2+, see below. License: GPLv2+ URL: http://runalyze.com/ #Source0: http://repo.or.cz/w/rtmpdump.git/snapshot/%{commit}.tar.gz Source0: https://github.com/Runalyze/Runalyze/archive/%{commit0}/%{rname}-%{commit0}.tar.gz#/%{rname}-%{shortcommit0}.tar.gz Requires: composer Requires: npm Requires: nodejs-grunt-cli BuildRequires: zlib-devel %description Runalyze is a web application for analyzing your training - more detailed than any other sports diary. Runalyze is mainly developed by [laufhannes](https://github.com/laufhannes) and [mipapo](https://github.com/mipapo). %prep %setup -q -n %{rname}-%{commit0} %build make SYS=posix CRYPTO=GNUTLS SHARED=yes OPT="%{optflags}" LIB_GNUTLS="-lgnutls -lgcrypt -ldl" %install make CRYPTO=GNUTLS SHARED=yes DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} libdir=%{_libdir} install rm -f %{buildroot}%{_libdir}/librtmp.a %files %doc COPYING README %{_bindir}/rtmpdump %{_sbindir}/rtmpsrv %{_sbindir}/rtmpgw %{_sbindir}/rtmpsuck %{_mandir}/man1/rtmpdump.1* %{_mandir}/man8/rtmpgw.8* %changelog * Sun Jan 5 2014 Susi Lehtola - 2.4-1.20131205.gitdc76f0a - Update to newest snapshot. - Clean up spec file. * Mon Apr 19 2010 David Woodhouse 2.2c-1 - Initial package