2011-11-24 21:21:12 +00:00
|
|
|
#
|
2012-01-31 10:38:16 +00:00
|
|
|
# spec file for package libosinfo
|
2011-11-24 21:21:12 +00:00
|
|
|
#
|
2017-01-23 21:15:00 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-11-24 21:21:12 +00:00
|
|
|
# Copyright (c) 2011 Dominique Leuenberger, Amsterdam, The Netherlands.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-01-31 10:38:16 +00:00
|
|
|
|
2013-01-15 21:25:52 +00:00
|
|
|
%define with_lang 1
|
2012-12-11 12:50:45 +00:00
|
|
|
|
2011-11-24 21:21:12 +00:00
|
|
|
Name: libosinfo
|
2017-01-23 21:15:00 +00:00
|
|
|
Version: 1.0.0
|
2012-01-31 10:38:16 +00:00
|
|
|
Release: 0
|
2011-11-24 21:21:12 +00:00
|
|
|
Summary: Manage information about operating systems and hypervisors
|
2012-01-31 13:47:54 +00:00
|
|
|
License: LGPL-2.1+ and GPL-2.0+
|
2011-11-24 21:21:12 +00:00
|
|
|
Group: System/Libraries
|
2013-12-19 21:39:16 +00:00
|
|
|
Url: http://libosinfo.org/
|
2016-02-02 16:53:47 +00:00
|
|
|
Source0: https://fedorahosted.org/releases/l/i/libosinfo/%{name}-%{version}.tar.gz
|
2016-02-02 16:04:51 +00:00
|
|
|
Source1: ids.tar.bz2
|
2012-12-11 12:50:45 +00:00
|
|
|
BuildRequires: intltool
|
2011-11-24 21:21:12 +00:00
|
|
|
BuildRequires: vala
|
|
|
|
BuildRequires: pkgconfig(check)
|
2017-01-23 21:15:00 +00:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
2011-11-24 21:21:12 +00:00
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
2012-04-13 14:43:34 +00:00
|
|
|
BuildRequires: pkgconfig(libsoup-2.4)
|
|
|
|
BuildRequires: pkgconfig(libsoup-gnome-2.4)
|
2011-11-24 21:21:12 +00:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2012-09-04 13:14:09 +00:00
|
|
|
BuildRequires: pkgconfig(libxslt) >= 1.0.0
|
2017-01-23 21:15:00 +00:00
|
|
|
Requires: osinfo-db
|
2012-12-11 12:50:45 +00:00
|
|
|
%if %{with_lang}
|
|
|
|
Recommends: %{name}-lang
|
|
|
|
%endif
|
2011-11-24 21:21:12 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2017-01-23 21:15:00 +00:00
|
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
|
|
combination.
|
2011-11-24 21:21:12 +00:00
|
|
|
|
|
|
|
%package -n libosinfo-1_0-0
|
|
|
|
Summary: Manage information about operating systems and hypervisors
|
|
|
|
Group: System/Libraries
|
2012-02-02 20:23:41 +00:00
|
|
|
Requires: %{name} >= %{version}
|
2011-11-24 21:21:12 +00:00
|
|
|
|
|
|
|
%description -n libosinfo-1_0-0
|
2017-01-23 21:15:00 +00:00
|
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
|
|
combination.
|
2011-11-24 21:21:12 +00:00
|
|
|
|
2012-01-31 10:38:16 +00:00
|
|
|
%package -n typelib-1_0-Libosinfo-1_0
|
|
|
|
Summary: Manage information about operating systems and hypervisors
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-Libosinfo-1_0
|
2017-01-23 21:15:00 +00:00
|
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
|
|
combination.
|
2012-01-31 10:38:16 +00:00
|
|
|
|
2011-11-24 21:21:12 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Manage information about operating systems and hypervisors - Development Files
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: libosinfo-1_0-0 = %{version}
|
2012-01-31 10:38:16 +00:00
|
|
|
Requires: typelib-1_0-Libosinfo-1_0 = %{version}
|
2011-11-24 21:21:12 +00:00
|
|
|
|
|
|
|
%description devel
|
2017-01-23 21:15:00 +00:00
|
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
|
|
combination.
|
|
|
|
|
|
|
|
Libraries, includes, etc. to compile with the libosinfo library
|
|
|
|
|
|
|
|
%package vala
|
|
|
|
Summary: Vala bindings
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description vala
|
|
|
|
libosinfo is a library that allows virtualization provisioning tools to
|
|
|
|
determine the optimal device settings for a hypervisor/operating system
|
|
|
|
combination.
|
|
|
|
|
|
|
|
This package provides the Vala bindings for libosinfo library.
|
2011-11-24 21:21:12 +00:00
|
|
|
|
2012-12-11 12:50:45 +00:00
|
|
|
%if %{with_lang}
|
|
|
|
%lang_package
|
|
|
|
%endif
|
2011-11-24 21:21:12 +00:00
|
|
|
%prep
|
2016-02-02 16:04:51 +00:00
|
|
|
%setup -q -a 1
|
2011-11-24 21:21:12 +00:00
|
|
|
|
|
|
|
%build
|
2013-03-18 20:33:44 +00:00
|
|
|
%configure \
|
2017-01-23 21:15:00 +00:00
|
|
|
--disable-static --enable-vala=yes
|
2011-11-24 21:21:12 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2012-12-11 12:50:45 +00:00
|
|
|
%if %{with_lang}
|
|
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
%endif
|
2011-11-24 21:21:12 +00:00
|
|
|
|
2012-01-31 10:38:16 +00:00
|
|
|
%post -n libosinfo-1_0-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libosinfo-1_0-0 -p /sbin/ldconfig
|
|
|
|
|
2011-11-24 21:21:12 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc ChangeLog README COPYING
|
|
|
|
%{_bindir}/osinfo-detect
|
2012-09-04 13:14:09 +00:00
|
|
|
%{_bindir}/osinfo-install-script
|
2012-04-13 14:43:34 +00:00
|
|
|
%{_bindir}/osinfo-query
|
2011-11-24 21:21:12 +00:00
|
|
|
%{_datadir}/%{name}/
|
2012-04-13 14:43:34 +00:00
|
|
|
%{_mandir}/man1/osinfo-detect.1%{?ext_man}
|
2012-09-04 13:14:09 +00:00
|
|
|
%{_mandir}/man1/osinfo-install-script.1%{?ext_man}
|
2012-04-13 14:43:34 +00:00
|
|
|
%{_mandir}/man1/osinfo-query.1%{?ext_man}
|
2011-11-24 21:21:12 +00:00
|
|
|
|
|
|
|
%files -n libosinfo-1_0-0
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libosinfo-1.0.so.*
|
2012-01-31 10:38:16 +00:00
|
|
|
|
|
|
|
%files -n typelib-1_0-Libosinfo-1_0
|
|
|
|
%defattr(-,root,root)
|
2011-11-24 21:21:12 +00:00
|
|
|
%{_libdir}/girepository-1.0/Libosinfo-1.0.typelib
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_datadir}/gtk-doc/html/Libosinfo/
|
|
|
|
%{_includedir}/%{name}-1.0
|
|
|
|
%{_libdir}/pkgconfig/%{name}-1.0.pc
|
|
|
|
%{_libdir}/libosinfo-1.0.so
|
|
|
|
%{_datadir}/gir-1.0/Libosinfo-1.0.gir
|
2017-01-23 21:15:00 +00:00
|
|
|
|
|
|
|
%files vala
|
|
|
|
%defattr(-, root, root)
|
2011-11-24 21:21:12 +00:00
|
|
|
%dir %{_datadir}/vala/
|
|
|
|
%dir %{_datadir}/vala/vapi/
|
|
|
|
%{_datadir}/vala/vapi/libosinfo-1.0.vapi
|
|
|
|
|
2012-12-11 12:50:45 +00:00
|
|
|
%if %{with_lang}
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%endif
|
|
|
|
|
2011-11-24 21:21:12 +00:00
|
|
|
%changelog
|