Logoj0ke.net Open Build Service > Projects > internetx:php5:EL5:extensions > php-ffmpeg > Changes
Sign Up | Log In

Difference Between Revision 13 and home:netmax / php5-ffmpeg

[-] Added php-ffmpeg.spec
x
 
1
@@ -0,0 +1,86 @@
2
+%if 0%{?centos_version} >= 6 || 0%{?rhel_version} >= 600 || 0%{?sl_version} >= 600
3
+%define        svnversion 0.7.0
4
+%else
5
+%define        svnversion svn
6
+%endif
7
+Name:      php-ffmpeg
8
+Version:   0.6.0.99
9
+Release:   2
10
+License:   GPL
11
+Group:         Development/Libraries
12
+Summary:   php ffmpeg extension
13
+URL:       http://ffmpeg-php.sourceforge.net/
14
+Source0:   ffmpeg-php-%{svnversion}.tbz2
15
+Patch0:        ffmpeg-php_x86_64-fix.diff
16
+BuildRoot:     %{_tmppath}/%{name}-%{version}-build
17
+Packager:       Carsten Schoene <cs@linux-administrator.com>
18
+%if 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 6 || 0%{?sl_version} >= 600
19
+BuildRequires: ffmpeg-devel
20
+%else
21
+BuildRequires: libffmpeg0 libffmpeg0-devel
22
+%endif
23
+BuildRequires: autoconf automake php-devel glibc-devel libgcc gcc gcc-c++
24
+Requires:  php sed grep
25
+
26
+%description
27
+ffmpeg-php is an extension for PHP that adds an easy to use, 
28
+object-oriented API for accessing and retrieving information from video and audio files. 
29
+It has methods for returning frames from movie files as images that can be manipulated 
30
+using PHP's image functions. This works well for automatically creating thumbnail 
31
+images from movies. ffmpeg-php is also useful for reporting the duration and bitrate 
32
+of audio files (mp3, wma...). 
33
+ffmpeg-php can access many of the video formats supported by ffmpeg (mov, avi, mpg, wmv...)
34
+
35
+
36
+%prep
37
+%setup -q -n ffmpeg-php
38
+%patch0 -p1
39
+
40
+export PHP_PREFIX=%{_prefix}
41
+$PHP_PREFIX/bin/phpize
42
+./configure --enable-ffmpeg=shared --with-php-config=$PHP_PREFIX/bin/php-config
43
+
44
+%__make
45
+%install
46
+install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/php/modules/
47
+install -m 755 modules/ffmpeg.so $RPM_BUILD_ROOT%{_libdir}/php/modules/
48
+%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
49
+echo "; comment out next line to disable imagick extension in php" > %{buildroot}%{_sysconfdir}/php.d/ffmpeg.ini
50
+echo 'extension = ffmpeg.so' >> %{buildroot}%{_sysconfdir}/php.d/ffmpeg.ini
51
+
52
+%clean
53
+rm -rf $RPM_BUILD_ROOT/*
54
+rm -rf $RPM_BUILD_DIR/%{name}*
55
+
56
+%files
57
+%defattr(-,root,root)
58
+%doc ChangeLog LICENSE CREDITS EXPERIMENTAL
59
+%config %{_sysconfdir}/php.d/ffmpeg.ini
60
+%{_libdir}/php/modules/ffmpeg.so
61
+ 
62
+%changelog
63
+* Mon Jul 12 2010 Carsten Schoene <cs@linux-administrator.com> - 0.6.0-2
64
+- build against RHEL_5 & CentOS_5
65
+
66
+* Sun Dec 28 2008 Carsten Schoene <cs@linux-administrator.com>
67
+- 0.6.0:
68
+  - Support for ffmpeg swscale API
69
+  - Removed obsolete resize() and crop() functions. These operations are
70
+    more flexibly done using the gd commands.
71
+  - Removed animated gif class since it was way out of date and the
72
+    quality of animated gifs created by ffmpeg sucks anyway
73
+  - Added check to ensure that gd loads before ffmpeg-php if both are
74
+    compiled as extensions.
75
+  - Replaced large mp3 test file with smaller sample to avoid copyright
76
+    issues and reduce package size.
77
+  - Convert from deprecated img_* functions to swscale.
78
+  - Builds against php4 correctly again.
79
+* Fri Jul 04 2008 Carsten Schoene <cs@linux-administrator.com>
80
+- 0.5.3.1:
81
+ - Small fix to maintain compatibility with ffmpeg svn. 
82
+ - Removed copyrighted test media and replaced with public domain. 
83
+- 0.5.3:
84
+ - Added php.ini flag to turn off ffmpeg warnings. Added stream id functions
85
+* Mon Oct 01 2007 Carsten Schoene <cs@linux-administrator.com>
86
+- initial package release - 0.5.1
87
+
88
[+] Deleted php5-ffmpeg.spec ^
Deleted ffmpeg-php-0.5.3.1.tbz2 ^
Changed ffmpeg-php-0.7.0.tbz2 ^
Added ffmpeg-php-svn.tbz2 ^