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

File php-ffmpeg.spec of Package php-ffmpeg

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