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