Summary: GNOME2 binary editor Summary(pl): Edytor binarny dla GNOME2 Name: ghex Version: 2.8.2 Release: 1 Group: Applications/Editors License: GPL Source0: http://ftp.gnome.org/pub/gnome/sources/ghex/2.8/%{name}-%{version}.tar.bz2 # Source0-md5: 1940a9f63b0d37604c6b489cda37fc19 Patch0: %{name}-schema.patch Patch1: %{name}-locale-names.patch Patch2: %{name}-desktop.patch URL: http://www.gnu.org/directory/text/editors/ghex.html BuildRequires: GConf2-devel >= 2.6.1 BuildRequires: atk-devel >= 1.6.1 BuildRequires: autoconf >= 2.53 BuildRequires: automake BuildRequires: gail-devel >= 1.6.5 BuildRequires: gettext-devel BuildRequires: gtk+2-devel >= 2:2.4.1 BuildRequires: intltool >= 0.30 BuildRequires: libglade2-devel >= 1:2.4.0 BuildRequires: libgnomeui-devel >= 2.6.1 BuildRequires: libgnomeprintui-devel >= 2.6.1 BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: popt-devel BuildRequires: rpmbuild(macros) >= 1.197 BuildRequires: scrollkeeper Requires(post,postun): /sbin/ldconfig Requires(post,preun): GConf2 Requires(post,postun): scrollkeeper 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 użytkownikowi 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 zapisują stan w formacie innym niż tekstowy. %package devel Summary: GHex devel files Summary(pl): Pliki nagłówkowe GHex Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: gail-devel >= 1.6.5 Requires: gtk+2-devel >= 2:2.4.1 %description devel GHex devel files. %description devel -l pl Pliki nagłówkowe GHex. %package static Summary: GHex static library Summary(pl): Biblioteka statyczna GHex Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static GHex static library. %description static -l pl Biblioteka statyczna GHex. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 mv po/{no,nb}.po %build %{__glib_gettextize} %{__intltoolize} %{__libtoolize} %{__aclocal} %{__autoconf} %{__automake} %configure \ --disable-schemas-install %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %find_lang %{name} --with-gnome --all-name %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig %scrollkeeper_update_post %gconf_schema_install ghex2.schemas %preun %gconf_schema_uninstall ghex2.schemas %postun /sbin/ldconfig %scrollkeeper_update_postun %files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS ChangeLog README %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_libdir}/libgtkhex.so.*.*.* %{_desktopdir}/* %{_pixmapsdir}/* %{_datadir}/gnome-2.0/ui/* %{_sysconfdir}/gconf/schemas/* %{_omf_dest_dir}/%{name} %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libgtkhex.so %{_libdir}/libgtkhex.la %{_includedir}/* %{_pkgconfigdir}/*.pc %files static %defattr(644,root,root,755) %{_libdir}/*.a