File libgnomedb3.spec of Package libgnomedb3
#
# spec file for package libgnomedb3 (Version 3.1.2)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: libgnomedb3
%define real_name libgnomedb
BuildRequires: evolution-data-server-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gnome-common
BuildRequires: graphviz-devel
BuildRequires: gtk-doc
BuildRequires: gtksourceview18-devel
BuildRequires: intltool
BuildRequires: libgda-3_0-devel
BuildRequires: libgladeui-1_0-devel
BuildRequires: libgnomeui-devel
BuildRequires: scrollkeeper
BuildRequires: sgml-skel
BuildRequires: shared-mime-info
BuildRequires: update-desktop-files
# For directory ownership:
BuildRequires: glade3
# FIXME: db-devel is required for libgda db bindings. Should be fixed by libgda splitting:
#BuildRequires: db-devel
License: GPL v2 or later ; LGPL v2.0 or later
Group: System/GUI/GNOME
Version: 3.1.2
Release: 5
Summary: Library for Writing GNOME Database Programs
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://www.gnome-db.org/
Source: ftp://ftp.gnome.org/pub/gnome/sources/libgnomedb/3.1/%{real_name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM libgnomedb-bnc468698-fix-desktop-icon.patch bnc468698 bgo572809 vuntz@novell.com -- Make the desktop file icon findable for desktop files
Patch0: libgnomedb-bnc468698-fix-desktop-icon.patch
# PATCH-FIX-UPSTREAM libgnomedb-am111.patch coolo@novell.com -- fix build against automake 1.11
Patch1: libgnomedb-am111.patch
Patch4: libgnomedb-decl.patch
Requires: %{name}-lang = %{version}
%gconf_schemas_prereq
%description
Libgnomedb is a library that eases the task of writing GNOME database
programs.
Authors:
--------
Rodrigo Moya <rodrigo@gnome-db.org>
Vivien Malerba <malerba@gnome-db.org>
Daniel Espinosa <esodan@gmail.com>
%package -n glade3-libgnomedb3
License: GPL v2 or later ; LGPL v2.0 or later
Summary: Glade3 binding for Library for Writing GNOME Database Programs
Group: System/GUI/GNOME
# Supplements shared library libgladeui with version package it is compiled with:
Requires: glade3
Supplements: glade3
%description -n glade3-libgnomedb3
Libgnomedb is a library that eases the task of writing GNOME database
programs.
Authors:
--------
Rodrigo Moya <rodrigo@gnome-db.org>
Vivien Malerba <malerba@gnome-db.org>
Daniel Espinosa <esodan@gmail.com>
%package devel
License: GPL v2 or later ; LGPL v2.0 or later
Summary: Include Files and Libraries mandatory for Development.
Group: Development/Libraries/C and C++
Requires: %{name} = %{version} glib2-devel graphviz-devel gtk2-devel libgda-3_0-devel libglade2-devel libgnomecanvas-devel
#Really this ones, but pkgconfig is broken (see fdo#4738)
#Requires: %{name} = %{version} libgda-3_0-devel libglade2-devel libgnomecanvas-devel
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
Authors:
--------
Rodrigo Moya <rodrigo@gnome-db.org>
Vivien Malerba <malerba@gnome-db.org>
Daniel Espinosa <esodan@gmail.com>
%package doc
License: GPL v2 or later ; LGPL v2.0 or later
Summary: Additional Package Documentation.
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description doc
Libgnomedb is a library that eases the task of writing GNOME database
programs.
Authors:
--------
Rodrigo Moya <rodrigo@gnome-db.org>
Vivien Malerba <malerba@gnome-db.org>
Daniel Espinosa <esodan@gmail.com>
%lang_package
%prep
%setup -q -n %{real_name}-%{version}
%patch0 -p1
%patch1 -p1
%patch4
%build
autoreconf -f -i
%configure --with-pic\
--disable-static\
--disable-schemas-install\
--disable-scrollkeeper
make %{?jobs:-j%jobs}
%install
%makeinstall
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
# Make the icon parallel-installable with other libgnomedb versions
mv %{buildroot}%{_datadir}/pixmaps/gnome-db.png %{buildroot}%{_datadir}/pixmaps/gnome-db-3.0.png
# glade3 seems to have a new directory layout:
mkdir -p $RPM_BUILD_ROOT%{_datadir}/glade3/pixmaps
mv $RPM_BUILD_ROOT%{_datadir}/glade3/pixmaps/hicolor/16x16/actions $RPM_BUILD_ROOT%{_datadir}/glade3/pixmaps/16x16
mv $RPM_BUILD_ROOT%{_datadir}/glade3/pixmaps/hicolor/22x22/actions $RPM_BUILD_ROOT%{_datadir}/glade3/pixmaps/22x22
rmdir $RPM_BUILD_ROOT%{_datadir}/glade3/pixmaps/hicolor/*
rmdir $RPM_BUILD_ROOT%{_datadir}/glade3/pixmaps/hicolor
%suse_update_desktop_file -G "GNOME Database Access Properties" database-properties-3.0
%find_lang %{real_name}-3.0
%find_gconf_schemas
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%post -p /sbin/ldconfig
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun -p /sbin/ldconfig
%files -f %{name}.schemas_list
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/gnome-db-3.0
%exclude %{_datadir}/gnome-db-3.0/demo
%{_datadir}/pixmaps/gnome-db-3.0
%{_datadir}/pixmaps/gnome-db-3.0.png
%{_libdir}/gnome-db-3.0
%{_libdir}/*.so.*
%{_libdir}/libglade/2.0/*.so
%files lang -f %{real_name}-3.0.lang
%files -n glade3-libgnomedb3
%defattr(-, root, root)
%{_datadir}/glade3/catalogs/*.xml*
%{_datadir}/glade3/pixmaps/16x16/*.png
%{_libdir}/glade3/modules/*.so
%files devel
%defattr(-, root, root)
%{_datadir}/gnome-db-3.0/demo
%{_datadir}/omf/*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/*
%changelog