]>
Commit | Line | Data |
---|---|---|
a21fa5d4 | 1 | Summary: GNOME2 binary editor |
f44a2055 | 2 | Summary(pl.UTF-8): Edytor binarny dla GNOME2 |
a21fa5d4 | 3 | Name: ghex |
d62d3da5 | 4 | Version: 2.22.0 |
adc82c7b | 5 | Release: 2 |
581e2c08 | 6 | License: GPL v2 |
d62d3da5 MB |
7 | Group: X11/Applications/Editors |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/ghex/2.22/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 6f1ee7a56f7dd04bfba5ee74a639948a | |
581e2c08 | 10 | Patch0: %{name}-desktop.patch |
93466bee | 11 | URL: http://www.gnu.org/directory/text/editors/ghex.html |
7a96b9b9 | 12 | BuildRequires: GConf2-devel >= 2.20.0 |
d62d3da5 | 13 | BuildRequires: atk-devel >= 1:1.22.0 |
fbe52600 | 14 | BuildRequires: autoconf >= 2.53 |
817d3d84 | 15 | BuildRequires: automake |
d62d3da5 | 16 | BuildRequires: gail-devel >= 1.22.0 |
341875a7 | 17 | BuildRequires: gettext-devel |
d62d3da5 MB |
18 | BuildRequires: gnome-doc-utils >= 0.12.0 |
19 | BuildRequires: gtk+2-devel >= 2:2.12.9 | |
581e2c08 MB |
20 | BuildRequires: intltool >= 0.36.1 |
21 | BuildRequires: libgnomeprintui-devel >= 2.18.0 | |
d62d3da5 | 22 | BuildRequires: libgnomeui-devel >= 2.22.1 |
b19f0cc4 | 23 | BuildRequires: libtool |
341875a7 | 24 | BuildRequires: pkgconfig |
64597244 | 25 | BuildRequires: popt-devel |
581e2c08 | 26 | BuildRequires: rpmbuild(macros) >= 1.311 |
7a96b9b9 | 27 | BuildRequires: sed >= 4.0 |
25545d6f | 28 | Requires(post,postun): /sbin/ldconfig |
581e2c08 | 29 | Requires(post,postun): gtk+2 |
7a96b9b9 | 30 | Requires(post,postun): hicolor-icon-theme |
acb35125 | 31 | Requires(post,preun): GConf2 |
7188ac79 | 32 | # sr@Latn vs. sr@latin |
33 | Conflicts: glibc-misc < 6:2.7 | |
69775058 | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a21fa5d4 | 35 | |
36 | %description | |
37 | GHex allows the user to load data from any file, view and edit it in | |
38 | either hex or ascii. A must for anyone playing games that use | |
39 | non-ascii format for saving. | |
40 | ||
059ed03f JR |
41 | %description -l pl.UTF-8 |
42 | GHex pozwala użytkownikowi na wczytanie danych z dowolnego pliku, | |
43 | przeglądanie i edycję ich w trybie szesnastkowym i ASCII. Obowiązkowe | |
44 | narzędzie dla wszystkich graczy, których gry zapisują stan w formacie | |
45 | innym niż tekstowy. | |
a21fa5d4 | 46 | |
d3ef15ab | 47 | %package devel |
48 | Summary: GHex devel files | |
f44a2055 | 49 | Summary(pl.UTF-8): Pliki nagłówkowe GHex |
d62d3da5 | 50 | Group: X11/Development/Libraries |
b19f0cc4 | 51 | Requires: %{name} = %{version}-%{release} |
d62d3da5 MB |
52 | Requires: atk-devel >= 1:1.22.0 |
53 | Requires: gail-devel >= 1.22.0 | |
54 | Requires: gtk+2-devel >= 2:2.12.9 | |
d3ef15ab | 55 | |
56 | %description devel | |
25545d6f | 57 | GHex devel files. |
d3ef15ab | 58 | |
059ed03f JR |
59 | %description devel -l pl.UTF-8 |
60 | Pliki nagłówkowe GHex. | |
d3ef15ab | 61 | |
62 | %package static | |
25545d6f | 63 | Summary: GHex static library |
f44a2055 | 64 | Summary(pl.UTF-8): Biblioteka statyczna GHex |
d62d3da5 | 65 | Group: X11/Development/Libraries |
b19f0cc4 | 66 | Requires: %{name}-devel = %{version}-%{release} |
d3ef15ab | 67 | |
68 | %description static | |
25545d6f | 69 | GHex static library. |
d3ef15ab | 70 | |
059ed03f | 71 | %description static -l pl.UTF-8 |
25545d6f | 72 | Biblioteka statyczna GHex. |
d3ef15ab | 73 | |
a21fa5d4 | 74 | %prep |
a21fa5d4 | 75 | %setup -q |
76 | %patch0 -p1 | |
a21fa5d4 | 77 | |
7a96b9b9 MB |
78 | sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS |
79 | mv po/sr@{Latn,latin}.po | |
80 | ||
a21fa5d4 | 81 | %build |
acb35125 | 82 | %{__glib_gettextize} |
83 | %{__intltoolize} | |
b19f0cc4 | 84 | %{__libtoolize} |
817d3d84 | 85 | %{__aclocal} |
86 | %{__autoconf} | |
d62d3da5 | 87 | %{__autoheader} |
817d3d84 | 88 | %{__automake} |
89 | %configure \ | |
90 | --disable-schemas-install | |
a21fa5d4 | 91 | %{__make} |
92 | ||
93 | %install | |
a21fa5d4 | 94 | rm -rf $RPM_BUILD_ROOT |
aa6f2774 | 95 | |
a21fa5d4 | 96 | %{__make} install \ |
817d3d84 | 97 | DESTDIR=$RPM_BUILD_ROOT \ |
98 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 | |
a21fa5d4 | 99 | |
100 | %find_lang %{name} --with-gnome --all-name | |
101 | ||
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %post | |
25545d6f | 106 | /sbin/ldconfig |
2f04a94c | 107 | %gconf_schema_install ghex2.schemas |
581e2c08 | 108 | %update_icon_cache hicolor |
acb35125 | 109 | |
110 | %preun | |
2f04a94c | 111 | %gconf_schema_uninstall ghex2.schemas |
a21fa5d4 | 112 | |
25545d6f JB |
113 | %postun |
114 | /sbin/ldconfig | |
581e2c08 | 115 | %update_icon_cache hicolor |
a21fa5d4 | 116 | |
117 | %files -f %{name}.lang | |
118 | %defattr(644,root,root,755) | |
817d3d84 | 119 | %doc AUTHORS ChangeLog README |
581e2c08 | 120 | %attr(755,root,root) %{_bindir}/ghex2 |
d3ef15ab | 121 | %attr(755,root,root) %{_libdir}/libgtkhex.so.*.*.* |
d62d3da5 | 122 | %attr(755,root,root) %ghost %{_libdir}/libgtkhex.so.0 |
581e2c08 MB |
123 | %{_desktopdir}/ghex.desktop |
124 | %{_iconsdir}/hicolor/*/*/* | |
a21fa5d4 | 125 | %{_datadir}/gnome-2.0/ui/* |
581e2c08 | 126 | %{_sysconfdir}/gconf/schemas/ghex2.schemas |
d3ef15ab | 127 | |
128 | %files devel | |
129 | %defattr(644,root,root,755) | |
25545d6f | 130 | %attr(755,root,root) %{_libdir}/libgtkhex.so |
d3ef15ab | 131 | %{_libdir}/libgtkhex.la |
581e2c08 MB |
132 | %{_includedir}/gtkhex |
133 | %{_pkgconfigdir}/gtkhex.pc | |
d3ef15ab | 134 | |
135 | %files static | |
136 | %defattr(644,root,root,755) | |
581e2c08 | 137 | %{_libdir}/libgtkhex.a |