2007-01-10 23:37:03 +01:00
|
|
|
#
|
2009-02-23 12:49:10 +01:00
|
|
|
# spec file for package ghex (Version 2.24.0)
|
2007-01-10 23:37:03 +01:00
|
|
|
#
|
2009-01-22 13:09:31 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-10 23:37:03 +01:00
|
|
|
#
|
2008-09-05 01:06:22 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-10 23:37:03 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-07 20:59:35 +01:00
|
|
|
|
2007-01-10 23:37:03 +01:00
|
|
|
Name: ghex
|
2009-02-23 12:49:10 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gnome-doc-utils-devel
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: libgnomeprintui-devel
|
|
|
|
BuildRequires: libgnomeui-devel
|
2009-03-26 00:02:22 +01:00
|
|
|
BuildRequires: translation-update-upstream
|
2008-09-05 01:06:22 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2007-08-10 01:17:13 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-10 23:37:03 +01:00
|
|
|
Group: Development/Tools/Other
|
2009-02-23 12:49:10 +01:00
|
|
|
Version: 2.24.0
|
2009-03-26 00:02:22 +01:00
|
|
|
Release: 2
|
2007-01-10 23:37:03 +01:00
|
|
|
Summary: GNOME Binary Editor
|
2007-10-11 20:50:48 +02:00
|
|
|
Url: http://www.gnome.org/
|
2007-01-10 23:37:03 +01:00
|
|
|
Source: ftp://ftp.gnome.org/pub/GNOME/sources/ghex/2.8/%{name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-05-08 23:11:03 +02:00
|
|
|
# PATCH-FIX-UPSTREAM ghex-empty-search-crash.patch bgo532184
|
2007-09-03 18:30:03 +02:00
|
|
|
Patch7: ghex-empty-search-crash.patch
|
2011-02-14 01:16:34 +01:00
|
|
|
Recommends: %{name}-lang
|
2007-01-10 23:37:03 +01:00
|
|
|
%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.
|
|
|
|
|
|
|
|
%package devel
|
2008-04-02 23:24:12 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-10 23:37:03 +01:00
|
|
|
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.
|
|
|
|
|
2007-08-10 01:17:13 +02:00
|
|
|
%lang_package
|
2007-01-10 23:37:03 +01:00
|
|
|
%prep
|
|
|
|
%setup -n ghex-%{version}
|
2009-03-26 00:02:22 +01:00
|
|
|
translation-update-upstream
|
2007-09-03 18:30:03 +02:00
|
|
|
%patch7
|
2007-01-10 23:37:03 +01:00
|
|
|
|
|
|
|
%build
|
2009-01-22 13:09:31 +01:00
|
|
|
%configure --with-pic\
|
2007-02-07 17:28:00 +01:00
|
|
|
--disable-static\
|
2007-01-10 23:37:03 +01:00
|
|
|
--disable-scrollkeeper\
|
|
|
|
--disable-schemas-install
|
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%install
|
2007-02-07 17:28:00 +01:00
|
|
|
%makeinstall
|
2009-02-23 12:49:10 +01:00
|
|
|
%suse_update_desktop_file -N GHex -G "Hex Editor" %name Utility Editor
|
2007-01-10 23:37:03 +01:00
|
|
|
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
|
2009-02-06 23:41:40 +01:00
|
|
|
# Change sr@Latn to sr@latin
|
|
|
|
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
|
2011-02-14 01:16:34 +01:00
|
|
|
%find_lang %{name}-2.0 %{?no_lang_C}
|
|
|
|
%find_lang %{name}2 %{?no_lang_C}
|
2007-01-10 23:37:03 +01:00
|
|
|
%find_gconf_schemas
|
2007-08-10 01:17:13 +02:00
|
|
|
cat %{name}-2.0.lang %{name}2.lang > %{name}.lang
|
2009-01-22 13:09:31 +01:00
|
|
|
%{__rm} -vf %{buildroot}%{_libdir}/*.la
|
2007-08-10 01:17:13 +02:00
|
|
|
%fdupes -s $RPM_BUILD_ROOT
|
2007-01-10 23:37:03 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%pre -f %{name}.schemas_pre
|
|
|
|
|
2011-02-14 01:16:34 +01:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%endif
|
|
|
|
|
2007-01-10 23:37:03 +01:00
|
|
|
%posttrans -f %{name}.schemas_posttrans
|
|
|
|
|
|
|
|
%preun -f %{name}.schemas_preun
|
|
|
|
|
2011-02-14 01:16:34 +01:00
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%endif
|
2007-01-10 23:37:03 +01:00
|
|
|
|
2011-02-14 01:16:34 +01:00
|
|
|
%files -f %{name}.schemas_list
|
2007-01-10 23:37:03 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README COPYING COPYING-DOCS AUTHORS
|
2011-02-14 01:16:34 +01:00
|
|
|
%dir %{_datadir}/gnome/
|
|
|
|
%dir %{_datadir}/gnome/help/
|
|
|
|
%dir %{_datadir}/gnome/help/ghex2/
|
|
|
|
%doc %{_datadir}/gnome/help/ghex2/C/
|
2007-01-10 23:37:03 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/gnome-2.0/ui/*.xml
|
2008-04-02 23:24:12 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/ghex.*
|
2007-01-10 23:37:03 +01:00
|
|
|
|
2007-08-10 01:17:13 +02:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2007-01-10 23:37:03 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2008-03-07 20:59:35 +01:00
|
|
|
|
2007-04-27 16:45:18 +02:00
|
|
|
%changelog
|