1 | %define srcver 2.4 |
---|
2 | %define gitdate 20140606 |
---|
3 | |
---|
4 | Name: rtmpdump |
---|
5 | Version: %{srcver}.git%{gitdate} |
---|
6 | Release: 4%{?_dist_release} |
---|
7 | Summary: Toolkit for RTMP streams |
---|
8 | Summary(ja): RTMP ストリーム用のツール集 |
---|
9 | |
---|
10 | Group: Applications/Internet |
---|
11 | License: GPLv2+ |
---|
12 | # Note that librtmp is actually LGPLv2, so if you package that separately |
---|
13 | # (for which you'd probably want to make it a dynamic library) you should |
---|
14 | # label its licence correctly. But the _tools_ are GPLv2. |
---|
15 | URL: http://rtmpdump.mplayerhq.hu/ |
---|
16 | Source0: rtmpdump-%{srcver}-git%{gitdate}.tar.xz |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | |
---|
19 | BuildRequires: gmp-devel gnutls-devel zlib-devel |
---|
20 | |
---|
21 | %description |
---|
22 | rtmpdump is a toolkit for RTMP streams. All forms of RTMP are supported, |
---|
23 | including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://. |
---|
24 | |
---|
25 | %package -n librtmp |
---|
26 | Summary: Support library for RTMP streams |
---|
27 | Summary(ja): RTMP ストリーム用のサポートライブラリ |
---|
28 | Group: System Environment/Libraries |
---|
29 | License: LGPLv2+ |
---|
30 | |
---|
31 | %description -n librtmp |
---|
32 | librtmp is a suport library for RTMP streams. All forms of RTMP are supported, |
---|
33 | including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://. |
---|
34 | |
---|
35 | %package -n librtmp-devel |
---|
36 | Summary: Files for librtmp development |
---|
37 | Summary(ja): librtmp の開発用ファイル |
---|
38 | Group: Development/Libraries |
---|
39 | License: LGPLv2+ |
---|
40 | Requires: librtmp = %{version}-%{release} |
---|
41 | Requires: gmp-devel |
---|
42 | |
---|
43 | %description -n librtmp-devel |
---|
44 | librtmp is a suport library for RTMP streams. The librtmp-devel package |
---|
45 | contains include files needed to develop applications using librtmp. |
---|
46 | |
---|
47 | %prep |
---|
48 | %setup -q -c -n rtmpdump |
---|
49 | |
---|
50 | %build |
---|
51 | # The fact that we have to add -ldl for gnutls is Fedora bug #611318 |
---|
52 | %__make CRYPTO=GNUTLS SHARED=yes OPT="$RPM_OPT_FLAGS" LIB_GNUTLS="-lgnutls -lgcrypt -ldl" LIBRTMP=librtmp/librtmp.so |
---|
53 | |
---|
54 | |
---|
55 | %install |
---|
56 | %__rm -rf $RPM_BUILD_ROOT |
---|
57 | %__make CRYPTO=GNUTLS SHARED=yes DESTDIR=$RPM_BUILD_ROOT prefix=/usr mandir=%{_mandir} libdir=%{_libdir} install |
---|
58 | |
---|
59 | %__rm -f $RPM_BUILD_ROOT/%{_libdir}/librtmp.a |
---|
60 | |
---|
61 | |
---|
62 | %clean |
---|
63 | %__rm -rf $RPM_BUILD_ROOT |
---|
64 | |
---|
65 | %post -n librtmp -p /sbin/ldconfig |
---|
66 | |
---|
67 | %postun -n librtmp -p /sbin/ldconfig |
---|
68 | |
---|
69 | %files |
---|
70 | %defattr(-,root,root,-) |
---|
71 | %{_bindir}/rtmpdump |
---|
72 | %{_sbindir}/rtmpsrv |
---|
73 | %{_sbindir}/rtmpgw |
---|
74 | %{_sbindir}/rtmpsuck |
---|
75 | %{_mandir}/man1/rtmpdump.1* |
---|
76 | %{_mandir}/man8/rtmpgw.8* |
---|
77 | %doc COPYING README |
---|
78 | |
---|
79 | %files -n librtmp |
---|
80 | %defattr(-,root,root,-) |
---|
81 | %{_libdir}/librtmp.so.* |
---|
82 | %doc librtmp/COPYING |
---|
83 | |
---|
84 | %files -n librtmp-devel |
---|
85 | %defattr(-,root,root,-) |
---|
86 | %{_includedir}/librtmp |
---|
87 | %{_libdir}/librtmp.so |
---|
88 | %{_libdir}/pkgconfig/librtmp.pc |
---|
89 | %{_mandir}/man3/librtmp.3* |
---|
90 | %doc ChangeLog |
---|
91 | |
---|
92 | |
---|
93 | %changelog |
---|
94 | * Wed Dec 30 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.git20140606-4 |
---|
95 | - rebuilt with gnutls-3.4. |
---|
96 | |
---|
97 | * Mon Oct 27 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.4.git20140606-3 |
---|
98 | - added Japanese summary |
---|
99 | - moved librtmp to System Environment/Libraries Group |
---|
100 | - moved librtmp-devel to Development/Libraries Group |
---|
101 | |
---|
102 | * Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.git20140606-2 |
---|
103 | - add Requires: gmp-devel to librtmp-devel |
---|
104 | |
---|
105 | * Thu Jun 5 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.git20140606-1 |
---|
106 | - updated sources to git master. |
---|
107 | |
---|
108 | * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.3-1 |
---|
109 | - initial build for VineSeed based on RPM Fusion development |
---|
110 | |
---|
111 | * Sun Jul 04 2010 Dominik Mierzejewski <rpm@greysector.net> 2.3-2 |
---|
112 | - call ldconfig in post(un) scripts for the shared library |
---|
113 | - add strict dependency on the library to -devel |
---|
114 | |
---|
115 | * Sun Jul 04 2010 David Woodhouse <dwmw2@infradead.org> 2.3-1 |
---|
116 | - Update to 2.3; build shared library |
---|
117 | |
---|
118 | * Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.2e-1 |
---|
119 | - new upstream release |
---|
120 | |
---|
121 | * Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.2d-1 |
---|
122 | - built based on RPM Fusion |
---|
123 | |
---|
124 | * Fri Apr 30 2010 David Woodhouse <dwmw2@infradead.org> 2.2d-1 |
---|
125 | - Update to 2.2d |
---|
126 | |
---|
127 | * Tue Apr 20 2010 David Woodhouse <dwmw2@infradead.org> 2.2c-2 |
---|
128 | - Link with libgcrypt explicitly since we call it directly |
---|
129 | |
---|
130 | * Mon Apr 19 2010 David Woodhouse <dwmw2@infradead.org> 2.2c-1 |
---|
131 | - Initial package |
---|