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

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

[-] Added php-ffmpeg.spec
x
 
1
@@ -0,0 +1,77 @@
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
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 ^
Deleted ffmpeg-php-0.5.1.tbz2 ^
Deleted ffmpeg-php-0.5.3.1.tbz2 ^
Added ffmpeg-php-svn.tbz2 ^