2011-11-28 18:04:38 +00:00
|
|
|
# -*- rpm-spec -*-
|
|
|
|
|
|
|
|
%define with_introspection 0
|
2011-12-19 14:54:56 +00:00
|
|
|
%define with_vala 0
|
2011-11-28 18:04:38 +00:00
|
|
|
|
|
|
|
%if 0%{?fedora} >= 15
|
|
|
|
%define with_introspection 1
|
|
|
|
%endif
|
|
|
|
%if 0%{?rhel} > 6
|
|
|
|
%define with_introspection 1
|
|
|
|
%endif
|
2012-05-15 16:36:00 +00:00
|
|
|
%define with_vala %{with_introspection}
|
2011-11-28 18:04:38 +00:00
|
|
|
|
2015-12-16 18:05:18 +00:00
|
|
|
%define libvirt_version 1.1.1
|
2012-04-27 16:53:11 +00:00
|
|
|
|
2011-11-28 18:04:38 +00:00
|
|
|
Name: libvirt-glib
|
2016-11-04 17:06:45 +00:00
|
|
|
Version: 1.0.0
|
2017-07-26 19:56:41 +00:00
|
|
|
Release: 3%{?dist}%{?extra_release}
|
2011-11-28 18:04:38 +00:00
|
|
|
Summary: libvirt glib integration for events
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://libvirt.org/
|
|
|
|
Source0: ftp://libvirt.org/libvirt/glib/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2014-08-20 15:41:44 +00:00
|
|
|
BuildRequires: glib2-devel >= 2.36.0
|
2012-04-27 16:53:11 +00:00
|
|
|
BuildRequires: libvirt-devel >= %{libvirt_version}
|
2011-11-28 18:04:38 +00:00
|
|
|
%if %{with_introspection}
|
|
|
|
BuildRequires: gobject-introspection-devel
|
|
|
|
%if 0%{?fedora} == 12
|
|
|
|
BuildRequires: gir-repository-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
# Hack due to https://bugzilla.redhat.com/show_bug.cgi?id=613466
|
|
|
|
BuildRequires: libtool
|
2011-12-19 14:54:56 +00:00
|
|
|
%if %{with_vala}
|
|
|
|
BuildRequires: vala-tools
|
|
|
|
%endif
|
2016-11-04 17:19:06 +00:00
|
|
|
BuildRequires: intltool
|
2011-11-28 18:04:38 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: libvirt glib integration for events development files
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%package -n libvirt-gconfig
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: libvirt object APIs for processing object configuration
|
|
|
|
|
|
|
|
%package -n libvirt-gobject
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: libvirt object APIs for managing virtualization hosts
|
|
|
|
|
|
|
|
%package -n libvirt-gconfig-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: libvirt object APIs for processing object configuration development files
|
|
|
|
Requires: libvirt-gconfig = %{version}-%{release}
|
|
|
|
|
|
|
|
%package -n libvirt-gobject-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: libvirt object APIs for managing virtualization hosts development files
|
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
Requires: libvirt-gconfig-devel = %{version}-%{release}
|
|
|
|
Requires: libvirt-gobject = %{version}-%{release}
|
2012-04-27 16:53:11 +00:00
|
|
|
Requires: libvirt-devel >= %{libvirt_version}
|
2011-11-28 18:04:38 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides integration between libvirt and the glib
|
|
|
|
event loop.
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides development header files and libraries for
|
|
|
|
integration between libvirt and the glib event loop.
|
|
|
|
|
|
|
|
%description -n libvirt-gconfig
|
|
|
|
This package provides APIs for processing the object configuration
|
|
|
|
data
|
|
|
|
|
|
|
|
%description -n libvirt-gconfig-devel
|
|
|
|
This package provides development header files and libraries for
|
|
|
|
the object configuration APIs.
|
|
|
|
|
|
|
|
%description -n libvirt-gobject
|
|
|
|
This package provides APIs for managing virtualization host
|
|
|
|
objects
|
|
|
|
|
|
|
|
%description -n libvirt-gobject-devel
|
|
|
|
This package provides development header files and libraries for
|
|
|
|
managing virtualization host objects
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%if %{with_introspection}
|
|
|
|
%define introspection_arg --enable-introspection
|
|
|
|
%else
|
|
|
|
%define introspection_arg --disable-introspection
|
|
|
|
%endif
|
|
|
|
|
2016-11-04 17:06:45 +00:00
|
|
|
%configure %{introspection_arg}
|
2011-11-28 18:04:38 +00:00
|
|
|
%__make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%__make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-glib-1.0.a
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-glib-1.0.la
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-gconfig-1.0.a
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-gconfig-1.0.la
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-gobject-1.0.a
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-gobject-1.0.la
|
|
|
|
|
2014-02-21 16:04:10 +00:00
|
|
|
%find_lang %{name}
|
|
|
|
|
2011-11-28 18:04:38 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libvirt-gconfig -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libvirt-gconfig -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libvirt-gobject -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libvirt-gobject -p /sbin/ldconfig
|
|
|
|
|
2014-02-21 16:04:10 +00:00
|
|
|
%files -f %{name}.lang
|
2011-11-28 18:04:38 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README COPYING AUTHORS ChangeLog NEWS
|
|
|
|
%{_libdir}/libvirt-glib-1.0.so.*
|
|
|
|
%if %{with_introspection}
|
|
|
|
%{_libdir}/girepository-1.0/LibvirtGLib-1.0.typelib
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n libvirt-gconfig
|
|
|
|
%{_libdir}/libvirt-gconfig-1.0.so.*
|
|
|
|
%if %{with_introspection}
|
|
|
|
%{_libdir}/girepository-1.0/LibvirtGConfig-1.0.typelib
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n libvirt-gobject
|
|
|
|
%{_libdir}/libvirt-gobject-1.0.so.*
|
|
|
|
%if %{with_introspection}
|
|
|
|
%{_libdir}/girepository-1.0/LibvirtGObject-1.0.typelib
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc examples/event-test.c
|
|
|
|
%{_libdir}/libvirt-glib-1.0.so
|
|
|
|
%{_libdir}/pkgconfig/libvirt-glib-1.0.pc
|
|
|
|
%dir %{_includedir}/libvirt-glib-1.0
|
|
|
|
%dir %{_includedir}/libvirt-glib-1.0/libvirt-glib
|
|
|
|
%{_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib.h
|
|
|
|
%{_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib-*.h
|
|
|
|
%if %{with_introspection}
|
|
|
|
%{_datadir}/gir-1.0/LibvirtGLib-1.0.gir
|
|
|
|
%endif
|
|
|
|
%{_datadir}/gtk-doc/html/Libvirt-glib
|
2014-08-20 15:41:44 +00:00
|
|
|
%if %{with_vala}
|
|
|
|
%{_datadir}/vala/vapi/libvirt-glib-1.0.vapi
|
|
|
|
%endif
|
2011-11-28 18:04:38 +00:00
|
|
|
|
|
|
|
%files -n libvirt-gconfig-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc examples/event-test.c
|
|
|
|
%{_libdir}/libvirt-gconfig-1.0.so
|
|
|
|
%{_libdir}/pkgconfig/libvirt-gconfig-1.0.pc
|
|
|
|
%dir %{_includedir}/libvirt-gconfig-1.0
|
|
|
|
%dir %{_includedir}/libvirt-gconfig-1.0/libvirt-gconfig
|
|
|
|
%{_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig.h
|
|
|
|
%{_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig-*.h
|
|
|
|
%if %{with_introspection}
|
|
|
|
%{_datadir}/gir-1.0/LibvirtGConfig-1.0.gir
|
|
|
|
%endif
|
|
|
|
%{_datadir}/gtk-doc/html/Libvirt-gconfig
|
2014-08-20 15:41:44 +00:00
|
|
|
%if %{with_vala}
|
|
|
|
%{_datadir}/vala/vapi/libvirt-gconfig-1.0.vapi
|
|
|
|
%endif
|
2011-11-28 18:04:38 +00:00
|
|
|
|
|
|
|
%files -n libvirt-gobject-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc examples/event-test.c
|
|
|
|
%{_libdir}/libvirt-gobject-1.0.so
|
|
|
|
%{_libdir}/pkgconfig/libvirt-gobject-1.0.pc
|
|
|
|
%dir %{_includedir}/libvirt-gobject-1.0
|
|
|
|
%dir %{_includedir}/libvirt-gobject-1.0/libvirt-gobject
|
|
|
|
%{_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject.h
|
|
|
|
%{_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject-*.h
|
|
|
|
%if %{with_introspection}
|
|
|
|
%{_datadir}/gir-1.0/LibvirtGObject-1.0.gir
|
|
|
|
%endif
|
|
|
|
%{_datadir}/gtk-doc/html/Libvirt-gobject
|
2014-08-20 15:41:44 +00:00
|
|
|
%if %{with_vala}
|
|
|
|
%{_datadir}/vala/vapi/libvirt-gobject-1.0.deps
|
|
|
|
%{_datadir}/vala/vapi/libvirt-gobject-1.0.vapi
|
|
|
|
%endif
|
2011-11-28 18:04:38 +00:00
|
|
|
|
|
|
|
%changelog
|
2017-07-26 19:56:41 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 19:39:48 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-11-04 17:06:45 +00:00
|
|
|
* Fri Nov 4 2016 Daniel P. Berrange <berrange@redhat.com> - 1.0.0-1
|
|
|
|
- Update to 1.0.0 release
|
|
|
|
|
2016-02-04 04:07:06 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-12-16 18:05:18 +00:00
|
|
|
* Wed Dec 16 2015 Daniel P. Berrange <berrange@redhat.com> - 0.2.3-1
|
|
|
|
- Update to 0.2.3 release
|
|
|
|
|
2015-08-18 21:27:04 +00:00
|
|
|
* Tue Aug 18 2015 Kalev Lember <klember@redhat.com> - 0.2.2-1
|
|
|
|
- Update to 0.2.2 release
|
|
|
|
|
2015-06-16 16:17:45 +00:00
|
|
|
* Tue Jun 16 2015 Daniel P. Berrange <berrange@redhat.com> - 0.2.1-1
|
|
|
|
- Update to 0.2.1 release
|
|
|
|
|
2014-12-15 16:32:13 +00:00
|
|
|
* Mon Dec 15 2014 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-1
|
|
|
|
- Update to 0.2.0 release
|
|
|
|
|
2014-08-20 15:41:44 +00:00
|
|
|
* Wed Aug 20 2014 Daniel P. Berrange <berrange@redhat.com> - 0.1.9-1
|
|
|
|
- Update to 0.1.9 release
|
|
|
|
|
2014-08-17 06:40:08 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.8-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-07-22 17:59:31 +00:00
|
|
|
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.8-3
|
|
|
|
- Rebuilt for gobject-introspection 1.41.4
|
|
|
|
|
2014-06-07 05:56:31 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-02-21 16:17:46 +00:00
|
|
|
* Fri Feb 21 2014 Daniel P. Berrange <berrange@redhat.com> - 0.1.8-1
|
|
|
|
- Update to 0.1.8 release
|
|
|
|
|
2013-08-03 07:24:07 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-08 18:55:23 +00:00
|
|
|
* Mon Jul 8 2013 Daniel P. Berrange <berrange@redhat.com> - 0.1.7-1
|
|
|
|
- Update to 0.1.7 release
|
|
|
|
|
2013-03-18 15:47:35 +00:00
|
|
|
* Mon Mar 18 2013 Daniel P. Berrange <berrange@redhat.com> - 0.1.6-1
|
|
|
|
- Update to 0.1.6 release
|
|
|
|
|
2013-02-14 05:26:58 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-14 18:33:10 +00:00
|
|
|
* Mon Jan 14 2013 Daniel P. Berrange <berrange@redhat.com> - 0.1.5-1
|
|
|
|
- Update to 0.1.5 release
|
|
|
|
|
2012-11-16 17:30:48 +00:00
|
|
|
* Fri Nov 16 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.4-1
|
|
|
|
- Update to 0.1.4 release
|
|
|
|
|
2012-10-08 15:10:30 +00:00
|
|
|
* Mon Oct 8 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.3-1
|
|
|
|
- Update to 0.1.3 release
|
|
|
|
|
2012-08-20 17:43:38 +00:00
|
|
|
* Mon Aug 20 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.2-1
|
|
|
|
- Update to 0.1.2 release
|
|
|
|
|
2012-08-07 10:22:44 +00:00
|
|
|
* Tue Aug 7 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.1-1
|
|
|
|
- Update to 0.1.1 release
|
|
|
|
|
2012-07-19 21:33:34 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-16 13:46:52 +00:00
|
|
|
* Mon Jul 16 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.0-1
|
|
|
|
- Update to 0.1.0 release
|
|
|
|
|
2012-06-25 15:46:03 +00:00
|
|
|
* Mon Jun 25 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.9-1
|
|
|
|
- Update to 0.0.9 release
|
|
|
|
|
2012-05-16 07:24:43 +00:00
|
|
|
* Wed May 16 2012 Christophe Fergeau <cfergeau@redhat.com> - 0.0.8-2
|
|
|
|
- Bump release number (no build pushed until there are more useful changes
|
|
|
|
in there)
|
|
|
|
- Fixed conditional to ensure vala bindings are built for Fedora >= 15
|
|
|
|
and for RHEL > 6
|
|
|
|
|
2012-04-27 16:53:11 +00:00
|
|
|
* Fri Apr 27 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.8-1
|
|
|
|
- Update to 0.0.8 release
|
|
|
|
|
2012-03-30 15:16:58 +00:00
|
|
|
* Fri Mar 30 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.7-1
|
|
|
|
- Update to 0.0.7 release
|
|
|
|
|
2012-03-06 17:08:09 +00:00
|
|
|
* Tue Mar 06 2012 Christophe Fergeau <cfergeau@redhat.com> - 0.0.6-1
|
|
|
|
- Update to 0.0.6 release
|
|
|
|
|
2012-02-20 15:50:33 +00:00
|
|
|
* Mon Feb 20 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.5-1
|
|
|
|
- Update to 0.0.5 release
|
|
|
|
|
2012-01-12 20:56:10 +00:00
|
|
|
* Thu Jan 12 2012 Daniel P. Berrange <berrange@redhat.com> - 0.0.4-1
|
|
|
|
- Update to 0.0.4 release
|
|
|
|
|
2011-12-19 14:54:56 +00:00
|
|
|
* Mon Dec 19 2011 Daniel P. Berrange <berrange@redhat.com> - 0.0.3-1
|
|
|
|
- Update to 0.0.3 release
|
|
|
|
|
2011-11-28 18:04:38 +00:00
|
|
|
* Tue Nov 22 2011 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-1
|
|
|
|
- Update to 0.0.2 release
|
|
|
|
|
|
|
|
* Tue Nov 22 2011 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-2
|
|
|
|
- Remove gjs-devel BR
|
|
|
|
- Add missing ldconfig post/postun scripts
|
|
|
|
- Fixed conditional to ensure python is disabled for Fedora >= 15
|
|
|
|
|
|
|
|
* Mon Nov 14 2011 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-1
|
|
|
|
- Initial release
|
|
|
|
|