File ghex.spec of Package ghex

#
# spec file for package ghex (Version 2.22.0)
#
# 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:           ghex
BuildRequires:  fdupes gail-devel gnome-common gnome-doc-utils-devel
BuildRequires:  gnutls-devel intltool libglade2-devel libgnomeprintui-devel
BuildRequires:  libgnomeui-devel libwnck-devel perl-XML-Parser
BuildRequires:  update-desktop-files
# FIXME: only for directory ownership:
BuildRequires:  scrollkeeper
License:        GPL v2 or later
Group:          Development/Tools/Other
Version:        2.22.0
Release:        1
Summary:        GNOME Binary Editor
Url:            http://www.gnome.org/
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/ghex/2.8/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# PATCH-FIX-UPSTREAM ghex-empty-search-crash.patch bgo532184
Patch7:         ghex-empty-search-crash.patch
%if %suse_version > 1020
Requires:       %{name}-lang = %{version}
%endif
%gconf_schemas_prereq

%description
GHex allows the user to load data from any file and to view and edit it
in either hex or ASCII. It is a must for anyone playing games that use
a non-ASCII format for saving.



Authors:
--------
    Jaka Mocnik <jaka@gnu.org>
    Chema Celorio <chema@ximian.com>

%package devel
License:        GPL v2 or later
Summary:        GNOME Binary Editor
Group:          Development/Tools/Other
Requires:       %{name} = %{version} gtk2-devel gail-devel atk-devel

%description devel
GHex allows the user to load data from any file and to view and edit it
in either hex or ASCII. It is a must for anyone playing games that use
a non-ASCII format for saving.



Authors:
--------
    Jaka Mocnik <jaka@gnu.org>
    Chema Celorio <chema@ximian.com>

%lang_package
%prep
%setup -n ghex-%{version}
%patch7

%build
autoreconf -f -i
intltoolize --force
# FIXME: Build as root modifies system!
#   ghex-2.8.2: --disable-schemas-install is not implemented.
%configure\
	--disable-static\
	--disable-scrollkeeper\
	--disable-schemas-install
make %{?jobs:-j%jobs}

%install
%makeinstall
%suse_update_desktop_file -N GHex -G "Hex Editor" -D ghex2 %name Utility Editor
sed -e "s@;Development;@;@" < $RPM_BUILD_ROOT%{_datadir}/applications/ghex.desktop \
 > $RPM_BUILD_ROOT%{_datadir}/applications/ghex.desktop.new
mv $RPM_BUILD_ROOT%{_datadir}/applications/ghex.desktop.new \
   $RPM_BUILD_ROOT%{_datadir}/applications/ghex.desktop
%find_lang %{name}-2.0
%find_lang %{name}2
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
cat %{name}-2.0.lang %{name}2.lang > %{name}.lang
%if %suse_version > 1020
%fdupes -s $RPM_BUILD_ROOT
%endif

%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}.lst
%defattr(-,root,root)
%doc README COPYING COPYING-DOCS AUTHORS
%{_bindir}/*
%{_libdir}/*.so.*
%{_datadir}/applications/*.desktop
%{_datadir}/gnome-2.0/ui/*.xml
%{_datadir}/icons/hicolor/*/apps/ghex.*

%files lang -f %{name}.lang

%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc

%changelog
* Tue Sep 02 2008 mboman@novell.com
- Update to version 2.22.0:
  + Cosmetic version bump
* Thu May 08 2008 rodrigo@suse.de
- Upstream remaining patch
* Mon Mar 31 2008 vuntz@suse.de
- Update to version 2.21.92 (too many changes to list here)
- Remove ghex_60921.diff (fixed upstream), ghex_60922.diff (fixed
  upstream), ghex-search-crash.patch (fixed upstream).
- Remove workaround for no translations.
- Add gnome-doc-utils-devel buildrequires.
- Stop using %%run_ldconfig and call ldconfig.
* Thu Mar 13 2008 sbrabec@suse.cz
- Custom look'n'feel gconf keys moved to gconf2-branding-openSUSE.
* Thu Mar 06 2008 maw@suse.de
- Fix the build when against newer versions of intltool.
* Thu Oct 11 2007 sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Mon Sep 03 2007 sbrabec@suse.cz
- Fixed crash for empty search string (GNOME#473208).
* 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 Apr 27 2007 sbrabec@suse.cz
- Do not call meinproc (#227624).
* Wed Feb 07 2007 sbrabec@suse.cz
- Do not build unusable static libraries (#238552).
* Wed Jan 03 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
- Created ghex-devel subpackage.
* Tue Sep 19 2006 jhargadon@suse.de
- update to version 2.8.2
- translation updates
* Wed Apr 19 2006 sbrabec@suse.cz
- Fixed crash in search (#155494).
* Wed Apr 19 2006 sbrabec@suse.cz
- I18N fix.
* Tue Feb 28 2006 sbrabec@suse.cz
- Use kdelibs3-doc in BuildRequires for meinproc (#153635#c14).
* Sat Feb 18 2006 sreeves@suse.de
- Update .desktop file (Name, GenericName, Comment, DocPath)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Feb 22 2005 ro@suse.de
- change category to build
* Fri Feb 18 2005 sbrabec@suse.cz
- Updated to version 2.8.1.
* Tue Nov 02 2004 ro@suse.de
- locale rename: no -> nb
* Wed Aug 25 2004 clahey@suse.de
- Cache the ghex help and show ghex in khelpcenter.
* Fri Jul 16 2004 shprasad@suse.de
- Fixes bug #60916 (Fix given by smadduri@novell.com)
  Corrects Typo mistakes in status messages
- Fixes bug #60919 (Fix given by smadduri@novell.com)
  Status bar resets upon file close
- Fixes bug #60921 (Fix given by smadduri@novell.com)
  Removed ellipses in Menu option "Character Table"
- Fixes bug #60922 (Fix given by smadduri@novell.com)
  Removes Duplicate accelerator keys for Edit menu options.
- Fixes bug #60918 (Fix given by smadduri@novell.com)
  Avoids Crashing when trying to open /proc files.
* Wed Jun 23 2004 shprasad@suse.de
- Fixes bug #60089 (Fix given by smadduri@novell.com)
  Changed The Title Pattern.
* Wed Jun 23 2004 shprasad@suse.de
- Fixes bug #59873 (Fix given by smadduri@novell.com)
  Changed the default Fonts.
* Wed May 05 2004 sbrabec@suse.cz
- Updated to version 2.6.0 (GNOME 2.6).
* Wed Mar 10 2004 sbrabec@suse.cz
- Fixed gconf schemas installation (#33114).
* Fri Feb 20 2004 sbrabec@suse.cz
- Fixed PreReq.
* Thu Feb 12 2004 sbrabec@suse.cz
- Updated to version 2.4.1.
* Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig
* Mon Oct 27 2003 sbrabec@suse.cz
- Updated to version 2.4.0.1 (GNOME 2.4).
* Mon Sep 15 2003 adrian@suse.de
- add Editor Category
* Mon Aug 18 2003 sbrabec@suse.cz
- Updated to version 2.2.1 (GNOME2).
* Wed May 28 2003 sbrabec@suse.cz
- Include all doc and omf files info package.
* Wed May 28 2003 ro@suse.de
- remove unpackaged files from buildroot
* Mon Nov 11 2002 ro@suse.de
- changed neededforbuild <jade_dsl> to <openjade>
* Tue Oct 22 2002 hhetter@suse.de
- added libxslt to #neededforbuild to get scrollkeeper to run
- removed wrong docdir
* Fri Sep 27 2002 ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
* Sat Jul 27 2002 adrian@suse.de
- fix neededforbuild
* Tue May 28 2002 ro@suse.de
- removed gpc from neededforbuild
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Fri Nov 30 2001 ro@suse.de
- changed neededforbuild <docbktls> to <docbook-toys>
* Wed Nov 21 2001 ro@suse.de
- added freetype2 to neededforbuild
* Fri Jun 15 2001 hhetter@suse.de
- update to 1.2.1
- use bz2
- added scrollkeeper to neededforbuild
- added suse_update_config
* Tue Mar 27 2001 ro@suse.de
- changed neededforbuild <docbkdsl> to <docbook-dsssl-stylesheets>
* Thu Mar 22 2001 hhetter@suse.de
- updated to version 1.2 (RC1)
- specfile improvements
* Wed Mar 14 2001 ro@suse.de
- changed neededforbuild <docbk_4> to <docbook_4>
* Thu Feb 22 2001 hhetter@suse.de
- initial build
- tested on 7.1 in GNOME1.4 Environment
openSUSE Build Service is sponsored by