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
|
|
|
#
|
2012-02-25 11:32:39 +01:00
|
|
|
# Copyright (c) 2012 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ghex
|
2012-09-27 23:30:29 +02:00
|
|
|
Version: 3.6.0
|
2012-02-25 11:32:39 +01:00
|
|
|
Release: 0
|
2007-01-10 23:37:03 +01:00
|
|
|
Summary: GNOME Binary Editor
|
2012-02-25 11:32:39 +01:00
|
|
|
License: GPL-2.0+
|
2011-08-11 21:25:39 +02:00
|
|
|
Group: Development/Tools/Other
|
2012-02-25 11:32:39 +01:00
|
|
|
Url: http://www.gnome.org/
|
2012-09-27 23:30:29 +02:00
|
|
|
Source: http://download.gnome.org/sources/ghex/3.6/%{name}-%{version}.tar.xz
|
2011-09-06 23:57:26 +02:00
|
|
|
# PATCH-FIX-UPSTREAM ghex-empty-search-crash.patch bgo#473208
|
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
|
2012-02-25 11:32:39 +01:00
|
|
|
BuildRequires: translation-update-upstream
|
|
|
|
BuildRequires: update-desktop-files
|
2011-08-11 21:25:39 +02:00
|
|
|
BuildRequires: pkgconfig(atk) >= 1.0.0
|
|
|
|
BuildRequires: pkgconfig(gail-3.0)
|
2012-03-11 19:47:03 +01:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.31.10
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.3.8
|
2011-02-14 01:16:34 +01:00
|
|
|
Recommends: %{name}-lang
|
2011-08-11 21:25:39 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-08-15 20:06:43 +02:00
|
|
|
%glib2_gsettings_schema_requires
|
2007-01-10 23:37:03 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2011-09-06 23:57:26 +02:00
|
|
|
%package -n libgtkhex-3-0
|
|
|
|
Summary: GNOME Binary Editor -- Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libgtkhex-3-0
|
|
|
|
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-01-10 23:37:03 +01:00
|
|
|
%package devel
|
2011-09-06 23:57:26 +02:00
|
|
|
Summary: GNOME Binary Editor -- Development Files
|
|
|
|
Group: Development/Libraries/GNOME
|
|
|
|
Requires: libgtkhex-3-0 = %{version}
|
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\
|
2012-02-25 11:32:39 +01:00
|
|
|
--disable-scrollkeeper
|
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
|
2011-09-06 23:57:26 +02:00
|
|
|
%suse_update_desktop_file -r %name GNOME Utility Editor
|
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}
|
|
|
|
%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
|
|
|
|
2011-02-14 01:16:34 +01:00
|
|
|
%post
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
2011-08-15 20:06:43 +02:00
|
|
|
%glib2_gsettings_schema_post
|
2011-02-14 01:16:34 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
2011-08-15 20:06:43 +02:00
|
|
|
%glib2_gsettings_schema_postun
|
2011-02-14 01:16:34 +01:00
|
|
|
%endif
|
2007-01-10 23:37:03 +01:00
|
|
|
|
2011-09-06 23:57:26 +02:00
|
|
|
%post -n libgtkhex-3-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libgtkhex-3-0 -p /sbin/ldconfig
|
2011-08-12 10:33:32 +02:00
|
|
|
|
2011-08-15 20:06:43 +02:00
|
|
|
%files
|
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
|
|
|
|
%{_datadir}/applications/ghex.desktop
|
2011-08-15 20:06:43 +02:00
|
|
|
%dir %{_datadir}/GConf
|
|
|
|
%dir %{_datadir}/GConf/gsettings
|
|
|
|
%{_datadir}/GConf/gsettings/ghex.convert
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.GHex.gschema.xml
|
2008-04-02 23:24:12 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/ghex.*
|
2011-08-11 21:25:39 +02:00
|
|
|
%dir %{_datadir}/gnome/help/%{name}
|
|
|
|
%doc %{_datadir}/gnome/help/%{name}/C/
|
2011-09-06 23:57:26 +02:00
|
|
|
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
|
|
|
|
|
|
|
|
%files -n libgtkhex-3-0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libgtkhex-3.so.*
|
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
|
|
|
|
2011-09-06 23:57:26 +02:00
|
|
|
%files lang -f %{name}-3.0.lang
|
|
|
|
|
2007-04-27 16:45:18 +02:00
|
|
|
%changelog
|