File libgnomedb.spec of Package libgnomedb

#
# spec file for package libgnomedb (Version 3.1.2)
#
# Copyright (c) 2008 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:           libgnomedb
BuildRequires:  evolution-data-server-devel fdupes gcc-c++ gnome-common graphviz-devel gtk-doc gtksourceview18-devel intltool libgda-devel libgladeui-1_0-devel libgnomeui-devel scrollkeeper sgml-skel shared-mime-info 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:        85
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/%{name}-%{version}.tar.bz2
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-libgnomedb
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-libgnomedb
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

%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
%patch4

%build
autoreconf -f -i
# FIXME: Build as root modifies system!
#   libgnomedb-3.1.1: --disable-scrollkeeper does not work properly. 
%configure\
	--disable-static\
	--disable-schemas-install\
	--disable-scrollkeeper
make %{?jobs:-j%jobs}

%install
%makeinstall
# 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 %{name}-3.0
%find_gconf_schemas
rm $RPM_BUILD_ROOT%{_libdir}/*/*/*.*a
%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/libgnomedb-3.0
%{_libdir}/gnome-db-3.0
%{_libdir}/*.so.*
%{_libdir}/libglade/2.0/*.so

%files lang -f %{name}-3.0.lang

%files -n glade3-libgnomedb
%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}/*.*a
%{_libdir}/pkgconfig/*.pc

%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/*

%changelog
* Mon Feb 18 2008 maw@suse.de
- Update to version 3.1.2:
  + Filtering based on an SQL expression is now possible in the
  grid and form widgets
  + Bugs fixed: bgo#475272, bgo#473583, bgo#480889, bgo#487486,
  bgo#487311, and bgo#487239
  + Updated translations
- Remove libgnomedb-strict-aliasing.patch,
  libgnomedb-desktop.patch, and libgnomedb-uninitialized.patch
  because they are upstream.
* Thu Nov 01 2007 sbrabec@suse.cz
- Added support for glade3 and gtksourceview18.
* Thu Oct 18 2007 schwab@suse.de
- Fix missing declarations for the umpteen times.
* Wed Oct 17 2007 sbrabec@suse.cz
- Updated to version 3.1.1:
  * New major version, new API. See NEWS for details.
* Wed Aug 08 2007 maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage
- s#%%run_ldconfig#/sbin/ldconfig/ in %%post and %%postun.
* Wed Feb 07 2007 sbrabec@suse.cz
- Do not build unusable static libraries (#238552).
* Fri Dec 15 2006 maw@suse.de
- Fixes to make it build.
* Thu Dec 14 2006 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
- Splitted libgnomedb-doc from libgnomedb-devel.
* Tue Oct 31 2006 meissner@suse.de
- use RPM_OPT_FLAGS, fixed configure.in to allow passing them in
* Fri Aug 18 2006 aj@suse.de
- Cleanup BuildRequires.
* Tue Mar 07 2006 rodrigo@suse.de
- Fixed invalid use of uninitialized variables (#155286).
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Dec 20 2005 jpr@suse.de
- Add missing *.so plugin files to the package
* Mon Aug 22 2005 ro@suse.de
- removed control-center2 from nfb
* Fri Aug 12 2005 rodrigo@suse.de
- Update to version 1.3.91
- Fix 64bit building.
* Mon Aug 08 2005 rodrigo@suse.de
- Update to version 1.3.90
- Removed upstreamed patch
* Thu Jul 14 2005 schwab@suse.de
- Fix missing declarations again.
* Sat Jul 09 2005 gekker@suse.de
- Update to version 1.3.4
- Remove upstreamed patches
* Thu Jun 30 2005 schwab@suse.de
- Fix missing declarations.
- Fix up broken return types.
* Wed Jun 29 2005 sbrabec@suse.cz
- Updated to version 1.3.3 and fixed.
- Removed unneeded static modules and .la files for modules.
* Wed Jun 01 2005 sbrabec@suse.cz
- Fixed devel requirements.
* Fri Mar 18 2005 sbrabec@suse.cz
- Removed X-Ximian-Settings (#73047).
* Thu Mar 17 2005 sbrabec@suse.cz
- Fixed capplets desktop files path.
- Added X-Ximian-Settings to database-properties (#73047).
* Mon Feb 21 2005 sbrabec@suse.cz
- Updated to version 1.2.0.
- Fixed for latest evolution-data-server.
* Wed Jan 19 2005 ro@suse.de
- update to 1.1.99
* Fri Nov 19 2004 ro@suse.de
- removed extra aclocal include directive
* Mon Oct 25 2004 ro@suse.de
- locale rename: no -> nb
* Tue Oct 12 2004 sbrabec@suse.cz
- Fixed libexecdir for bi-arch (#47050).
* Tue Sep 07 2004 sbrabec@suse.cz
- Generated shared mime info.
* Tue May 11 2004 sbrabec@suse.cz
- Fixed gconftool-2 prerequirements.
* Mon Mar 15 2004 sbrabec@suse.cz
- Removed obsolete mandir.
* Wed Mar 10 2004 sbrabec@suse.cz
- Fixed gconf schemas installation (#33114).
* Tue Feb 24 2004 ro@suse.de
- no need to move to lib64, already there
* Wed Feb 18 2004 sbrabec@suse.cz
- Updated to version 1.0.3.
* Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig
* Mon Oct 27 2003 sbrabec@suse.cz
- Updated to version 1.0.1.
* Tue Aug 26 2003 sbrabec@suse.cz
- Updated to version 0.91.0.
* Tue Aug 19 2003 sbrabec@suse.cz
- Fixed filelist.
* Tue Aug 19 2003 ro@suse.de
- updated file list
* Mon Aug 18 2003 sbrabec@suse.cz
- Updated to version 0.12.2.
* Mon Aug 18 2003 sbrabec@suse.cz
- Use libgda instead of libgda2 (package was renamed).
* Thu Aug 07 2003 sbrabec@suse.cz
- Not use globbing for schemas in %%files.
* Tue Jul 29 2003 hhetter@suse.de
- fix build
- install bonobo monikers correctly on x86_64
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Thu Jul 03 2003 ro@suse.de
- added control-center2 to neededforbuild
- move gtk-doc stuff to /usr (prefix clash)
* Wed Jun 04 2003 sbrabec@suse.cz
- Initial SuSE version of GNOME2 port.
openSUSE Build Service is sponsored by