]> git.pld-linux.org Git - packages/php-pecl-yp.git/blame - php-pecl-yp.spec
- obsolete old php name
[packages/php-pecl-yp.git] / php-pecl-yp.spec
CommitLineData
a653ce75 1%define rel 2
46543139
ER
2%define subver RC1
3%define modname yp
4%define status beta
dc98833c 5%define php_name php%{?php_suffix}
46543139 6Summary: %{modname} - YP/NIS functions
dc98833c
ER
7Summary(pl.UTF-8): %{modname} - klient NIS dla PHP
8Name: %{php_name}-pecl-%{modname}
46543139
ER
9Version: 1.0.0
10Release: 0.%{subver}.%{rel}
92e80f97
JR
11License: PHP
12Group: Development/Languages/PHP
46543139
ER
13Source0: http://pecl.php.net/get/%{modname}-%{version}%{subver}.tgz
14# Source0-md5: 4ae09ff196f358a98a5f2cf30fabd733
15URL: http://pecl.php.net/package/yp/
16BuildRequires: %{php_name}-devel >= 4:5.3.0
dc98833c 17BuildRequires: rpmbuild(macros) >= 1.650
92e80f97 18%{?requires_php_extension}
5f03d49f 19Provides: php(yp)
a653ce75 20Obsoletes: php-pecl-yp < 1.0.0-0.RC1.1
92e80f97
JR
21Obsoletes: php-yp
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
46543139
ER
25NIS (formerly called Yellow Pages) allows network management of
26important administrative files (e.g. the password file).
92e80f97 27
52d904d9
JR
28%description -l pl.UTF-8
29Moduł PHP dodający wsparcie dla NIS (Yellow Pages).
92e80f97
JR
30
31%prep
dc98833c 32%setup -qc
46543139 33mv %{modname}-%{version}%{?subver}/* .
92e80f97
JR
34
35%build
36phpize
37%configure
38%{__make}
39
40%install
41rm -rf $RPM_BUILD_ROOT
46543139
ER
42%{__make} install \
43 EXTENSION_DIR=%{php_extensiondir} \
44 INSTALL_ROOT=$RPM_BUILD_ROOT
92e80f97 45
46543139 46install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
dc98833c
ER
47cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
48; Enable %{modname} extension module
49extension=%{modname}.so
92e80f97
JR
50EOF
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%post
012045b6 56%php_webserver_restart
92e80f97
JR
57
58%postun
59if [ "$1" = 0 ]; then
012045b6 60 %php_webserver_restart
92e80f97
JR
61fi
62
63%files
64%defattr(644,root,root,755)
65%doc CREDITS
dc98833c
ER
66%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
67%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.060584 seconds and 4 git commands to generate.