Added libsysfs-devel dep & pre-create config/socket dir

This commit is contained in:
Daniel P. Berrange 2007-02-14 17:36:39 +00:00
parent f9b263118f
commit fd35f8ca58
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Tue Feb 14 12:35:24 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* libvirt.spec.in: Added dep on libsysfs-devel. Pre-create
the qemu config dir & socket dir.
Tue Feb 14 12:19:24 EST 2007 Daniel P. Berrange <berrange@redhat.com> Tue Feb 14 12:19:24 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* src/qemu_internal.c, qemud/qemud.c: Move configs into * src/qemu_internal.c, qemud/qemud.c: Move configs into

View File

@ -19,6 +19,7 @@ BuildRequires: libxml2-devel
BuildRequires: readline-devel BuildRequires: readline-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: gettext BuildRequires: gettext
BuildRequires: libsysfs-devel
Obsoletes: libvir Obsoletes: libvir
ExclusiveArch: i386 x86_64 ia64 ExclusiveArch: i386 x86_64 ia64
@ -65,6 +66,8 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
install -d -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/run/libvirt/
%find_lang %{name} %find_lang %{name}
%clean %clean
@ -83,6 +86,8 @@ rm -fr %{buildroot}
%doc %{_mandir}/man1/virsh.1* %doc %{_mandir}/man1/virsh.1*
%{_bindir}/virsh %{_bindir}/virsh
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.*
%config %{_sysconfdir}/libvirt/qemu/networks/
%{_localstatedir}/run/libvirt/
%attr(4755, root, root) %{_libexecdir}/libvirt_proxy %attr(4755, root, root) %{_libexecdir}/libvirt_proxy
%attr(0755, root, root) %{_libexecdir}/libvirt_qemud %attr(0755, root, root) %{_libexecdir}/libvirt_qemud
%doc docs/libvirt.rng %doc docs/libvirt.rng