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