File glade.spec of Package glade

#
# spec file for package glade (Version 2.12.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:           glade
BuildRequires:  fdupes intltool libgnomedb-devel libgnomeprintui-devel scrollkeeper update-desktop-files
License:        GPL v2 or later
Group:          System/GUI/GNOME
Provides:       glade2
Obsoletes:      glade2
AutoReqProv:    on
Version:        2.12.2
Release:        74
Summary:        Glade is a GTK2+ User Interface Builder
Source:         ftp://ftp.gnome.org/pub/gnome/sources/glade/2.10/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM glade-gtk-clist.patch -- See https://bugs.launchpad.net/inkscape/+bug/238223
Patch0:         glade-gtk-clist.patch
Url:            http://glade.gnome.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}

%description
Glade is a free user interface builder for GTK+ 2.x and the GNOME 2.x
Desktop Platform.



%lang_package
%prep
%setup -q
%patch0

%build
%configure\
	--disable-scrollkeeper\
	--enable-gnome-db
make %{?jobs:-j%jobs}

%install
%makeinstall
%suse_update_desktop_file -N Glade -G "Interface Designer" -D "glade-2/glade-user-guide.xml" glade-2 GUIDesigner
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%find_lang %{name}-2.0
%find_lang %{name}-2 %{name}-2.0.lang
%fdupes -s $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%defattr (-, root, root)
%{_bindir}/*
%{_datadir}/applications/glade-2.desktop
%{_datadir}/glade-2
%{_datadir}/omf/glade-2
%{_datadir}/pixmaps/glade-2.png
%{_datadir}/pixmaps/glade-2

%files lang -f %{name}-2.0.lang
# Temporary workaround to not depend on libgnome: own the directories
%defattr (-, root, root)
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/help

%changelog
* Mon Mar 09 2009 vuntz@novell.com
- Remove unneeded BuildRequires: gnutls-devel, libwnck-devel,
  perl-XML-Parser.
- Do not call autoreconf.
- Use makeinstall.
- Remove checks for old version of openSUSE.
- Own /usr/share/gnome/help to fix build.
* Sat Jan 31 2009 vuntz@novell.com
- Use sr@latin instead of sr@Latn.
* Mon Jun 30 2008 maw@suse.de
- Add glade-gtk-clist.patch.
* Mon Mar 31 2008 vuntz@suse.de
- Update to version 2.12.2:
  + Build fix for bonobo-i18n deprecation
  + Translation updates
- Remove includes.patch (fixed upstream)
- Remove workaround for no translation.
* Thu Oct 11 2007 sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Thu Aug 09 2007 maw@suse.de
- Fix up the lang subpackage.
* Wed Aug 08 2007 mauro@suse.de
- Split out a -lang subpackage
- Add %%fdupes stuff
* Fri Aug 03 2007 maw@suse.de
- Add includes.patch.
* Mon Jan 15 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Fri Feb 17 2006 sreeves@suse.de
- Update .desktop file (Name, GenericName, Comment, DocPath)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 18 2006 sbrabec@suse.cz
- Update to version 2.12.1.
* Fri Sep 16 2005 rodrigo@suse.de
- Update to version 2.12.0
- Removed upstreamed patches.
* Fri Jul 08 2005 gekker@suse.de
- Re-enable gnome-db and patch it to work with the latest libgnomedb
- Fixup nfb
* Thu Jul 07 2005 gekker@suse.de
- Disable the gnome-db configure flag until we can update to the
  new GNOME DB APIs.
* Mon Jun 20 2005 sbrabec@suse.cz
- Updated to version 2.10.0.
- Added MIME type association (#8460, patch from Rodrigo Moya).
- Enabled GNOME DB support.
* Wed Mar 16 2005 clahey@suse.de
- Remove desktop file patch.
* Sat Feb 12 2005 gekker@suse.de
- Update to version 2.9.0
* Tue Jan 25 2005 gekker@suse.de
- Update to version 2.6.6
* Fri Oct 29 2004 ro@suse.de
- locale rename: no -> nb
* Tue Jun 08 2004 sbrabec@suse.cz
- Updated to version 2.6.0.
* Mon May 10 2004 clahey@suse.de
- Updated to 2.5.0.
- Added desktop file patch.
* Fri Feb 20 2004 sbrabec@suse.cz
- Package renamed to glade.
* Thu Feb 12 2004 sbrabec@suse.cz
- Updated to version 2.0.1.
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
* Tue Oct 28 2003 ro@suse.de
- added gtksourceview to neededforbuild
* Mon Sep 01 2003 adrian@suse.de
- add Category
* Mon Aug 18 2003 sbrabec@suse.cz
- Use libgda instead of libgda2 (package was renamed).
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Thu Jun 26 2003 sbrabec@suse.cz
- Updated to version 2.0.0.
- Updated neededforbuild.
- Use %%find_lang.
* Mon Nov 11 2002 ro@suse.de
- changed neededforbuild <xf86 xdevel> to <x-devel-packages>
* Tue Oct 22 2002 hhetter@suse.de
- removed wrong docdir
- updated to version 1.1.2
* Tue Sep 24 2002 sbrabec@suse.cz
- Added alsa-devel to neededforbuild, because esound-devel can require it.
* Thu Sep 19 2002 sbrabec@suse.cz
- Added alsa to neededforbuild, because esound can depend on it.
* Tue Aug 13 2002 ro@suse.de
- removed control-center from neededforbuild
* Wed Jul 24 2002 hhetter@suse.de
- updated to version 1.1.1
- fix filelist
* Tue Jul 09 2002 hhetter@suse.de
- fix filelist
* Tue Jun 11 2002 hhetter@suse.de
- initial SuSE package
openSUSE Build Service is sponsored by