summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--flvx.conf10
-rw-r--r--mod_flvx.spec69
3 files changed, 83 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1e65467
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../common/Makefile
+
diff --git a/flvx.conf b/flvx.conf
new file mode 100644
index 0000000..227e201
--- /dev/null
+++ b/flvx.conf
@@ -0,0 +1,10 @@
+#
+# mod_flvx provides FLV progressive download streaming via HTTP.
+#
+
+LoadModule flvx_module modules/mod_flvx.so
+
+#
+# Causes the module to handle files with a .flv as pseudostream.
+#
+AddHandler flv-stream .flv
diff --git a/mod_flvx.spec b/mod_flvx.spec
new file mode 100644
index 0000000..71ee368
--- /dev/null
+++ b/mod_flvx.spec
@@ -0,0 +1,69 @@
+%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}}
+%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}}
+
+%global gitver 48bb878
+
+Summary: FLV progressive download streaming for the Apache HTTP Server
+Name: mod_flvx
+Version: 0
+Release: 0.1.20100525git%{?dist}
+Group: System Environment/Daemons
+License: ASL 2.0
+URL: http://tperspective.blogspot.com/2009/02/apache-flv-streaming-done-right.html
+# https://github.com/osantana/mod_flvx/tarball/48bb8781945dfa2e94b2814e9bae5e7d0cc8f29d
+Source0: osantana-%{name}-%{gitver}.tar.gz
+Source1: flvx.conf
+BuildRequires: httpd-devel >= 2.0.39
+Requires: httpd-mmn = %{_httpd_mmn}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+%description
+FLV streaming means it can be sought to any position during video, and
+browser (Flash player) will buffer only from this position to the end.
+Thus streaming allows to skip boring parts or see video ending without
+loading the whole file, which simply saves bandwidth. Even H264 is more
+efficient, FLV is still a common container format for videos, because
+H264 is supported by Flash since version 9.115.
+
+For using FLV streaming on the web, a pseudo-streaming compliant Flash
+player, such as Flowplayer, is needed. Streaming requires that the FLV
+has embedded key-frame markers (meta-data), that can be injected by any
+supported tool, e.g. flvtool2.
+
+%prep
+%setup -q -n osantana-%{name}-%{gitver}
+
+%build
+%{_httpd_apxs} -Wc,-Wall -c %{name}.c
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -D -p -m 755 .libs/%{name}.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules/%{name}.so
+install -D -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/flvx.conf
+
+# Fix incorrect end-of-line encoding
+sed -e 's/\r//' README.md > README
+touch -c -r README.md README
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc README
+%{_libdir}/httpd/modules/%{name}.so
+%config(noreplace) %{_sysconfdir}/httpd/conf.d/flvx.conf
+
+%changelog
+* Sat Mar 31 2012 Remi Collet <RPMS@FamilleCollet.com> - 0-0.1.20100525git
+- rebuild for remi repo and httpd 2.4
+
+* Fri Mar 30 2012 Joe Orton <jorton@redhat.com> - 0-0.1.20100525git
+- fix build with httpd 2.4
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.2.20100525git
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Tue Mar 15 2011 Robert Scheck <robert@fedoraproject.org> 0-0.1.20100525git
+- Upgrade to GIT 20100525
+- Initial spec file for Fedora and Red Hat Enterprise Linux