File glade.spec of Package glade

#
# spec file for package glade
#
# Copyright (c) 2011 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:           glade
Version:        3.10.2
Release:        1
Summary:        User Interface Builder for GTK+
License:        GPLv2+
Group:          Development/Tools/GUI Builders
Url:            http://glade.gnome.org/
Source:         http://download.gnome.org/sources/glade/3.10/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM glade-pygobject-3.0.patch vuntz@opensuse.org -- Port to pygobject 3.0
Patch0:         glade-pygobject-3.0.patch
BuildRequires:  fdupes
# needed for patch0
BuildRequires:  gnome-common
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gobject-introspection-devel
BuildRequires:  intltool
BuildRequires:  python-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(pygobject-3.0) >= 2.90.4
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Glade is a RAD tool to enable quick & easy development of user
interfaces for the Gtk+ toolkit and the GNOME desktop environment.

%package -n libgladeui-2-0
License:        GPLv2+
Summary:        User Interface Builder for GTK+
Group:          Development/Tools/GUI Builders
Recommends:     %{name}-lang

%description -n libgladeui-2-0
Glade is a RAD tool to enable quick & easy development of user
interfaces for the Gtk+ toolkit and the GNOME desktop environment.

%package -n libgladeui-2-devel
License:        GPLv2+
Summary:        User Interface Builder for GTK+ -- Development Files
Group:          Development/Libraries/C and C++
Requires:       libgladeui-2-0 = %{version}
# The gtk-doc documentation is not parallel installable (bnc#646997)
Conflicts:      libgladeui-1-devel

%description -n libgladeui-2-devel
Glade is a RAD tool to enable quick & easy development of user
interfaces for the Gtk+ toolkit and the GNOME desktop environment.

%lang_package
%prep
%setup -q
%patch0 -p1

%build
# needed for patch0
NOCONFIGURE=1 gnome-autogen.sh
%configure --disable-static --with-pic\
	--disable-scrollkeeper
make %{?jobs:-j%jobs}

%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%suse_update_desktop_file glade
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}

%clean
rm -rf %{buildroot}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%post -n libgladeui-2-0 -p /sbin/ldconfig

%postun -n libgladeui-2-0 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.GPL COPYING.LGPL ChangeLog NEWS README TODO
%defattr (-, root, root)
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/glade/
%doc %{_datadir}/gnome/help/glade/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/glade/
%doc %{_datadir}/omf/glade/glade-C.omf
%{_bindir}/glade
%{_bindir}/glade-previewer
%{_datadir}/applications/glade.desktop
%{_datadir}/glade/
%{_datadir}/icons/hicolor/*/apps/*.*
%{_libdir}/glade/modules/libgladegtk.so
%{_libdir}/glade/modules/libgladepython.so

%files -n libgladeui-2-0
%defattr (-, root, root)
%{_libdir}/libgladeui*.so.*
%{_libdir}/girepository-1.0/Gladeui-2.0.typelib
# These directories are needed by third-party catalogs, and are explicitly
# referenced in the pkg-config file, so it makes sense to own them here
%dir %{_datadir}/glade
%dir %{_datadir}/glade/catalogs
%dir %{_datadir}/glade/pixmaps
%dir %{_datadir}/glade/pixmaps/hicolor
%dir %{_datadir}/glade/pixmaps/hicolor/*
%dir %{_datadir}/glade/pixmaps/hicolor/*/actions
%dir %{_libdir}/glade
%dir %{_libdir}/glade/modules

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

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by