devel: require proper version, not just any
[packages/php-pecl-propro.git] / php-pecl-propro.spec
CommitLineData
2d7d23e0
AG
1%define php_name php%{?php_suffix}
2%define modname propro
3%define status stable
4Summary: %{modname} - Property proxy
5Name: %{php_name}-pecl-%{modname}
6Version: 1.0.0
a2d85ef4 7Release: 2
2d7d23e0
AG
8License: BSD, revised
9Group: Development/Languages/PHP
10Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
11# Source0-md5: 9c775035fd17c65f0162b7eb1b4f8564
12URL: http://pecl.php.net/package/propro/
13BuildRequires: %{php_name}-devel >= 3:5.3.0
14BuildRequires: rpmbuild(macros) >= 1.650
15%{?requires_php_extension}
16Provides: php(%{modname}) = %{version}
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20A reusable split-off of pecl_http's property proxy API.
21
22In PECL status of this extension is: %{status}.
23
24%package devel
25Summary: Header files for propro PECL extension
26Group: Development/Libraries
27# does not require base
a2d85ef4 28Requires: %{php_name}-devel >= 4:5.2.0
2d7d23e0
AG
29
30%description devel
31Header files for propro PECL extension.
32
33%prep
34%setup -qc
35mv %{modname}-%{version}/* .
36
37%build
38phpize
39%{__libtoolize}
40%configure
41%{__make}
42
43%install
44rm -rf $RPM_BUILD_ROOT
45install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
46
47install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
48cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
49; Enable %{modname} extension module
50extension=%{modname}.so
51EOF
52
a2d85ef4 53install -p -D php_propro.h $RPM_BUILD_ROOT%{_includedir}/php/ext/propro/php_propro.h
2d7d23e0
AG
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%post
59%php_webserver_restart
60
61%postun
62if [ "$1" = 0 ]; then
63 %php_webserver_restart
64fi
65
66%files
67%defattr(644,root,root,755)
68%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
69%attr(755,root,root) %{php_extensiondir}/%{modname}.so
70
71%files devel
72%defattr(644,root,root,755)
73%dir %{php_includedir}/ext/propro
74%{php_includedir}/ext/propro/php_propro.h
This page took 0.057195 seconds and 4 git commands to generate.