2007-01-10 23:37:03 +01:00
|
|
|
#
|
2011-02-14 01:16:40 +01:00
|
|
|
# spec file for package ghex
|
2007-01-10 23:37:03 +01:00
|
|
|
#
|
2011-02-14 01:16:40 +01:00
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-03-07 20:59:35 +01:00
|
|
|
|
2007-01-10 23:37:03 +01:00
|
|
|
Name: ghex
|
2011-08-11 21:25:39 +02:00
|
|
|
Version: 2.90.0
|
|
|
|
Release: 1
|
2011-02-14 01:16:40 +01:00
|
|
|
License: GPLv2+
|
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/
|
2011-08-11 21:25:39 +02:00
|
|
|
Group: Development/Tools/Other
|
|
|
|
Source: http://download.gnome.org/sources/ghex/2.90/%{name}-%{version}.tar.bz2
|
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-08-11 21:25:39 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gnome-doc-utils-devel
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: pkgconfig(atk) >= 1.0.0
|
|
|
|
BuildRequires: pkgconfig(gail-3.0)
|
|
|
|
BuildRequires: pkgconfig(gconf-2.0)
|
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.0
|
|
|
|
BuildRequires: translation-update-upstream
|
|
|
|
BuildRequires: update-desktop-files
|
2011-02-14 01:16:34 +01:00
|
|
|
Recommends: %{name}-lang
|
2011-08-11 21:25:39 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2011-02-14 01:16:40 +01:00
|
|
|
License: GPLv2+
|
2007-01-10 23:37:03 +01:00
|
|
|
Summary: GNOME Binary Editor
|
|
|
|
Group: Development/Tools/Other
|
2011-08-11 21:25:39 +02:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: atk-devel
|
|
|
|
Requires: gail-devel
|
|
|
|
Requires: gtk2-devel
|
2007-01-10 23:37:03 +01:00
|
|
|
|
|
|
|
%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
|
2011-08-11 21:25:39 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-10 23:37:03 +01:00
|
|
|
|
|
|
|
%install
|
2007-02-07 17:28:00 +01:00
|
|
|
%makeinstall
|
2011-08-11 21:25:39 +02:00
|
|
|
find %{buildroot}%{_libdir} -name "*.la" -type f -delete -print
|
2009-02-23 12:49:10 +01:00
|
|
|
%suse_update_desktop_file -N GHex -G "Hex Editor" %name Utility Editor
|
2011-08-11 21:25:39 +02:00
|
|
|
sed -e "s@;Development;@;@" < %{buildroot}%{_datadir}/applications/ghex.desktop \
|
|
|
|
> %{buildroot}%{_datadir}/applications/ghex.desktop.new
|
|
|
|
mv %{buildroot}%{_datadir}/applications/ghex.desktop.new \
|
|
|
|
%{buildroot}%{_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-08-11 21:25:39 +02:00
|
|
|
%find_lang %{name}-3.0 %{?no_lang_C}
|
|
|
|
%find_lang %{name} ghex-3.0.lang %{?no_lang_C}
|
2007-01-10 23:37:03 +01:00
|
|
|
%find_gconf_schemas
|
2011-08-11 21:25:39 +02:00
|
|
|
%fdupes -s %{buildroot}
|
2007-01-10 23:37:03 +01:00
|
|
|
|
|
|
|
%clean
|
2011-08-11 21:25:39 +02:00
|
|
|
rm -rf %{buildroot}
|
2007-01-10 23:37:03 +01:00
|
|
|
|
|
|
|
%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-08-11 21:25:39 +02:00
|
|
|
%files lang -f %{name}-3.0.lang
|
2011-08-12 10:33:32 +02: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-08-11 21:25:39 +02:00
|
|
|
%{_bindir}/ghex
|
|
|
|
%{_libdir}/libgtkhex-3.so.*
|
|
|
|
%{_datadir}/applications/ghex.desktop
|
2008-04-02 23:24:12 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/ghex.*
|
2011-08-11 21:25:39 +02:00
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%dir %{_datadir}/gnome/help/%{name}
|
|
|
|
%doc %{_datadir}/gnome/help/%{name}/C/
|
|
|
|
%{_datadir}/omf/%{name}/%{name}-C.omf
|
2007-08-10 01:17:13 +02:00
|
|
|
|
2007-01-10 23:37:03 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2011-08-11 21:25:39 +02:00
|
|
|
%{_includedir}/gtkhex-3/
|
|
|
|
%{_libdir}/libgtkhex-3.so
|
|
|
|
%{_libdir}/pkgconfig/gtkhex-3.pc
|
2008-03-07 20:59:35 +01:00
|
|
|
|
2007-04-27 16:45:18 +02:00
|
|
|
%changelog
|