|
|
68b26da |
# -*- rpm-spec -*-
|
|
|
68b26da |
|
|
|
68b26da |
%define with_introspection 0
|
|
|
1e45ce4 |
%define with_vala 0
|
|
|
68b26da |
|
|
|
68b26da |
%if 0%{?fedora} >= 15
|
|
|
68b26da |
%define with_introspection 1
|
|
|
68b26da |
%endif
|
|
|
68b26da |
%if 0%{?rhel} > 6
|
|
|
68b26da |
%define with_introspection 1
|
|
|
68b26da |
%endif
|
|
|
90378af |
%define with_vala %{with_introspection}
|
|
|
68b26da |
|
|
|
730edfe |
%define libvirt_version 1.1.1
|
|
|
7118517 |
|
|
|
68b26da |
Name: libvirt-glib
|
|
|
5daeef2 |
Version: 1.0.0
|
|
|
d4bcacd |
Release: 4%{?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 |
|
|
|
ee6a462 |
BuildRequires: glib2-devel >= 2.36.0
|
|
|
7118517 |
BuildRequires: libvirt-devel >= %{libvirt_version}
|
|
|
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
|
|
|
4fe7f26 |
BuildRequires: intltool
|
|
|
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 |
%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 |
%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 |
|
|
|
5daeef2 |
%configure %{introspection_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 |
|
|
|
d1a0cde |
%find_lang %{name}
|
|
|
d1a0cde |
|
|
|
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 |
|
|
|
d1a0cde |
%files -f %{name}.lang
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
ee6a462 |
%if %{with_vala}
|
|
|
ee6a462 |
%{_datadir}/vala/vapi/libvirt-glib-1.0.vapi
|
|
|
ee6a462 |
%endif
|
|
|
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
|
|
|
ee6a462 |
%if %{with_vala}
|
|
|
ee6a462 |
%{_datadir}/vala/vapi/libvirt-gconfig-1.0.vapi
|
|
|
ee6a462 |
%endif
|
|
|
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
|
|
|
ee6a462 |
%if %{with_vala}
|
|
|
ee6a462 |
%{_datadir}/vala/vapi/libvirt-gobject-1.0.deps
|
|
|
ee6a462 |
%{_datadir}/vala/vapi/libvirt-gobject-1.0.vapi
|
|
|
ee6a462 |
%endif
|
|
|
68b26da |
|
|
|
68b26da |
%changelog
|
|
|
d4bcacd |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
|
|
|
d4bcacd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
d4bcacd |
|
|
|
73c220c |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
|
|
|
73c220c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
73c220c |
|
|
|
c1c1969 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
|
|
c1c1969 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
c1c1969 |
|
|
|
5daeef2 |
* Fri Nov 4 2016 Daniel P. Berrange <berrange@redhat.com> - 1.0.0-1
|
|
|
5daeef2 |
- Update to 1.0.0 release
|
|
|
5daeef2 |
|
|
|
cfd6bc1 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-2
|
|
|
cfd6bc1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
cfd6bc1 |
|
|
|
730edfe |
* Wed Dec 16 2015 Daniel P. Berrange <berrange@redhat.com> - 0.2.3-1
|
|
|
730edfe |
- Update to 0.2.3 release
|
|
|
730edfe |
|
|
|
234527f |
* Tue Aug 18 2015 Kalev Lember <klember@redhat.com> - 0.2.2-1
|
|
|
234527f |
- Update to 0.2.2 release
|
|
|
234527f |
|
|
|
de38bd5 |
* Tue Jun 16 2015 Daniel P. Berrange <berrange@redhat.com> - 0.2.1-1
|
|
|
de38bd5 |
- Update to 0.2.1 release
|
|
|
de38bd5 |
|
|
|
1098f96 |
* Mon Dec 15 2014 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-1
|
|
|
1098f96 |
- Update to 0.2.0 release
|
|
|
1098f96 |
|
|
|
ee6a462 |
* Wed Aug 20 2014 Daniel P. Berrange <berrange@redhat.com> - 0.1.9-1
|
|
|
ee6a462 |
- Update to 0.1.9 release
|
|
|
ee6a462 |
|
|
|
4389c53 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.8-4
|
|
|
4389c53 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
4389c53 |
|
|
|
7404f11 |
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.8-3
|
|
|
7404f11 |
- Rebuilt for gobject-introspection 1.41.4
|
|
|
7404f11 |
|
|
|
8fa60df |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.8-2
|
|
|
8fa60df |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
8fa60df |
|
|
|
464ea5e |
* Fri Feb 21 2014 Daniel P. Berrange <berrange@redhat.com> - 0.1.8-1
|
|
|
464ea5e |
- Update to 0.1.8 release
|
|
|
464ea5e |
|
|
|
bce22ff |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-2
|
|
|
bce22ff |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
bce22ff |
|
|
|
0418e24 |
* Mon Jul 8 2013 Daniel P. Berrange <berrange@redhat.com> - 0.1.7-1
|
|
|
0418e24 |
- Update to 0.1.7 release
|
|
|
0418e24 |
|
|
|
45c1c27 |
* Mon Mar 18 2013 Daniel P. Berrange <berrange@redhat.com> - 0.1.6-1
|
|
|
45c1c27 |
- Update to 0.1.6 release
|
|
|
45c1c27 |
|
|
|
2f84362 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5-2
|
|
|
2f84362 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
2f84362 |
|
|
|
fdac6be |
* Mon Jan 14 2013 Daniel P. Berrange <berrange@redhat.com> - 0.1.5-1
|
|
|
fdac6be |
- Update to 0.1.5 release
|
|
|
fdac6be |
|
|
|
fd0b0d2 |
* Fri Nov 16 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.4-1
|
|
|
fd0b0d2 |
- Update to 0.1.4 release
|
|
|
fd0b0d2 |
|
|
|
dcc8ade |
* Mon Oct 8 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.3-1
|
|
|
dcc8ade |
- Update to 0.1.3 release
|
|
|
dcc8ade |
|
|
|
7577d2d |
* Mon Aug 20 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.2-1
|
|
|
7577d2d |
- Update to 0.1.2 release
|
|
|
7577d2d |
|
|
|
d42f39e |
* Tue Aug 7 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.1-1
|
|
|
d42f39e |
- Update to 0.1.1 release
|
|
|
d42f39e |
|
|
|
178f292 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2
|
|
|
178f292 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
178f292 |
|
|
|
d24fde2 |
* Mon Jul 16 2012 Daniel P. Berrange <berrange@redhat.com> - 0.1.0-1
|
|
|
d24fde2 |
- Update to 0.1.0 release
|
|
|
d24fde2 |
|
|
|
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 |
|