]> git.pld-linux.org Git - packages/php-pecl-openal.git/blame_incremental - php-pecl-openal.spec
- tabs in preamble
[packages/php-pecl-openal.git] / php-pecl-openal.spec
... / ...
CommitLineData
1%define _modname openal
2%define _status beta
3Summary: %{_modname} - bindings to OpenAL
4Summary(pl.UTF-8): %{_modname} - dowiązania do OpenAL
5Name: php-pecl-%{_modname}
6Version: 0.1
7Release: 1
8License: PHP
9Group: Development/Languages/PHP
10Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
11# Source0-md5: d6dd7f9d47997928e6d897cb711317ba
12URL: http://pecl.php.net/package/openal/
13BuildRequires: OpenAL-devel
14BuildRequires: php-devel >= 3:5.0.0
15BuildRequires: rpmbuild(macros) >= 1.344
16%{?requires_php_extension}
17Requires: php-common >= 4:5.0.4
18Obsoletes: php-pear-%{_modname}
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22This extension provides platform independent sound bindings.
23
24In PECL status of this package is: %{_status}.
25
26%description -l pl.UTF-8
27To rozszerzenie dostarcza niezależnych od platformy dowiązań
28dotyczących dźwięku.
29
30To rozszerzenie ma w PECL status: %{_status}.
31
32%prep
33%setup -q -c
34
35%build
36cd %{_modname}-%{version}
37phpize
38%configure
39%{__make}
40
41%install
42rm -rf $RPM_BUILD_ROOT
43install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
44
45install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
46cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
47; Enable %{_modname} extension module
48extension=%{_modname}.so
49EOF
50
51%clean
52rm -rf $RPM_BUILD_ROOT
53
54%post
55%php_webserver_restart
56
57%postun
58if [ "$1" = 0 ]; then
59 %php_webserver_restart
60fi
61
62%files
63%defattr(644,root,root,755)
64%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
65%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
This page took 0.077478 seconds and 4 git commands to generate.