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

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

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