File glom.spec of Package glom
#
# spec file for package glom (Version 1.16.2)
#
# Copyright (c) 2010 Dominique Leuenberger, Amsterdam, The Netherlands.
#
# 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: glom
Summary: Database designer and user interface
Version: 1.16.2
Release: 1
Source: %{name}-%{version}.tar.bz2
License: GPL v2 or later
Group: Productivity/Databases/Clients
URL: http://www.glom.org/
BuildRequires: boost-devel
BuildRequires: gcc-c++
buildRequires: gdbm-devel
BuildRequires: gnome-doc-utils-devel
BuildRequires: gtkmm2-devel
BuildRequires: intltool
BuildRequires: iso-codes-devel
BuildRequires: libepc-devel
BuildRequires: libgdamm-devel
BuildRequires: libgoocanvasmm-devel
BuildRequires: libgtksourceviewmm-2_0-devel
BuildRequires: libxml++-devel
BuildRequires: pkg-config
BuildRequires: postgresql-devel
BuildRequires: postgresql-server
BuildRequires: python-gtk-devel
BuildRequires: python-gnome-extras-devel
BuildRequires: update-desktop-files
# For pg_dump/pg_restore, needed by Export Backup and Restore Backup menu items
Requires: postgresql
# This is unfortunately needed for now, should get fixed upstream at some point
Requires: postgresql-server
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
With Glom you can design database systems - the database and the user
interface.
* Glom has high-level features such as relationships, lookups,
related fields, related records, calculated fields, drop-down
choices, searching, reports, users and groups.
* Glom keeps things simple. It has Numeric, Text, Date, Time,
Boolean, and Image field types.
* Glom systems require almost no programming, but you may use
Python for calculated fields or buttons.
* Each Glom system can be translated for multiple languages and
countries.
%package -n lib%{name}-devel
Summary: Database designer and user interface - Development files
Group: Development/Libraries/C and C++
Requires: lib%{name}-1_16-0 = %{version}
Requires: glibmm2-devel
Requires: libgdamm-devel
%description -n lib%{name}-devel
With Glom you can design database systems - the database and the user
interface.
* Glom has high-level features such as relationships, lookups,
related fields, related records, calculated fields, drop-down
choices, searching, reports, users and groups.
* Glom keeps things simple. It has Numeric, Text, Date, Time,
Boolean, and Image field types.
* Glom systems require almost no programming, but you may use
Python for calculated fields or buttons.
* Each Glom system can be translated for multiple languages and
countries.
This package contains development files to create extensions for glom.
%package -n lib%{name}-1_16-0
Summary: Database designer and user interface - Library
Group: System/Libraries
%description -n lib%{name}-1_16-0
With Glom you can design database systems - the database and the user
interface.
* Glom has high-level features such as relationships, lookups,
related fields, related records, calculated fields, drop-down
choices, searching, reports, users and groups.
* Glom keeps things simple. It has Numeric, Text, Date, Time,
Boolean, and Image field types.
* Glom systems require almost no programming, but you may use
Python for calculated fields or buttons.
* Each Glom system can be translated for multiple languages and
countries.
%package -n python-%{name}
Summary: Database designer and user interface - Python bindings
Group: Development/Languages/Python
%py_requires
%description -n python-%{name}
With Glom you can design database systems - the database and the user
interface.
* Glom has high-level features such as relationships, lookups,
related fields, related records, calculated fields, drop-down
choices, searching, reports, users and groups.
* Glom keeps things simple. It has Numeric, Text, Date, Time,
Boolean, and Image field types.
* Glom systems require almost no programming, but you may use
Python for calculated fields or buttons.
* Each Glom system can be translated for multiple languages and
countries.
%lang_package
%prep
%setup -q
%build
%configure \
--disable-static \
--disable-dependency-tracking \
--disable-update-mime-database \
--disable-documentation \
--disable-scrollkeeper \
--with-postgres-utils=%{_bindir}
%__make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name *.la -delete
%suse_update_desktop_file %{name}
%find_lang %{name} %{?no_lang_C}
%clean
rm -rf %{buildroot}
%post
%desktop_database_post
%icon_theme_cache_post
%mime_database_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
%post -n lib%{name}-1_16-0 -p /sbin/ldconfig
%postun -n lib%{name}-1_16-0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_datadir}/doc/%{name}/
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/mime/packages/%{name}.xml
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/%{name}-1.16/
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}-1.16.pc
%files -n lib%{name}-1_16-0
%defattr(-,root,root)
%{_libdir}/*.so.*
%files -n python-%{name}
%defattr(-,root,root)
%{py_sitedir}/*.so
%files lang -f %{name}.lang
%changelog