File libgovirt.spec of Package libgovirt

#
# spec file for package libgovirt
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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:           libgovirt
Version:        0.2.0
Release:        0
Summary:        GObject based oVirt bindings
License:        LGPL-2.1+
Group:          System/Libraries
Url:            http://cgit.freedesktop.org/~teuf/govirt
Source:         http://people.freedesktop.org/~teuf/govirt/%{name}-%{version}.tar.xz
BuildRequires:  gobject-introspection-devel >= 1.30.0
BuildRequires:  pkgconfig(gio-2.0) >= 2.26.0
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(rest-0.7) >= 0.7.13
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GoVirt is a GObject wrapper for the oVirt REST API [1]. It will
only provide very basic functionality as the goal is to
autogenerate a full wrapper as it is already done for the python
bindings.

%package -n libgovirt2
Summary:        GObject based oVirt bindings
Group:          System/Libraries

%description -n libgovirt2
GoVirt is a GObject wrapper for the oVirt REST API [1]. It will
only provide very basic functionality as the goal is to
autogenerate a full wrapper as it is already done for the python
bindings.

%package -n typelib-1_0-GoVirt-1_0
Summary:        GObject based oVirt bindings -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-GoVirt-1_0
GoVirt is a GObject wrapper for the oVirt REST API [1]. It will
only provide very basic functionality as the goal is to
autogenerate a full wrapper as it is already done for the python
bindings.

%package devel
Summary:        GObject based oVirt bindings -- Development files
Group:          Development/Languages/C and C++
Requires:       libgovirt2 = %{version}
Requires:       typelib-1_0-GoVirt-1_0 = %{version}

%description devel
GoVirt is a GObject wrapper for the oVirt REST API [1]. It will
only provide very basic functionality as the goal is to
autogenerate a full wrapper as it is already done for the python
bindings.

%prep
%setup -q

%build
%configure \
    -disable-static
make %{?_smp_mflags}

%install
%make_install
find %{buildroot} -name '*.la' -type f -delete -print

%post -n libgovirt2 -p /sbin/ldconfig

%postun -n libgovirt2 -p /sbin/ldconfig

%files  -n libgovirt2
%defattr(-,root,root)
%doc README COPYING
%{_libdir}/libgovirt.so.*

%files -n typelib-1_0-GoVirt-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/GoVirt-1.0.typelib

%files devel
%defattr(-,root,root)
%{_datadir}/gir-1.0/GoVirt-1.0.gir
%{_includedir}/govirt-1.0/
%{_libdir}/libgovirt.so
%{_libdir}/pkgconfig/govirt-1.0.pc

%changelog
openSUSE Build Service is sponsored by