source: projects/specs/trunk/r/rtmpdump/rtmpdump-vl.spec @ 8527

Revision 8527, 3.2 KB checked in by tomop, 10 years ago (diff)

rtmpdump-2.4.git20140606-1

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