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