File libgee.spec of Package libgee

#
# spec file for package libgee
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Luis Medinas, Portugal
#
# 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:           libgee
Version:        0.18.0
Release:        0
Summary:        GObject-based library providing commonly used data structures
License:        LGPL-2.1+
Group:          Development/Libraries/GNOME
Url:            http://live.gnome.org/Libgee
Source0:        http://download.gnome.org/sources/libgee/0.18/%{name}-%{version}.tar.xz
Source1:        baselibs.conf
BuildRequires:  gobject-introspection-devel
BuildRequires:  vala >= 0.25.1
BuildRequires:  pkgconfig(glib-2.0) >= 2.36
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Libgee is a collection library providing GObject-based interfaces and
classes for commonly used data structures.

%package -n libgee-0_8-2
Summary:        GObject-based library providing commonly used data structures
Group:          System/Libraries
%if 0%{?suse_version} <= 1210
Requires:       typelib-1_0-Gee-0_8
%endif

%description -n libgee-0_8-2
Libgee is a collection library providing GObject-based interfaces and
classes for commonly used data structures.

%package -n typelib-1_0-Gee-0_8
Summary:        GObject-based library providing commonly used data structures -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-Gee-0_8
Libgee is a collection library providing GObject-based interfaces and
classes for commonly used data structures.

This package provides the GObject Introspection bindings for libgee.

%package -n libgee-devel
Summary:        GObject-based library providing useful data structures - Development Files
Group:          Development/Libraries/GNOME
Requires:       libgee-0_8-2 = %{version}
Requires:       typelib-1_0-Gee-0_8 = %{version}

%description -n libgee-devel
Libgee is a collection library providing GObject-based interfaces and
classes for commonly used data structures.

%prep
%setup -q

%build
%configure --disable-static
make %{?_smp_mflags} V=1

%install
%make_install
rm %{buildroot}%{_libdir}/*.la

%clean
rm -rf %{buildroot}

%post -n libgee-0_8-2 -p /sbin/ldconfig

%postun -n libgee-0_8-2 -p /sbin/ldconfig

%files -n libgee-0_8-2
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/*.so.*

%files -n typelib-1_0-Gee-0_8
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Gee-0.8.typelib

%files -n libgee-devel
%defattr(-, root, root)
%{_includedir}/gee-0.8/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/*.gir
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/*.vapi

%changelog
openSUSE Build Service is sponsored by