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