Blame SPECS/libvirt-glib.spec

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