1 Summary: GNOME2 binary editor
2 Summary(pl.UTF-8): Edytor binarny dla GNOME2
7 Group: Applications/Editors
8 Source0: http://ftp.gnome.org/pub/GNOME/sources/ghex/2.20/%{name}-%{version}.tar.bz2
9 # Source0-md5: c14943b79caed9b3c5362075d3f278cc
10 Patch0: %{name}-desktop.patch
11 URL: http://www.gnu.org/directory/text/editors/ghex.html
12 BuildRequires: GConf2-devel >= 2.20.0
13 BuildRequires: atk-devel >= 1:1.20.0
14 BuildRequires: autoconf >= 2.53
15 BuildRequires: automake
16 BuildRequires: gail-devel >= 1.20.0
17 BuildRequires: gettext-devel
18 BuildRequires: gtk+2-devel >= 2:2.12.0
19 BuildRequires: intltool >= 0.36.1
20 BuildRequires: libgnomeprintui-devel >= 2.18.0
21 BuildRequires: libgnomeui-devel >= 2.20.1
22 BuildRequires: libtool
23 BuildRequires: pkgconfig
24 BuildRequires: popt-devel
25 BuildRequires: rpmbuild(macros) >= 1.311
26 BuildRequires: sed >= 4.0
27 Requires(post,postun): /sbin/ldconfig
28 Requires(post,postun): gtk+2
29 Requires(post,postun): hicolor-icon-theme
30 Requires(post,preun): GConf2
31 # sr@Latn vs. sr@latin
32 Conflicts: glibc-misc < 6:2.7
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 GHex allows the user to load data from any file, view and edit it in
37 either hex or ascii. A must for anyone playing games that use
38 non-ascii format for saving.
40 %description -l pl.UTF-8
41 GHex pozwala użytkownikowi na wczytanie danych z dowolnego pliku,
42 przeglądanie i edycję ich w trybie szesnastkowym i ASCII. Obowiązkowe
43 narzędzie dla wszystkich graczy, których gry zapisują stan w formacie
47 Summary: GHex devel files
48 Summary(pl.UTF-8): Pliki nagłówkowe GHex
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
51 Requires: atk-devel >= 1:1.20.0
52 Requires: gail-devel >= 1.20.0
53 Requires: gtk+2-devel >= 2:2.12.0
58 %description devel -l pl.UTF-8
59 Pliki nagłówkowe GHex.
62 Summary: GHex static library
63 Summary(pl.UTF-8): Biblioteka statyczna GHex
64 Group: Development/Libraries
65 Requires: %{name}-devel = %{version}-%{release}
70 %description static -l pl.UTF-8
71 Biblioteka statyczna GHex.
77 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
78 mv po/sr@{Latn,latin}.po
88 --disable-schemas-install
92 rm -rf $RPM_BUILD_ROOT
95 DESTDIR=$RPM_BUILD_ROOT \
96 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
98 %find_lang %{name} --with-gnome --all-name
101 rm -rf $RPM_BUILD_ROOT
105 %gconf_schema_install ghex2.schemas
106 %update_icon_cache hicolor
109 %gconf_schema_uninstall ghex2.schemas
113 %update_icon_cache hicolor
115 %files -f %{name}.lang
116 %defattr(644,root,root,755)
117 %doc AUTHORS ChangeLog README
118 %attr(755,root,root) %{_bindir}/ghex2
119 %attr(755,root,root) %{_libdir}/libgtkhex.so.*.*.*
120 %{_desktopdir}/ghex.desktop
121 %{_iconsdir}/hicolor/*/*/*
122 %{_datadir}/gnome-2.0/ui/*
123 %{_sysconfdir}/gconf/schemas/ghex2.schemas
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/libgtkhex.so
128 %{_libdir}/libgtkhex.la
129 %{_includedir}/gtkhex
130 %{_pkgconfigdir}/gtkhex.pc
133 %defattr(644,root,root,755)
134 %{_libdir}/libgtkhex.a