packages: http-live-streaming-tools/http-live-streaming-tools.spec (NEW), h...

glen glen at pld-linux.org
Mon Aug 23 14:53:42 CEST 2010


Author: glen                         Date: Mon Aug 23 12:53:42 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/http-live-streaming-tools:
   http-live-streaming-tools.spec (NONE -> 1.1)  (NEW), makefile.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/http-live-streaming-tools/http-live-streaming-tools.spec
diff -u /dev/null packages/http-live-streaming-tools/http-live-streaming-tools.spec:1.1
--- /dev/null	Mon Aug 23 14:53:42 2010
+++ packages/http-live-streaming-tools/http-live-streaming-tools.spec	Mon Aug 23 14:53:37 2010
@@ -0,0 +1,61 @@
+# $Revision$, $Date$
+Summary:	HTTP Live Video Stream Segmenter and Distributor
+Name:		http-live-streaming-tools
+Version:	0.1
+Release:	0.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
+BuildRequires:	ffmpeg-devel
+BuildRequires:	rpmbuild(macros) >= 1.484
+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.
+
+%prep
+%setup -q -n %{name}
+%patch0 -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
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/08/23 12:53:37  glen
+- new

================================================================
Index: packages/http-live-streaming-tools/makefile.patch
diff -u /dev/null packages/http-live-streaming-tools/makefile.patch:1.1
--- /dev/null	Mon Aug 23 14:53:42 2010
+++ packages/http-live-streaming-tools/makefile.patch	Mon Aug 23 14:53:37 2010
@@ -0,0 +1,12 @@
+--- http-live-streaming-tools/Makefile~	2010-08-23 15:45:40.000000000 +0300
++++ http-live-streaming-tools/Makefile	2010-08-23 15:52:12.243937112 +0300
+@@ -1,5 +1,8 @@
++CC := gcc
++CFLAGS := -g
++
+ all:
+-	gcc -Wall -g live_segmenter.c -o live_segmenter -lavformat -lavcodec -lavutil -lbz2 -lm -lz -lfaac -lmp3lame -lx264 -lfaad -lpthread
++	$(CC) -Wall $(CFLAGS) live_segmenter.c -o live_segmenter $(LDFLAGS) -lavformat -lavcodec -lavutil -lbz2 -lm -lz -lfaac -lmp3lame -lx264 -lfaad -lpthread
+ 
+ clean:
+ 	rm -f live_segmenter
================================================================


More information about the pld-cvs-commit mailing list