diff --git a/.gitignore b/.gitignore index e69de29..b3b2a8c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libvirt-php-0.4.1.tar.gz diff --git a/php-libvirt.spec b/php-libvirt.spec new file mode 100644 index 0000000..8da81aa --- /dev/null +++ b/php-libvirt.spec @@ -0,0 +1,57 @@ +%define req_libvirt_version 0.6.2 +%define php_confdir %{_sysconfdir}/php.d +%define php_extdir %{_libdir}/php/modules + +Name: php-libvirt +Version: 0.4.1 +Release: 2%{?dist}%{?extra_release} +Summary: PHP language binding for Libvirt + +Group: Development/Libraries +License: LGPLv2+ +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: xhtml1-dtds +Requires: libvirt >= %{req_libvirt_version} +Requires: php +Requires: php(zend-abi) = %{php_zend_api} +Requires: php(api) = %{php_core_api} + +%global _use_internal_dependency_generator 0 + +%description +PHP language bindings for Libvirt API. +For more details see: http://www.libvirt.org/php/ + +%prep +%setup -q -n libvirt-php-%{version} + +%build +%configure --with-html-dir=%{_datadir}/doc --with-html-subdir=%{name}-%{version}/html --libdir=%{php_extdir} +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc LICENSE README html +%{php_extdir}/php-libvirt.so +%config(noreplace) %{php_confdir}/php-libvirt.ini + +%changelog +* Thu Mar 10 2011 Michal Novotny - 0.4.1-2 +- Changes done to comply with Fedora package policy + +* Tue Feb 8 2011 Michal Novotny - 0.4.1-1 +- Initial commit (from github) diff --git a/sources b/sources index e69de29..011ec3f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +719ff217053fd02b7480b37e0a36e970 libvirt-php-0.4.1.tar.gz