]> git.pld-linux.org Git - packages/php-pecl-xattr.git/blame - php-pecl-xattr.spec
- php 5.5 rebuild
[packages/php-pecl-xattr.git] / php-pecl-xattr.spec
CommitLineData
4cdfbabd 1%define php_name php%{?php_suffix}
a4914877 2%define modname xattr
4cdfbabd
ER
3Summary: %{modname} - extended attributes
4Summary(pl.UTF-8): %{modname} - rozszerzone atrybuty
5Name: %{php_name}-pecl-%{modname}
a4914877 6Version: 1.2.0
52c41280 7Release: 3
d2bb087c 8License: PHP 3.01
45f89cdc 9Group: Development/Languages/PHP
4cdfbabd 10Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
a4914877 11# Source0-md5: f6b2bd0be8f88a0b29e7608e3d190df6
9d9519c0 12URL: http://pecl.php.net/package/xattr/
4cdfbabd 13BuildRequires: %{php_name}-devel >= 3:5.0.0
ba49dd38 14BuildRequires: attr-devel
4cdfbabd 15BuildRequires: rpmbuild(macros) >= 1.650
6b8eca9b 16%{?requires_php_extension}
0edf477d 17Requires: php(core) >= 5.0.4
ba49dd38 18Provides: php(%{modname}) = %{version}
4cdfbabd 19Obsoletes: php-pear-%{modname}
45f89cdc
AG
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
45f89cdc
AG
22%description
23This package allows to manipulate extended attributes on filesystems
24that support them. Requires libattr from Linux XFS project.
25
f3b65679
JR
26%description -l pl.UTF-8
27Ten pakiet umożliwia manipulowanie rozszerzonymi atrybutami systemów
28plików.
45f89cdc 29
45f89cdc 30%prep
4cdfbabd
ER
31%setup -qc
32mv %{modname}-%{version}/* .
45f89cdc
AG
33
34%build
45f89cdc
AG
35phpize
36%configure
37%{__make}
38
39%install
40rm -rf $RPM_BUILD_ROOT
5fdb0892 41install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
45f89cdc 42
4cdfbabd
ER
43install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
44cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
45; Enable %{modname} extension module
46extension=%{modname}.so
6b8eca9b 47EOF
45f89cdc
AG
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%post
5fdb0892 53%php_webserver_restart
45f89cdc 54
6b8eca9b
ER
55%postun
56if [ "$1" = 0 ]; then
5fdb0892 57 %php_webserver_restart
45f89cdc
AG
58fi
59
60%files
61%defattr(644,root,root,755)
4cdfbabd
ER
62%doc CREDITS tests/
63%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
64%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.07989 seconds and 4 git commands to generate.