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

110 lines
3.3 KiB

%define snapshot c58cfb3e
%define snapshot_date 20110811
15 years ago
Name: rtmpdump
Version: 2.4
Release: 0.3.%{snapshot_date}git%{snapshot}%{?dist}
15 years ago
Summary: Toolkit for RTMP streams
Group: Applications/Internet
License: GPLv2+
# Note that librtmp is actually LGPLv2, so if you package that separately
# (for which you'd probably want to make it a dynamic library) you should
# label its licence correctly. But the _tools_ are GPLv2.
URL: http://rtmpdump.mplayerhq.hu/
Source0: http://rtmpdump.mplayerhq.hu/download/rtmpdump-%{snapshot_date}-g%{snapshot}.tar.gz
15 years ago
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gnutls-devel zlib-devel
%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 suport 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 = %{version}-%{release}
%description -n librtmp-devel
librtmp is a suport library for RTMP streams. The librtmp-devel package
contains include files needed to develop applications using librtmp.
15 years ago
%prep
%setup -q -n rtmpdump-%{snapshot_date}-g%{snapshot}
15 years ago
%build
# The fact that we have to add -ldl for gnutls is Fedora bug #611318
make CRYPTO=GNUTLS SHARED=yes OPT="$RPM_OPT_FLAGS" LIB_GNUTLS="-lgnutls -lgcrypt -ldl"
15 years ago
%install
rm -rf $RPM_BUILD_ROOT
make CRYPTO=GNUTLS SHARED=yes DESTDIR=$RPM_BUILD_ROOT prefix=/usr mandir=%{_mandir} libdir=%{_libdir} install
rm -f $RPM_BUILD_ROOT/%{_libdir}/librtmp.a
15 years ago
%clean
rm -rf $RPM_BUILD_ROOT
%post -n librtmp -p /sbin/ldconfig
%postun -n librtmp -p /sbin/ldconfig
15 years ago
%files
%defattr(-,root,root,-)
%{_bindir}/rtmpdump
%{_sbindir}/rtmpsrv
%{_sbindir}/rtmpgw
%{_sbindir}/rtmpsuck
%{_mandir}/man1/rtmpdump.1*
%{_mandir}/man8/rtmpgw.8*
%doc COPYING README
%files -n librtmp
%defattr(-,root,root,-)
%{_libdir}/librtmp.so.0
%doc librtmp/COPYING
15 years ago
%files -n librtmp-devel
%defattr(-,root,root,-)
/usr/include/librtmp
%{_libdir}/librtmp.so
%{_libdir}/pkgconfig/librtmp.pc
%{_mandir}/man3/librtmp.3*
%doc ChangeLog
15 years ago
%changelog
* 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