diff --git a/README.md b/README.md index f58c379..6ca3035 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libosinfo +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 with demos for javascript (GJS/Seed) and python (PyGObject). Also provided are Vala bindings. + diff --git a/libosinfo.spec b/libosinfo.spec new file mode 100644 index 0000000..9ca9b28 --- /dev/null +++ b/libosinfo.spec @@ -0,0 +1,125 @@ +Name: libosinfo +Version: 0.2.11 +Release: 1mamba +Summary: API for managing information about operating systems, hypervisors and virtual devices +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://libosinfo.org/ +Source: https://fedorahosted.org/releases/l/i/libosinfo/libosinfo-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libffi-devel +BuildRequires: libglib-devel +BuildRequires: liblzma-devel +BuildRequires: libselinux-devel +BuildRequires: libxml2-devel +BuildRequires: libxslt-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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 with demos for javascript (GJS/Seed) and python (PyGObject). Also provided are Vala bindings. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: System/Tools +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%package apidocs +Group: Documentation +Summary: %{name} API documentation +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: gtk-doc + +%description apidocs +This package includes the %{name} API documentation. + +%debug_package + +%prep +%setup -q + +%build +%configure --enable-gtk-doc +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%find_lang %{name} || touch %{name}.lang + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files -f %{name}.lang +%defattr(-,root,root) +%{_libdir}/libosinfo-1.0.so.* +%{_libdir}/girepository-1.0/Libosinfo-1.0.typelib +%dir %{_datadir}/libosinfo +%dir %{_datadir}/libosinfo/db +%{_datadir}/libosinfo/db/pci.ids +%{_datadir}/libosinfo/db/usb.ids +%dir %{_datadir}/libosinfo/db/datamaps +%{_datadir}/libosinfo/db/datamaps/*.xml +%dir %{_datadir}/libosinfo/db/devices +%{_datadir}/libosinfo/db/devices/*.xml +%dir %{_datadir}/libosinfo/db/hypervisors +%{_datadir}/libosinfo/db/hypervisors/*.xml +%dir %{_datadir}/libosinfo/db/install-scripts +%{_datadir}/libosinfo/db/install-scripts/*.xml +%dir %{_datadir}/libosinfo/db/oses +%{_datadir}/libosinfo/db/oses/*.xml +%doc AUTHORS COPYING COPYING.LIB + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libosinfo-1.0 +%dir %{_includedir}/libosinfo-1.0/osinfo +%{_includedir}/libosinfo-1.0/osinfo/*.h +%{_libdir}/libosinfo-1.0.la +%{_libdir}/libosinfo-1.0.so +%{_libdir}/pkgconfig/libosinfo-1.0.pc +%{_datadir}/gir-1.0/Libosinfo-1.0.gir +%{_datadir}/libosinfo/schemas/libosinfo.rng +%{_datadir}/vala/vapi/libosinfo-1.0.vapi +%doc ChangeLog NEWS README + +%files tools +%defattr(-,root,root) +%{_bindir}/osinfo-db-validate +%{_bindir}/osinfo-detect +%{_bindir}/osinfo-install-script +%{_bindir}/osinfo-query +%{_mandir}/man1/osinfo-db-validate.1* +%{_mandir}/man1/osinfo-detect.1* +%{_mandir}/man1/osinfo-install-script.1* +%{_mandir}/man1/osinfo-query.1* + +%files apidocs +%defattr(-,root,root) +%dir %{_datadir}/gtk-doc/html/Libosinfo +%{_datadir}/gtk-doc/html/Libosinfo/* + +%changelog +* Fri Sep 12 2014 Silvan Calarco 0.2.11-1mamba +- package created using the webbuild interface