]>
Commit | Line | Data |
---|---|---|
3366b281 JB |
1 | Summary: PHP binding for libvirt |
2 | Summary(pl.UTF-8): Wiązanie PHP do libvirt | |
3 | Name: php-libvirt | |
f2b2ec4f | 4 | Version: 0.4.6 |
e8acb85d | 5 | Release: 2 |
3366b281 JB |
6 | # COPYING contains LGPL v2.1, but README specifies plain GPL |
7 | License: GPL | |
8 | Group: Development/Languages/PHP | |
9 | Source0: ftp://libvirt.org/libvirt/php/libvirt-php-%{version}.tar.gz | |
f2b2ec4f | 10 | # Source0-md5: 9d69974e29e37284b85440d0903259ec |
3366b281 | 11 | URL: http://libvirt.org/php/ |
f2b2ec4f | 12 | BuildRequires: libvirt-devel >= 0.6.2 |
3366b281 JB |
13 | BuildRequires: libxml2-devel >= 2.0.0 |
14 | BuildRequires: libxml2-progs | |
15 | BuildRequires: libxslt-progs | |
f14cfe58 | 16 | BuildRequires: php-devel >= 3:5.0.0 |
3366b281 | 17 | BuildRequires: pkgconfig |
f14cfe58 JB |
18 | BuildRequires: rpmbuild(macros) >= 1.519 |
19 | %{?requires_php_extension} | |
f2b2ec4f | 20 | Requires: libvirt >= 0.6.2 |
39a350f4 | 21 | Requires: php(core) >= 5.0.4 |
3366b281 JB |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %define _phpdocdir %{_docdir}/phpdoc | |
25 | ||
26 | %description | |
27 | Libvirt-php is basically just PHP binding for libvirt virtualization | |
28 | toolkit. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Libvirt-php to właściwie zwykłe wiązanie PHP do biblioteki | |
32 | wirtualizacji libvirt. | |
33 | ||
34 | %package phpdoc | |
35 | Summary: Online manual for php-libvirt binding | |
36 | Summary(pl.UTF-8): Dokumentacja online do wiązania php-libvirt | |
37 | Group: Documentation | |
38 | Requires: php-dirs | |
39 | ||
40 | %description phpdoc | |
41 | Documentation for php-libvirt binding. | |
42 | ||
43 | %description phpdoc -l pl.UTF-8 | |
44 | Dokumentacja do wiązania php-libvirt. | |
45 | ||
46 | %prep | |
47 | %setup -q -n libvirt-php-%{version} | |
48 | ||
49 | %build | |
50 | %configure \ | |
51 | --with-html-dir=%{_phpdocdir} | |
52 | ||
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
3366b281 JB |
57 | %{__make} install \ |
58 | DESTDIR=$RPM_BUILD_ROOT \ | |
59 | PHPCDIR=%{php_sysconfdir}/conf.d | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
f14cfe58 JB |
64 | %post |
65 | %php_webserver_restart | |
66 | ||
67 | %postun | |
68 | if [ "$1" = 0 ]; then | |
69 | %php_webserver_restart | |
70 | fi | |
71 | ||
3366b281 JB |
72 | %files |
73 | %defattr(644,root,root,755) | |
74 | %doc AUTHORS ChangeLog README | |
75 | %attr(755,root,root) %{php_extensiondir}/libvirt-php.so | |
e8acb85d | 76 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/*.ini |
3366b281 JB |
77 | |
78 | %files phpdoc | |
79 | %defattr(644,root,root,755) | |
80 | %{_phpdocdir}/libvirt-php-%{version} |