File libgee.spec of Package libgee

#
# spec file for package libgee
#
# Copyright (c) 2011 SUSE LINUX Products 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/
#

# norootforbuild


Name:           libgee
Version:        0.6.1
Release:        1
Summary:        GObject-based library providing commonly used data structures
License:        LGPLv2.1+
Group:          Development/Libraries/GNOME
Url:            http://live.gnome.org/Libgee
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  glib2-devel
BuildRequires:  gobject-introspection-devel
BuildRequires:  vala
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

%package -n libgee2
License:        LGPLv2.1+
Summary:        GObject-based library providing commonly used data structures
Group:          Development/Libraries/GNOME

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

%package -n libgee-devel
License:        LGPLv2.1+
Summary:        GObject-based library providing useful data structures - Development Files
Group:          Development/Libraries/GNOME
Requires:       glib2-devel
Requires:       libgee2 = %{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 %{?jobs:-j%jobs}

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

%clean
rm -rf %{buildroot}

%post -n libgee2 -p /sbin/ldconfig

%postun -n libgee2 -p /sbin/ldconfig

%files -n libgee2
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/*.so.*
%{_libdir}/girepository-1.0/Gee-1.0.typelib

%files -n libgee-devel
%defattr(-, root, root)
%{_includedir}/gee-1.0/
%{_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