1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
Summary: HTTP Live Video Stream Segmenter and Distributor
Name: http-live-streaming-tools
Version: 0.1
Release: 1
License: GPL v2
Group: Applications/Networking
Source0: %{name}.tar.bz2
# Source0-md5: 90731a7168cd9393cc4c6e3704b75f11
URL: http://www.ioncannon.net/projects/http-live-video-stream-segmenter-and-distributor/
Patch0: makefile.patch
Patch1: input_filename.patch
BuildRequires: bzip2-devel
BuildRequires: ffmpeg-devel >= 0.5
BuildRequires: rpmbuild(macros) >= 1.484
Requires: http-live-segmenter = %{version}-%{release}
Requires: ruby
Requires: ruby-modules
%{?ruby_mod_ver_requires_eq}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This project is an attempt to make it easier to set up a live
streaming server using Apple's HTTP Live Streaming protocol. The
source includes a Ruby script and a C program that use FFMpeg to
encode and segment an input video stream in the correct format for use
with the HTTP streaming protocol.
%package -n http-live-segmenter
Summary: HTTP Live Video Stream Segmenter
Group: Applications
%description -n http-live-segmenter
HTTP Live Video Stream Segmenter.
%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%build
%{__make} \
CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
LDFLAGS="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
install -p live_segmenter $RPM_BUILD_ROOT%{_bindir}
install -p hs_* http_streamer* $RPM_BUILD_ROOT%{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.md example-configs
%attr(755,root,root) %{_bindir}/hs_config.rb
%attr(755,root,root) %{_bindir}/hs_encoder.rb
%attr(755,root,root) %{_bindir}/hs_transfer.rb
%attr(755,root,root) %{_bindir}/http_streamer.rb
%attr(755,root,root) %{_bindir}/live_segmenter
%files -n http-live-segmenter
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/live_segmenter
|