libosinfo/libosinfo.spec
Ismail Dönmez 90e219a72e Accepting request 93532 from home:dimstar:gnome-boxes
New package for Factory, dependency for gnome-boxes. Hardware seems to be the best fit for this library...

OBS-URL: https://build.opensuse.org/request/show/93532
OBS-URL: https://build.opensuse.org/package/show/hardware/libosinfo?expand=0&rev=1
2011-11-24 21:21:12 +00:00

100 lines
3.6 KiB
RPMSpec

#
# spec file for package
#
# 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/
#
Name: libosinfo
Version: 0.0.2
Release: 1
License: LGPL-2.1+
Summary: Manage information about operating systems and hypervisors
Url: https://fedorahosted.org/libosinfo/
Group: System/Libraries
Source: https://fedorahosted.org/releases/l/i/libosinfo/%{name}-%{version}.tar.gz
BuildRequires: vala
BuildRequires: pkgconfig(check)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libosinfo is a GObject based library API for managing information about operating systems,
hypervisors and the (virtual) hardware devices they can support. It includes a database
containing device metadata and provides APIs to match/identify optimal devices for
deploying an operating system on a hypervisor. Via the magic of GObject Introspection,
the API is available in all common programming languages.
%package -n libosinfo-1_0-0
Summary: Manage information about operating systems and hypervisors
Group: System/Libraries
%description -n libosinfo-1_0-0
libosinfo is a GObject based library API for managing information about operating systems,
hypervisors and the (virtual) hardware devices they can support. It includes a database
containing device metadata and provides APIs to match/identify optimal devices for
deploying an operating system on a hypervisor. Via the magic of GObject Introspection,
the API is available in all common programming languages.
%package devel
Summary: Manage information about operating systems and hypervisors - Development Files
Group: Development/Languages/C and C++
Requires: libosinfo-1_0-0 = %{version}
%description devel
libosinfo is a GObject based library API for managing information about operating systems,
hypervisors and the (virtual) hardware devices they can support. It includes a database
containing device metadata and provides APIs to match/identify optimal devices for
deploying an operating system on a hypervisor. Via the magic of GObject Introspection,
the API is available in all common programming languages.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/osinfo-detect
%{_bindir}/osinfo-pciids-convert
%{_bindir}/osinfo-usbids-convert
%{_datadir}/%{name}/
%files -n libosinfo-1_0-0
%defattr(-, root, root)
%{_libdir}/libosinfo-1.0.so.*
%{_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
%dir %{_datadir}/vala/
%dir %{_datadir}/vala/vapi/
%{_datadir}/vala/vapi/libosinfo-1.0.vapi
%changelog