]> git.pld-linux.org Git - packages/cherokee.git/commitdiff
Fix for ffmpeg 1.0 (from mageia) auto/th/cherokee-1.2.101-2
authorArtur Frysiak <artur@frysiak.net>
Fri, 9 Nov 2012 11:13:14 +0000 (12:13 +0100)
committerArtur Frysiak <artur@frysiak.net>
Fri, 9 Nov 2012 11:13:14 +0000 (12:13 +0100)
cherokee.spec
ffmpeg0.11.patch [new file with mode: 0644]

index 737a2b279e6d956767cfa3491426460eb24f33fa..5f27465842666c1b0279b0da563a249bb86b98f0 100644 (file)
@@ -14,7 +14,7 @@ Summary:      Fast, Flexible and Lightweight Web server
 Summary(pl.UTF-8):     Cherokee - serwer WWW
 Name:          cherokee
 Version:       1.2.101
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         Networking/Daemons
 Source0:       http://www.cherokee-project.com/download/1.2/%{version}/%{name}-%{version}.tar.gz
@@ -24,11 +24,12 @@ Source2:    %{name}.sysconfig
 Source3:       %{name}.upstart
 Patch0:                %{name}-config.patch
 Patch1:                %{name}-panic_path.patch
+Patch2:                ffmpeg0.11.patch
 URL:           http://www.cherokee-project.com/
 %{?with_geoip:BuildRequires:   GeoIP-devel}
 BuildRequires: autoconf
 BuildRequires: automake
-%{?with_ffmpeg:BuildRequires:  ffmpeg-devel}
+%{?with_ffmpeg:BuildRequires:  ffmpeg-devel >= 1.0}
 BuildRequires: gettext-devel
 BuildRequires: libtool
 %{?with_mysql:BuildRequires:   mysql-devel}
@@ -135,6 +136,7 @@ Biblioteki serwera WWW Cherokee.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
diff --git a/ffmpeg0.11.patch b/ffmpeg0.11.patch
new file mode 100644 (file)
index 0000000..eedbcf6
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/cherokee/handler_streaming.c.ffmpeg      2012-06-04 12:56:16.000000000 +0800
++++ b/cherokee/handler_streaming.c     2012-06-04 12:56:40.000000000 +0800
+@@ -380,7 +380,7 @@
+       if (likely (secs > 0)) {
+               long tmp;
+-              tmp = (hdl->avformat->file_size / secs);
++              tmp = (avio_size(hdl->avformat) / secs);
+               if (tmp > rate) {
+                       rate = tmp;
+                       TRACE(ENTRIES, "New rate: %d bytes/s\n", rate);
This page took 0.095225 seconds and 4 git commands to generate.