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

Revision 8607, 3.4 KB checked in by Takemikaduchi, 10 years ago (diff)

NEW: eudev
rtmpdump: add R: gmp-devel
gpac: remove Requires
others: rebuild with eudev

Line 
1%define srcver 2.4
2%define gitdate 20140606
3
4Name:           rtmpdump
5Version:        %{srcver}.git%{gitdate}
6Release:        2%{?_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}
38Requires:       gmp-devel
39
40%description -n librtmp-devel
41librtmp is a suport library for RTMP streams. The librtmp-devel package
42contains include files needed to develop applications using librtmp.
43
44%prep
45%setup -q -c -n rtmpdump
46
47%build
48# The fact that we have to add -ldl for gnutls is Fedora bug #611318
49%__make CRYPTO=GNUTLS SHARED=yes OPT="$RPM_OPT_FLAGS" LIB_GNUTLS="-lgnutls -lgcrypt -ldl" LIBRTMP=librtmp/librtmp.so
50
51
52%install
53%__rm -rf $RPM_BUILD_ROOT
54%__make CRYPTO=GNUTLS SHARED=yes DESTDIR=$RPM_BUILD_ROOT prefix=/usr mandir=%{_mandir} libdir=%{_libdir} install
55
56%__rm -f $RPM_BUILD_ROOT/%{_libdir}/librtmp.a
57
58
59%clean
60%__rm -rf $RPM_BUILD_ROOT
61
62%post -n librtmp -p /sbin/ldconfig
63
64%postun -n librtmp -p /sbin/ldconfig
65
66%files
67%defattr(-,root,root,-)
68%{_bindir}/rtmpdump
69%{_sbindir}/rtmpsrv
70%{_sbindir}/rtmpgw
71%{_sbindir}/rtmpsuck
72%{_mandir}/man1/rtmpdump.1*
73%{_mandir}/man8/rtmpgw.8*
74%doc COPYING README
75
76%files -n librtmp
77%defattr(-,root,root,-)
78%{_libdir}/librtmp.so.*
79%doc librtmp/COPYING
80
81%files -n librtmp-devel
82%defattr(-,root,root,-)
83%{_includedir}/librtmp
84%{_libdir}/librtmp.so
85%{_libdir}/pkgconfig/librtmp.pc
86%{_mandir}/man3/librtmp.3*
87%doc ChangeLog
88
89
90%changelog
91* Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.git20140606-2
92- add Requires: gmp-devel to librtmp-devel
93
94* Thu Jun 5 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.git20140606-1
95- updated sources to git master.
96
97* Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.3-1
98- initial build for VineSeed based on RPM Fusion development
99
100* Sun Jul 04 2010 Dominik Mierzejewski <rpm@greysector.net> 2.3-2
101- call ldconfig in post(un) scripts for the shared library
102- add strict dependency on the library to -devel
103
104* Sun Jul 04 2010 David Woodhouse <dwmw2@infradead.org> 2.3-1
105- Update to 2.3; build shared library
106
107* Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.2e-1
108- new upstream release
109
110* Mon Jun 28 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.2d-1
111- built based on RPM Fusion
112
113* Fri Apr 30 2010 David Woodhouse <dwmw2@infradead.org> 2.2d-1
114- Update to 2.2d
115
116* Tue Apr 20 2010 David Woodhouse <dwmw2@infradead.org> 2.2c-2
117- Link with libgcrypt explicitly since we call it directly
118
119* Mon Apr 19 2010 David Woodhouse <dwmw2@infradead.org> 2.2c-1
120- Initial package
Note: See TracBrowser for help on using the repository browser.