]> git.pld-linux.org Git - packages/php-pecl-flvinfo.git/blame - php-pecl-flvinfo.spec
put source to dropin
[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}
55e8f63b
ER
5Version: 0.5
6Release: 1
539a198a
ER
7License: PHP 2.02
8Group: Development/Languages/PHP
68bbd31d
ER
9Source0: flvinfo-%{version}.tar.bz2
10# Source0-md5: 5fb71336eac15cf31f840d12d289f6f9
ad526feb 11BuildRequires: ffmpeg-devel >= 0.4.9-3.20061204.1.3
539a198a 12BuildRequires: php-devel >= 4:5.0
6de9b624 13BuildRequires: rpmbuild(macros) >= 1.344
539a198a 14%{?requires_php_extension}
68bbd31d 15Requires: php(core) >= 5.0.4
b9287112 16Provides: php(%{modname})
539a198a
ER
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20This extension provides information about FLV video dimensions. It
21uses libavformat from ffmpeg to do so.
22
b9287112 23In PECL status of this extension is: %{status}.
539a198a 24
c672821c
ER
25%package -n flvinfo
26Summary: flvinfo
27Group: Applications
28
29%description -n flvinfo
30flvinfo program.
31
539a198a 32%prep
68bbd31d 33%setup -qn flvinfo-%{version}
539a198a
ER
34
35%build
36phpize
37%configure
38%{__make}
39%{__make} flvinfo
40
41%install
42rm -rf $RPM_BUILD_ROOT
6de9b624 43install -d $RPM_BUILD_ROOT{%{_bindir},%{php_sysconfdir}/conf.d}
539a198a 44%{__make} install \
55e8f63b
ER
45 EXTENSION_DIR=%{php_extensiondir} \
46 INSTALL_ROOT=$RPM_BUILD_ROOT
47
b9287112
ER
48cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
49; Enable %{modname} extension module
50extension=%{modname}.so
539a198a 51EOF
55e8f63b 52install -p flvinfo $RPM_BUILD_ROOT%{_bindir}
539a198a
ER
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%post
6de9b624 58%php_webserver_restart
539a198a
ER
59
60%postun
61if [ "$1" = 0 ]; then
6de9b624 62 %php_webserver_restart
539a198a
ER
63fi
64
65%files
66%defattr(644,root,root,755)
67%doc {CREDITS,EXPERIMENTAL}
b9287112
ER
68%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
69%attr(755,root,root) %{php_extensiondir}/%{modname}.so
c672821c
ER
70
71%files -n flvinfo
72%defattr(644,root,root,755)
539a198a 73%attr(755,root,root) %{_bindir}/flvinfo
This page took 0.061695 seconds and 4 git commands to generate.