1 | Name: rtmpdump |
---|
2 | Version: 2.3 |
---|
3 | Release: 1%{?_dist_release} |
---|
4 | Summary: Toolkit for RTMP streams |
---|
5 | |
---|
6 | Group: Applications/Internet |
---|
7 | License: GPLv2+ |
---|
8 | # Note that librtmp is actually LGPLv2, so if you package that separately |
---|
9 | # (for which you'd probably want to make it a dynamic library) you should |
---|
10 | # label its licence correctly. But the _tools_ are GPLv2. |
---|
11 | URL: http://rtmpdump.mplayerhq.hu/ |
---|
12 | Source0: http://rtmpdump.mplayerhq.hu/download/rtmpdump-%{version}.tgz |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | |
---|
15 | BuildRequires: gnutls-devel zlib-devel |
---|
16 | |
---|
17 | %description |
---|
18 | rtmpdump is a toolkit for RTMP streams. All forms of RTMP are supported, |
---|
19 | including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://. |
---|
20 | |
---|
21 | %package -n librtmp |
---|
22 | Summary: Support library for RTMP streams |
---|
23 | Group: Applications/Internet |
---|
24 | License: LGPLv2+ |
---|
25 | |
---|
26 | %description -n librtmp |
---|
27 | librtmp is a suport library for RTMP streams. All forms of RTMP are supported, |
---|
28 | including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://. |
---|
29 | |
---|
30 | %package -n librtmp-devel |
---|
31 | Summary: Files for librtmp development |
---|
32 | Group: Applications/Internet |
---|
33 | License: LGPLv2+ |
---|
34 | Requires: librtmp = %{version}-%{release} |
---|
35 | |
---|
36 | %description -n librtmp-devel |
---|
37 | librtmp is a suport library for RTMP streams. The librtmp-devel package |
---|
38 | contains include files needed to develop applications using librtmp. |
---|
39 | |
---|
40 | %prep |
---|
41 | %setup -q |
---|
42 | |
---|
43 | %build |
---|
44 | # The fact that we have to add -ldl for gnutls is Fedora bug #611318 |
---|
45 | %__make CRYPTO=GNUTLS SHARED=yes OPT="$RPM_OPT_FLAGS" LIB_GNUTLS="-lgnutls -lgcrypt -ldl" LIBRTMP=librtmp/librtmp.so LIBS= |
---|
46 | |
---|
47 | |
---|
48 | %install |
---|
49 | %__rm -rf $RPM_BUILD_ROOT |
---|
50 | %__make CRYPTO=GNUTLS SHARED=yes DESTDIR=$RPM_BUILD_ROOT prefix=/usr mandir=%{_mandir} libdir=%{_libdir} install |
---|
51 | |
---|
52 | %__rm -f $RPM_BUILD_ROOT/%{_libdir}/librtmp.a |
---|
53 | |
---|
54 | |
---|
55 | %clean |
---|
56 | %__rm -rf $RPM_BUILD_ROOT |
---|
57 | |
---|
58 | %post -n librtmp -p /sbin/ldconfig |
---|
59 | |
---|
60 | %postun -n librtmp -p /sbin/ldconfig |
---|
61 | |
---|
62 | %files |
---|
63 | %defattr(-,root,root,-) |
---|
64 | %{_bindir}/rtmpdump |
---|
65 | %{_sbindir}/rtmpsrv |
---|
66 | %{_sbindir}/rtmpgw |
---|
67 | %{_sbindir}/rtmpsuck |
---|
68 | %{_mandir}/man1/rtmpdump.1* |
---|
69 | %{_mandir}/man8/rtmpgw.8* |
---|
70 | %doc COPYING README |
---|
71 | |
---|
72 | %files -n librtmp |
---|
73 | %defattr(-,root,root,-) |
---|
74 | %{_libdir}/librtmp.so.0 |
---|
75 | %doc librtmp/COPYING |
---|
76 | |
---|
77 | %files -n librtmp-devel |
---|
78 | %defattr(-,root,root,-) |
---|
79 | %{_includedir}/librtmp |
---|
80 | %{_libdir}/librtmp.so |
---|
81 | %{_libdir}/pkgconfig/librtmp.pc |
---|
82 | %{_mandir}/man3/librtmp.3* |
---|
83 | %doc ChangeLog |
---|
84 | |
---|
85 | |
---|
86 | %changelog |
---|
87 | * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.3-1 |
---|
88 | - initial build for VineSeed based on RPM Fusion development |
---|
89 | |
---|
90 | * Sun Jul 04 2010 Dominik Mierzejewski <rpm@greysector.net> 2.3-2 |
---|
91 | - call ldconfig in post(un) scripts for the shared library |
---|
92 | - add strict dependency on the library to -devel |
---|
93 | |
---|
94 | * Sun Jul 04 2010 David Woodhouse <dwmw2@infradead.org> 2.3-1 |
---|
95 | - Update to 2.3; build shared library |
---|
96 | |
---|
97 | * Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.2e-1 |
---|
98 | - new upstream release |
---|
99 | |
---|
100 | * Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.2d-1 |
---|
101 | - built based on RPM Fusion |
---|
102 | |
---|
103 | * Fri Apr 30 2010 David Woodhouse <dwmw2@infradead.org> 2.2d-1 |
---|
104 | - Update to 2.2d |
---|
105 | |
---|
106 | * Tue Apr 20 2010 David Woodhouse <dwmw2@infradead.org> 2.2c-2 |
---|
107 | - Link with libgcrypt explicitly since we call it directly |
---|
108 | |
---|
109 | * Mon Apr 19 2010 David Woodhouse <dwmw2@infradead.org> 2.2c-1 |
---|
110 | - Initial package |
---|