forked from libvirt/libvirt-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libvirt-php.spec.in
142 lines (114 loc) · 3.89 KB
/
libvirt-php.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
%define req_libvirt_version 1.2.8
%if 0%{?suse_version}
%define php_confdir %{_sysconfdir}/php5/conf.d
%define php_extdir %{_libdir}/php5/extensions
%else
%define php_confdir %{_sysconfdir}/php.d
%define php_extdir %{_libdir}/php/modules
%endif
Name: @PACKAGE@
Version: @VERSION@
Release: 1%{?dist}%{?extra_release}
Summary: PHP language binding for Libvirt
%if 0%{?suse_version}
Group: Development/Libraries/PHP
%else
Group: Development/Libraries
%endif
License: PHP
URL: http://libvirt.org/php
Source0: http://libvirt.org/sources/php/libvirt-php-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: php-devel
BuildRequires: libvirt-devel >= %{req_libvirt_version}
BuildRequires: libxml2-devel
BuildRequires: libxslt
BuildRequires: php-pecl-imagick
%if 0%{?suse_version}
BuildRequires: xhtml-dtd
%else
BuildRequires: xhtml1-dtds
%endif
%if 0%{?suse_version}
Requires: php5
%else
Requires: php
%endif
%description
PHP language bindings for Libvirt API.
For more details see: http://www.libvirt.org/php/
%package -n libvirt-php-doc
Summary: Document of libvirt-php
Group: Development/Libraries/PHP
BuildArch: noarch
Requires: libvirt-php = %{version}
%description -n libvirt-php-doc
PHP language bindings for Libvirt API.
For more details see: http://www.libvirt.org/php/ http://www.php.net/
This package contain the document for libvirt-php.
%prep
%setup -q -n libvirt-php-%{version}
%build
%configure --with-html-dir=%{_datadir}/doc \
--with-html-subdir=%{name}-%{version}/html \
--with-php-extensiondir=%{php_extdir} \
--with-php-confdir=%{php_confdir}
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
rm -f ${RPM_BUILD_ROOT}%{php_extdir}/*.la
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{php_extdir}/libvirt-php.so
%config(noreplace) %{php_confdir}/libvirt-php.ini
%files -n libvirt-php-doc
%defattr(-,root,root)
%doc
%dir %{_datadir}/doc/%{name}-%{version}
%{_datadir}/doc/%{name}-%{version}/html
%changelog
* XXX XXX 00 2020 Michal Privoznik <[email protected]> - 0.5.6
- XXX
* Sat Feb 8 2020 Michal Privoznik <[email protected]> - 0.5.5
- Implemented virDomainReset() API
- Implemented virDomainInterfaceAddresses() API
- Bug fixes
* Wed Aug 2 2017 Michal Privoznik <[email protected]> - 0.5.4
- Added API bindings for getting/setting network autostart
- Implement NWFilter API bindings
- Bug fixes
* Thu May 11 2017 Michal Privoznik <[email protected]> - 0.5.3
- Several improvements for the build system
- Implemented new libvirt APIs
- Slight rework of our examples
- Bug fixes
* Wed Apr 20 2016 Michal Privoznik <[email protected]> - 0.5.2
- Several bugfixes & improvements
* Fri Oct 2 2015 Michal Privoznik <[email protected]> - 0.5.1
- Several bugfixes & improvements
* Thu Jan 23 2014 Michal Novotny <[email protected]> - 0.5.0
- Several bugfixes & improvements
* Mon Aug 22 2011 Michal Novotny <[email protected]> - 0.4.4
- Several bugfixes for VNC and updated SPEC file
* Thu Aug 11 2011 Michal Novotny <[email protected]> - 0.4.3
- Rebase to 0.4.3 from master branch
* Tue Apr 19 2011 Michal Novotny <[email protected]> - 0.4.1-5
- Minor memory leak fixes
- Several bug fixes
* Mon Apr 11 2011 Michal Novotny <[email protected]> - 0.4.1-4
- Add new storagepool API functions
- Add optional xPath argument for *_get_xml_desc() functions
- Add new network API functions
- Add new API functions to add/remove disks
* Wed Mar 23 2011 Michal Novotny <[email protected]> - 0.4.1-3
- Add connection information function
- Add coredump support
- Add snapshots support
- Improve error reporting for destructors
* Thu Mar 10 2011 Michal Novotny <[email protected]> - 0.4.1-2
- Changes done to comply with Fedora package policy
* Tue Feb 8 2011 Michal Novotny <[email protected]> - 0.4.1
- Initial commit (from github)