]> git.pld-linux.org Git - packages/php-pecl-flvinfo.git/blame - php-pecl-flvinfo.spec
- rel 4
[packages/php-pecl-flvinfo.git] / php-pecl-flvinfo.spec
CommitLineData
b9287112
ER
1%define modname flvinfo
2%define status stable
3Summary: %{modname} - Provides file info of FLV files
4Name: php-pecl-%{modname}
7ec247a8 5Version: 0.0.6
b9287112 6Release: 4
539a198a
ER
7License: PHP 2.02
8Group: Development/Languages/PHP
ddb6ccc1 9Patch0: flvinfo-lib64.patch
ad526feb 10BuildRequires: ffmpeg-devel >= 0.4.9-3.20061204.1.3
539a198a 11BuildRequires: php-devel >= 4:5.0
6de9b624 12BuildRequires: rpmbuild(macros) >= 1.344
539a198a 13%{?requires_php_extension}
6de9b624 14Requires: php-common >= 4:5.0.4
b9287112 15Provides: php(%{modname})
539a198a
ER
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
03094300
ER
18%define _cvsroot :ext:cvs.delfi.ee:/usr/local/cvs
19%define _cvsmodule php/ext/flvinfo
20
539a198a
ER
21%description
22This extension provides information about FLV video dimensions. It
23uses libavformat from ffmpeg to do so.
24
b9287112 25In PECL status of this extension is: %{status}.
539a198a 26
c672821c
ER
27%package -n flvinfo
28Summary: flvinfo
29Group: Applications
30
31%description -n flvinfo
32flvinfo program.
33
539a198a 34%prep
03094300
ER
35%setup -qcT
36cd ..
37cvs -d %{_cvsroot} co %{?_cvstag:-r %{_cvstag}} -d %{name}-%{version} -P %{_cvsmodule}
38cd -
ddb6ccc1
ER
39%if "%{_lib}" != "lib"
40%patch0 -p1
41%endif
539a198a
ER
42
43%build
44phpize
45%configure
46%{__make}
47%{__make} flvinfo
48
49%install
50rm -rf $RPM_BUILD_ROOT
6de9b624 51install -d $RPM_BUILD_ROOT{%{_bindir},%{php_sysconfdir}/conf.d}
539a198a
ER
52
53%{__make} install \
54 INSTALL_ROOT=$RPM_BUILD_ROOT \
6de9b624 55 EXTENSION_DIR=%{php_extensiondir}
b9287112
ER
56cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
57; Enable %{modname} extension module
58extension=%{modname}.so
539a198a
ER
59EOF
60install flvinfo $RPM_BUILD_ROOT%{_bindir}
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%post
6de9b624 66%php_webserver_restart
539a198a
ER
67
68%postun
69if [ "$1" = 0 ]; then
6de9b624 70 %php_webserver_restart
539a198a
ER
71fi
72
73%files
74%defattr(644,root,root,755)
75%doc {CREDITS,EXPERIMENTAL}
b9287112
ER
76%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
77%attr(755,root,root) %{php_extensiondir}/%{modname}.so
c672821c
ER
78
79%files -n flvinfo
80%defattr(644,root,root,755)
539a198a 81%attr(755,root,root) %{_bindir}/flvinfo
This page took 0.069527 seconds and 4 git commands to generate.