68 lines
1.8 KiB
RPMSpec
68 lines
1.8 KiB
RPMSpec
Name: libvirt-glib
|
|
Version: 1.0.0
|
|
Release: 8
|
|
Summary: libvirt glib integration for events
|
|
License: LGPLv2+
|
|
URL: http://libvirt.org/
|
|
Source0: ftp://libvirt.org/libvirt/glib/%{name}-%{version}.tar.gz
|
|
BuildRequires: glib2-devel >= 2.36.0 libvirt-devel >= 1.1.1 gobject-introspection-devel libxml2-devel libtool vala-tools intltool
|
|
Provides: libvirt-gconfig libvirt-gobject
|
|
Obsoletes: libvirt-gconfig libvirt-gobject
|
|
|
|
%description
|
|
This package provides integration between libvirt and the glib event loop.
|
|
|
|
|
|
%package devel
|
|
Summary: libvirt glib integration for events development files
|
|
Requires: %{name} = %{version}-%{release} libvirt-devel >= 1.1.1
|
|
Provides: libvirt-gconfig-devel libvirt-gobject-devel
|
|
Obsoletes: libvirt-gconfig-devel libvirt-gobject-devel
|
|
|
|
%description devel
|
|
This package provides development header files and libraries for integration between libvirt and the glib event loop.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --enable-introspection
|
|
%make_build
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-g*a
|
|
|
|
%find_lang %{name}
|
|
|
|
%check
|
|
if ! make %{?_smp_mflags} check; then
|
|
cat tests/test-suite.log || true
|
|
exit 1
|
|
fi
|
|
|
|
%ldconfig_post
|
|
%ldconfig_postun
|
|
|
|
%files -f %{name}.lang
|
|
%doc README COPYING AUTHORS ChangeLog NEWS
|
|
%{_libdir}/libvirt-g*-1.0.so.*
|
|
%{_libdir}/girepository-1.0/LibvirtG*-1.0.typelib
|
|
|
|
%files devel
|
|
%doc examples/event-test.c
|
|
%{_libdir}/*-1.0.so
|
|
%{_libdir}/pkgconfig/*-1.0.pc
|
|
%dir %{_includedir}/*-1.0
|
|
%dir %{_includedir}/*-1.0/libvirt-g*
|
|
%{_includedir}/*-1.0/libvirt-g*/*.h
|
|
%{_datadir}/gir-1.0/*-1.0.gir
|
|
%{_datadir}/gtk-doc/html/Libvirt-g*
|
|
%{_datadir}/vala/vapi/libvirt-g*
|
|
|
|
%changelog
|
|
* Sat Nov 30 2019 chenzhenyu <chenzhenyu13@huawei.com> - 1.0.0-8
|
|
- Package init
|