You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rtmpdump/rtmpdump.spec

109 lines
3.4 KiB

%global commit dc76f0a8461e6c8f1277eba58eae201b2dc1d06a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global gitdate 20131205
Name: rtmpdump
Version: 2.4
11 years ago
Release: 2.%{gitdate}.git%{shortcommit}%{?dist}
Summary: Toolkit for RTMP streams
15 years ago
Group: Applications/Internet
# The tools are GPLv2+. The library is LGPLv2+, see below.
License: GPLv2+
URL: http://rtmpdump.mplayerhq.hu/
Source0: http://repo.or.cz/w/rtmpdump.git/snapshot/%{commit}.tar.gz
15 years ago
BuildRequires: gnutls-devel
BuildRequires: libgcrypt-devel
BuildRequires: zlib-devel
BuildRequires: nettle-devel
15 years ago
%description
rtmpdump is a toolkit for RTMP streams. All forms of RTMP are supported,
including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.
%package -n librtmp
Summary: Support library for RTMP streams
Group: Applications/Internet
License: LGPLv2+
%description -n librtmp
librtmp is a support library for RTMP streams. All forms of RTMP are supported,
including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://.
%package -n librtmp-devel
Summary: Files for librtmp development
Group: Applications/Internet
License: LGPLv2+
Requires: librtmp%{?_isa} = %{version}-%{release}
%description -n librtmp-devel
librtmp is a support library for RTMP streams. The librtmp-devel package
contains include files needed to develop applications using librtmp.
15 years ago
%prep
%setup -q -n %{name}
15 years ago
%build
# The fact that we have to add -ldl for gnutls is Fedora bug #611318
make SYS=posix CRYPTO=GNUTLS SHARED=yes OPT="%{optflags}" LIB_GNUTLS="-lgnutls -lgcrypt -ldl"
15 years ago
%install
make CRYPTO=GNUTLS SHARED=yes DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} libdir=%{_libdir} install
rm -f %{buildroot}%{_libdir}/librtmp.a
15 years ago
%post -n librtmp -p /sbin/ldconfig
%postun -n librtmp -p /sbin/ldconfig
15 years ago
%files
%doc COPYING README
15 years ago
%{_bindir}/rtmpdump
%{_sbindir}/rtmpsrv
%{_sbindir}/rtmpgw
%{_sbindir}/rtmpsuck
%{_mandir}/man1/rtmpdump.1*
%{_mandir}/man8/rtmpgw.8*
%files -n librtmp
%doc librtmp/COPYING ChangeLog
%{_libdir}/librtmp.so.1
15 years ago
%files -n librtmp-devel
%{_includedir}/librtmp/
%{_libdir}/librtmp.so
%{_libdir}/pkgconfig/librtmp.pc
%{_mandir}/man3/librtmp.3*
15 years ago
%changelog
11 years ago
* Sat Apr 26 2014 Nicolas Chauvet <kwizart@gmail.com> - 2.4-2.20131205.gitdc76f0a
- Rebuilt for libgcrypt
* Sun Jan 5 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.4-1.20131205.gitdc76f0a
- Update to newest snapshot.
- Clean up spec file.
* Sun Mar 03 2013 Nicolas Chauvet <kwizart@gmail.com> - 2.4-0.3.20110811gitc58cfb3e
- Mass rebuilt for Fedora 19 Features
* Wed Jan 25 2012 Nicolas Chauvet <kwizart@gmail.com> - 2.4-0.2.20110811gitc58cfb3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Mon Aug 29 2011 David Woodhouse <dwmw2@infradead.org> 2.4-0.1.20110811gitc58cfb3e
- Update to almost-2.4 snapshot
* Sun Jul 04 2010 Dominik Mierzejewski <rpm@greysector.net> 2.3-2
- call ldconfig in post(un) scripts for the shared library
- add strict dependency on the library to -devel
* Sun Jul 04 2010 David Woodhouse <dwmw2@infradead.org> 2.3-1
- Update to 2.3; build shared library
15 years ago
* Fri Apr 30 2010 David Woodhouse <dwmw2@infradead.org> 2.2d-1
- Update to 2.2d
15 years ago
* Tue Apr 20 2010 David Woodhouse <dwmw2@infradead.org> 2.2c-2
- Link with libgcrypt explicitly since we call it directly
15 years ago
* Mon Apr 19 2010 David Woodhouse <dwmw2@infradead.org> 2.2c-1
- Initial package