|
|
68b26da |
# -*- rpm-spec -*-
|
|
|
68b26da |
|
|
|
68b26da |
%define with_introspection 0
|
|
|
68b26da |
%define with_python 0
|
|
|
1e45ce4 |
%define with_vala 0
|
|
|
68b26da |
|
|
|
68b26da |
%if 0%{?fedora} >= 15
|
|
|
68b26da |
%define with_introspection 1
|
|
|
68b26da |
%endif
|
|
|
68b26da |
%if 0%{?fedora} && 0%{?fedora} < 15
|
|
|
68b26da |
%define with_python 1
|
|
|
68b26da |
%endif
|
|
|
68b26da |
%if 0%{?rhel} > 6
|
|
|
68b26da |
%define with_introspection 1
|
|
|
68b26da |
%endif
|
|
|
68b26da |
%if 0%{?rhel} && 0%{?rhel} < 7
|
|
|
68b26da |
%define with_python 1
|
|
|
68b26da |
%endif
|
|
|
90378af |
%define with_vala %{with_introspection}
|
|
|
68b26da |
|
|
|
7118517 |
%define libvirt_version 0.9.10
|
|
|
7118517 |
|
|
|
68b26da |
Name: libvirt-glib
|
|
|
bd3bfc2 |
Version: 0.0.9
|
|
|
bd3bfc2 |
Release: 1%{?dist}%{?extra_release}
|
|
|
68b26da |
Summary: libvirt glib integration for events
|
|
|
68b26da |
Group: Development/Libraries
|
|
|
68b26da |
License: LGPLv2+
|
|
|
68b26da |
URL: http://libvirt.org/
|
|
|
68b26da |
Source0: ftp://libvirt.org/libvirt/glib/%{name}-%{version}.tar.gz
|
|
|
68b26da |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
68b26da |
|
|
|
a3da12a |
BuildRequires: glib2-devel >= 2.22.0
|
|
|
7118517 |
BuildRequires: libvirt-devel >= %{libvirt_version}
|
|
|
68b26da |
BuildRequires: python-devel
|
|
|
68b26da |
%if %{with_introspection}
|
|
|
68b26da |
BuildRequires: gobject-introspection-devel
|
|
|
68b26da |
%if 0%{?fedora} == 12
|
|
|
68b26da |
BuildRequires: gir-repository-devel
|
|
|
68b26da |
%endif
|
|
|
68b26da |
%endif
|
|
|
68b26da |
BuildRequires: libxml2-devel
|
|
|
68b26da |
# Hack due to https://bugzilla.redhat.com/show_bug.cgi?id=613466
|
|
|
68b26da |
BuildRequires: libtool
|
|
|
1e45ce4 |
%if %{with_vala}
|
|
|
1e45ce4 |
BuildRequires: vala-tools
|
|
|
1e45ce4 |
%endif
|
|
|
68b26da |
|
|
|
68b26da |
%package devel
|
|
|
68b26da |
Group: Development/Libraries
|
|
|
68b26da |
Summary: libvirt glib integration for events development files
|
|
|
68b26da |
Requires: %{name} = %{version}-%{release}
|
|
|
68b26da |
|
|
|
68b26da |
%package -n libvirt-gconfig
|
|
|
68b26da |
Group: Development/Libraries
|
|
|
68b26da |
Summary: libvirt object APIs for processing object configuration
|
|
|
68b26da |
|
|
|
68b26da |
%package -n libvirt-gobject
|
|
|
68b26da |
Group: Development/Libraries
|
|
|
68b26da |
Summary: libvirt object APIs for managing virtualization hosts
|
|
|
68b26da |
|
|
|
68b26da |
%package -n libvirt-gconfig-devel
|
|
|
68b26da |
Group: Development/Libraries
|
|
|
68b26da |
Summary: libvirt object APIs for processing object configuration development files
|
|
|
68b26da |
Requires: libvirt-gconfig = %{version}-%{release}
|
|
|
68b26da |
|
|
|
68b26da |
%package -n libvirt-gobject-devel
|
|
|
68b26da |
Group: Development/Libraries
|
|
|
68b26da |
Summary: libvirt object APIs for managing virtualization hosts development files
|
|
|
68b26da |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
68b26da |
Requires: libvirt-gconfig-devel = %{version}-%{release}
|
|
|
68b26da |
Requires: libvirt-gobject = %{version}-%{release}
|
|
|
7118517 |
Requires: libvirt-devel >= %{libvirt_version}
|
|
|
68b26da |
|
|
|
68b26da |
%if %{with_python}
|
|
|
68b26da |
%package python
|
|
|
68b26da |
Group: Development/Libraries
|
|
|
68b26da |
Summary: libvirt glib integration for events python binding
|
|
|
68b26da |
%endif
|
|
|
68b26da |
|
|
|
68b26da |
%description
|
|
|
68b26da |
This package provides integration between libvirt and the glib
|
|
|
68b26da |
event loop.
|
|
|
68b26da |
|
|
|
68b26da |
%description devel
|
|
|
68b26da |
This package provides development header files and libraries for
|
|
|
68b26da |
integration between libvirt and the glib event loop.
|
|
|
68b26da |
|
|
|
68b26da |
%description -n libvirt-gconfig
|
|
|
68b26da |
This package provides APIs for processing the object configuration
|
|
|
68b26da |
data
|
|
|
68b26da |
|
|
|
68b26da |
%description -n libvirt-gconfig-devel
|
|
|
68b26da |
This package provides development header files and libraries for
|
|
|
68b26da |
the object configuration APIs.
|
|
|
68b26da |
|
|
|
68b26da |
%description -n libvirt-gobject
|
|
|
68b26da |
This package provides APIs for managing virtualization host
|
|
|
68b26da |
objects
|
|
|
68b26da |
|
|
|
68b26da |
%description -n libvirt-gobject-devel
|
|
|
68b26da |
This package provides development header files and libraries for
|
|
|
68b26da |
managing virtualization host objects
|
|
|
68b26da |
|
|
|
68b26da |
%if %{with_python}
|
|
|
68b26da |
%description python
|
|
|
68b26da |
This package provides a python module for integration between
|
|
|
68b26da |
libvirt and the glib event loop
|
|
|
68b26da |
%endif
|
|
|
68b26da |
|
|
|
68b26da |
%prep
|
|
|
68b26da |
%setup -q
|
|
|
68b26da |
|
|
|
68b26da |
%build
|
|
|
68b26da |
|
|
|
68b26da |
%if %{with_introspection}
|
|
|
68b26da |
%define introspection_arg --enable-introspection
|
|
|
68b26da |
%else
|
|
|
68b26da |
%define introspection_arg --disable-introspection
|
|
|
68b26da |
%endif
|
|
|
68b26da |
%if %{with_python}
|
|
|
68b26da |
%define python_arg --with-python
|
|
|
68b26da |
%else
|
|
|
68b26da |
%define python_arg --without-python
|
|
|
68b26da |
%endif
|
|
|
68b26da |
|
|
|
68b26da |
%configure %{introspection_arg} %{python_arg}
|
|
|
68b26da |
%__make %{?_smp_mflags}
|
|
|
68b26da |
|
|
|
68b26da |
|
|
|
68b26da |
%install
|
|
|
68b26da |
rm -rf $RPM_BUILD_ROOT
|
|
|
68b26da |
%__make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
68b26da |
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-glib-1.0.a
|
|
|
68b26da |
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-glib-1.0.la
|
|
|
68b26da |
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-gconfig-1.0.a
|
|
|
68b26da |
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-gconfig-1.0.la
|
|
|
68b26da |
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-gobject-1.0.a
|
|
|
68b26da |
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-gobject-1.0.la
|
|
|
68b26da |
|
|
|
68b26da |
%clean
|
|
|
68b26da |
rm -rf $RPM_BUILD_ROOT
|
|
|
68b26da |
|
|
|
68b26da |
%post -p /sbin/ldconfig
|
|
|
68b26da |
|
|
|
68b26da |
%postun -p /sbin/ldconfig
|
|
|
68b26da |
|
|
|
68b26da |
%post -n libvirt-gconfig -p /sbin/ldconfig
|
|
|
68b26da |
|
|
|
68b26da |
%postun -n libvirt-gconfig -p /sbin/ldconfig
|
|
|
68b26da |
|
|
|
68b26da |
%post -n libvirt-gobject -p /sbin/ldconfig
|
|
|
68b26da |
|
|
|
68b26da |
%postun -n libvirt-gobject -p /sbin/ldconfig
|
|
|
68b26da |
|
|
|
68b26da |
%files
|
|
|
68b26da |
%defattr(-,root,root,-)
|
|
|
68b26da |
%doc README COPYING AUTHORS ChangeLog NEWS
|
|
|
68b26da |
%{_libdir}/libvirt-glib-1.0.so.*
|
|
|
68b26da |
%if %{with_introspection}
|
|
|
68b26da |
%{_libdir}/girepository-1.0/LibvirtGLib-1.0.typelib
|
|
|
68b26da |
%endif
|
|
|
1e45ce4 |
%if %{with_vala}
|
|
|
1e45ce4 |
%{_datadir}/vala/vapi/libvirt-glib-1.0.vapi
|
|
|
1e45ce4 |
%endif
|
|
|
68b26da |
|
|
|
68b26da |
%files -n libvirt-gconfig
|
|
|
68b26da |
%{_libdir}/libvirt-gconfig-1.0.so.*
|
|
|
68b26da |
%if %{with_introspection}
|
|
|
68b26da |
%{_libdir}/girepository-1.0/LibvirtGConfig-1.0.typelib
|
|
|
68b26da |
%endif
|
|
|
1e45ce4 |
%if %{with_vala}
|
|
|
1e45ce4 |
%{_datadir}/vala/vapi/libvirt-gconfig-1.0.vapi
|
|
|
1e45ce4 |
%endif
|
|
|
68b26da |
|
|
|
68b26da |
%files -n libvirt-gobject
|
|
|
68b26da |
%{_libdir}/libvirt-gobject-1.0.so.*
|
|
|
68b26da |
%if %{with_introspection}
|
|
|
68b26da |
%{_libdir}/girepository-1.0/LibvirtGObject-1.0.typelib
|
|
|
68b26da |
%endif
|
|
|
1e45ce4 |
%if %{with_vala}
|
|
|
1e45ce4 |
%{_datadir}/vala/vapi/libvirt-gobject-1.0.deps
|
|
|
1e45ce4 |
%{_datadir}/vala/vapi/libvirt-gobject-1.0.vapi
|
|
|
1e45ce4 |
%endif
|
|
|
68b26da |
|
|
|
68b26da |
%files devel
|
|
|
68b26da |
%defattr(-,root,root,-)
|
|
|
68b26da |
%doc examples/event-test.c
|
|
|
68b26da |
%{_libdir}/libvirt-glib-1.0.so
|
|
|
68b26da |
%{_libdir}/pkgconfig/libvirt-glib-1.0.pc
|
|
|
68b26da |
%dir %{_includedir}/libvirt-glib-1.0
|
|
|
68b26da |
%dir %{_includedir}/libvirt-glib-1.0/libvirt-glib
|
|
|
68b26da |
%{_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib.h
|
|
|
68b26da |
%{_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib-*.h
|
|
|
68b26da |
%if %{with_introspection}
|
|
|
68b26da |
%{_datadir}/gir-1.0/LibvirtGLib-1.0.gir
|
|
|
68b26da |
%endif
|
|
|
68b26da |
%{_datadir}/gtk-doc/html/Libvirt-glib
|
|
|
68b26da |
|
|
|
68b26da |
%files -n libvirt-gconfig-devel
|
|
|
68b26da |
%defattr(-,root,root,-)
|
|
|
68b26da |
%doc examples/event-test.c
|
|
|
68b26da |
%{_libdir}/libvirt-gconfig-1.0.so
|
|
|
68b26da |
%{_libdir}/pkgconfig/libvirt-gconfig-1.0.pc
|
|
|
68b26da |
%dir %{_includedir}/libvirt-gconfig-1.0
|
|
|
68b26da |
%dir %{_includedir}/libvirt-gconfig-1.0/libvirt-gconfig
|
|
|
68b26da |
%{_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig.h
|
|
|
68b26da |
%{_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig-*.h
|
|
|
68b26da |
%if %{with_introspection}
|
|
|
68b26da |
%{_datadir}/gir-1.0/LibvirtGConfig-1.0.gir
|
|
|
68b26da |
%endif
|
|
|
68b26da |
%{_datadir}/gtk-doc/html/Libvirt-gconfig
|
|
|
68b26da |
|
|
|
68b26da |
%files -n libvirt-gobject-devel
|
|
|
68b26da |
%defattr(-,root,root,-)
|
|
|
68b26da |
%doc examples/event-test.c
|
|
|
68b26da |
%{_libdir}/libvirt-gobject-1.0.so
|
|
|
68b26da |
%{_libdir}/pkgconfig/libvirt-gobject-1.0.pc
|
|
|
68b26da |
%dir %{_includedir}/libvirt-gobject-1.0
|
|
|
68b26da |
%dir %{_includedir}/libvirt-gobject-1.0/libvirt-gobject
|
|
|
68b26da |
%{_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject.h
|
|
|
68b26da |
%{_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject-*.h
|
|
|
68b26da |
%if %{with_introspection}
|
|
|
68b26da |
%{_datadir}/gir-1.0/LibvirtGObject-1.0.gir
|
|
|
68b26da |
%endif
|
|
|
68b26da |
%{_datadir}/gtk-doc/html/Libvirt-gobject
|
|
|
68b26da |
|
|
|
68b26da |
%if %{with_python}
|
|
|
68b26da |
%files python
|
|
|
68b26da |
%defattr(-,root,root,-)
|
|
|
68b26da |
%doc examples/event-test.py
|
|
|
68b26da |
%{_libdir}/python*/site-packages/libvirtglib.py*
|
|
|
68b26da |
%{_libdir}/python*/site-packages/libvirtglibmod*
|
|
|
68b26da |
%endif
|
|
|
68b26da |
|
|
|
68b26da |
%changelog
|
|
|
bd3bfc2 |
* Mon Jun 25 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.9-1
|
|
|
bd3bfc2 |
- Update to 0.0.9 release
|
|
|
bd3bfc2 |
|
|
|
d300113 |
* Wed May 16 2012 Christophe Fergeau <cfergeau@redhat.com> - 0.0.8-2
|
|
|
d300113 |
- Bump release number (no build pushed until there are more useful changes
|
|
|
d300113 |
in there)
|
|
|
d300113 |
- Fixed conditional to ensure vala bindings are built for Fedora >= 15
|
|
|
d300113 |
and for RHEL > 6
|
|
|
d300113 |
|
|
|
7118517 |
* Fri Apr 27 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.8-1
|
|
|
7118517 |
- Update to 0.0.8 release
|
|
|
7118517 |
|
|
|
85c416d |
* Fri Mar 30 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.7-1
|
|
|
85c416d |
- Update to 0.0.7 release
|
|
|
85c416d |
|
|
|
a3b1fa4 |
* Tue Mar 06 2012 Christophe Fergeau <cfergeau@redhat.com> - 0.0.6-1
|
|
|
a3b1fa4 |
- Update to 0.0.6 release
|
|
|
a3b1fa4 |
|
|
|
a3da12a |
* Mon Feb 20 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.5-1
|
|
|
a3da12a |
- Update to 0.0.5 release
|
|
|
a3da12a |
|
|
|
0cf26c1 |
* Thu Jan 12 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.4-1
|
|
|
0cf26c1 |
- Update to 0.0.4 release
|
|
|
0cf26c1 |
|
|
|
1e45ce4 |
* Mon Dec 19 2011 Daniel P. Berrange <berrange@redhat.com> - 0.0.3-1
|
|
|
1e45ce4 |
- Update to 0.0.3 release
|
|
|
1e45ce4 |
|
|
|
68b26da |
* Tue Nov 22 2011 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-1
|
|
|
68b26da |
- Update to 0.0.2 release
|
|
|
68b26da |
|
|
|
68b26da |
* Tue Nov 22 2011 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-2
|
|
|
68b26da |
- Remove gjs-devel BR
|
|
|
68b26da |
- Add missing ldconfig post/postun scripts
|
|
|
68b26da |
- Fixed conditional to ensure python is disabled for Fedora >= 15
|
|
|
68b26da |
|
|
|
68b26da |
* Mon Nov 14 2011 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-1
|
|
|
68b26da |
- Initial release
|
|
|
68b26da |
|