File gom.spec of Package gom

#
# spec file for package gom
#
# Copyright (c) 2015 SUSE LINUX 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:           gom
Version:        0.3.2
Release:        0
Summary:        GObject Data Mapper
License:        LGPL-2.1+
Group:          System/Libraries
Url:            https://git.gnome.org/browse/gom/
Source:         http://download.gnome.org/sources/gom/0.3/%{name}-%{version}.tar.xz
BuildRequires:  intltool >= 0.40.0
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(gio-2.0) >= 2.36
BuildRequires:  pkgconfig(gobject-2.0) >= 2.36
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(sqlite3) >= 3.7
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
libgom - GObject Data Mapper.
This is an DataMapper for GObject.

%package -n libgom-1_0-0
Summary:        GObject Data Mapper
Group:          System/Libraries
Recommends:     %{name}-lang = %{version}
# To make the lang package installable
Provides:       %{name} = %{version}

%description -n libgom-1_0-0
libgom - GObject Data Mapper.
This is an DataMapper for GObject.

%package -n typelib-1_0-Gom-1_0
Summary:        GObject Data Mapper -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-Gom-1_0
libgom - GObject Data Mapper.
This is an DataMapper for GObject.

This package provides the GObject Introspection bindings for gom.

%package devel
Summary:        GObject Data Mapper -- Development Files
Group:          Development/Libraries/GNOME
Requires:       libgom-1_0-0 = %{version}
Requires:       typelib-1_0-Gom-1_0 = %{version}

%description  devel
libgom - GObject Data Mapper -- Development Files
This is an DataMapper for GObject.

%lang_package
%prep
%setup -q

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

%check
%{__make} test

%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -delete -print
%find_lang gom

%post -n libgom-1_0-0 -p /sbin/ldconfig

%postun -n libgom-1_0-0 -p /sbin/ldconfig

%files -n libgom-1_0-0
%defattr(-,root,root)
%doc README COPYING
%{_libdir}/libgom-1.0.so.*

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

%files devel
%defattr(-,root,root)
%doc %{_datadir}/gtk-doc/html/gom/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/gom-1.0/
%{_datadir}/gir-1.0/*.gir

%files lang -f gom.lang

%changelog
openSUSE Build Service is sponsored by