--- /dev/null
+Summary: GNOME2 binary editor
+Summary(pl): Edytor binarny dla GNOME2
+Name: ghex
+Version: 2.2.0
+Release: 1
+Group: Applications/Editors
+License: GPL
+URL: http://pluton.ijs.si/~jaka/gnome.html#GHEX
+Source0: http://ftp.gnome.org/pub/GNOME/stable/sources/ghex/%{name}-%{version}.tar.bz2
+Patch0: %{name}-omf.patch
+Patch1: %{name}-schema.patch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+GHex allows the user to load data from any file, view and edit it in
+either hex or ascii. A must for anyone playing games that use
+non-ascii format for saving.
+
+%description -l pl
+GHex pozwala urzytkownikowi na wczytanie danych z dowolnego pliku,
+przegl±danie i edycjê ich w trybie szesnastkowym i ASCII. Obowi±zkowe narzêdzie
+dla wszystkich graczy których gry nie zapisuj± stanu w trybie znakowym.
+
+%prep
+
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+%configure --disable-schemas-install
+
+%{__make}
+
+%install
+
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name} --with-gnome --all-name
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/usr/bin/scrollkeeper-update
+%gconf_schema_install
+
+%postun -p /usr/bin/scrollkeeper-update
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc README COPYING AUTHORS
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/applications/*
+%{_pixmapsdir}/*
+%{_datadir}/gnome-2.0/ui/*
+%{_sysconfdir}/gconf/schemas/*
+%{_omf_dest_dir}/%{name}