]>
Commit | Line | Data |
---|---|---|
a21fa5d4 | 1 | Summary: GNOME2 binary editor |
059ed03f | 2 | Summary(pl.UTF-8): Edytor binarny dla GNOME2 |
a21fa5d4 | 3 | Name: ghex |
420b3415 | 4 | Version: 2.8.2 |
5 | Release: 1 | |
a21fa5d4 | 6 | Group: Applications/Editors |
7 | License: GPL | |
acb35125 | 8 | Source0: http://ftp.gnome.org/pub/gnome/sources/ghex/2.8/%{name}-%{version}.tar.bz2 |
420b3415 | 9 | # Source0-md5: 1940a9f63b0d37604c6b489cda37fc19 |
d3ef15ab | 10 | Patch0: %{name}-schema.patch |
b19f0cc4 | 11 | Patch1: %{name}-locale-names.patch |
a867a671 | 12 | Patch2: %{name}-desktop.patch |
93466bee | 13 | URL: http://www.gnu.org/directory/text/editors/ghex.html |
75871741 | 14 | BuildRequires: GConf2-devel >= 2.6.1 |
15 | BuildRequires: atk-devel >= 1.6.1 | |
fbe52600 | 16 | BuildRequires: autoconf >= 2.53 |
817d3d84 | 17 | BuildRequires: automake |
75871741 | 18 | BuildRequires: gail-devel >= 1.6.5 |
341875a7 | 19 | BuildRequires: gettext-devel |
75871741 | 20 | BuildRequires: gtk+2-devel >= 2:2.4.1 |
fbe52600 | 21 | BuildRequires: intltool >= 0.30 |
75871741 | 22 | BuildRequires: libglade2-devel >= 1:2.4.0 |
23 | BuildRequires: libgnomeui-devel >= 2.6.1 | |
24 | BuildRequires: libgnomeprintui-devel >= 2.6.1 | |
b19f0cc4 | 25 | BuildRequires: libtool |
341875a7 | 26 | BuildRequires: pkgconfig |
64597244 | 27 | BuildRequires: popt-devel |
acb35125 | 28 | BuildRequires: rpmbuild(macros) >= 1.197 |
eb30c409 | 29 | BuildRequires: scrollkeeper |
25545d6f | 30 | Requires(post,postun): /sbin/ldconfig |
acb35125 | 31 | Requires(post,preun): GConf2 |
32 | Requires(post,postun): scrollkeeper | |
69775058 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a21fa5d4 | 34 | |
35 | %description | |
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. | |
39 | ||
059ed03f JR |
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 | |
44 | innym niż tekstowy. | |
a21fa5d4 | 45 | |
d3ef15ab | 46 | %package devel |
47 | Summary: GHex devel files | |
059ed03f | 48 | Summary(pl.UTF-8): Pliki nagłówkowe GHex |
d3ef15ab | 49 | Group: Development/Libraries |
b19f0cc4 | 50 | Requires: %{name} = %{version}-%{release} |
75871741 | 51 | Requires: gail-devel >= 1.6.5 |
52 | Requires: gtk+2-devel >= 2:2.4.1 | |
d3ef15ab | 53 | |
54 | %description devel | |
25545d6f | 55 | GHex devel files. |
d3ef15ab | 56 | |
059ed03f JR |
57 | %description devel -l pl.UTF-8 |
58 | Pliki nagłówkowe GHex. | |
d3ef15ab | 59 | |
60 | %package static | |
25545d6f | 61 | Summary: GHex static library |
059ed03f | 62 | Summary(pl.UTF-8): Biblioteka statyczna GHex |
d3ef15ab | 63 | Group: Development/Libraries |
b19f0cc4 | 64 | Requires: %{name}-devel = %{version}-%{release} |
d3ef15ab | 65 | |
66 | %description static | |
25545d6f | 67 | GHex static library. |
d3ef15ab | 68 | |
059ed03f | 69 | %description static -l pl.UTF-8 |
25545d6f | 70 | Biblioteka statyczna GHex. |
d3ef15ab | 71 | |
a21fa5d4 | 72 | %prep |
a21fa5d4 | 73 | %setup -q |
74 | %patch0 -p1 | |
b19f0cc4 | 75 | %patch1 -p1 |
a867a671 | 76 | %patch2 -p1 |
b19f0cc4 | 77 | |
78 | mv po/{no,nb}.po | |
a21fa5d4 | 79 | |
80 | %build | |
acb35125 | 81 | %{__glib_gettextize} |
82 | %{__intltoolize} | |
b19f0cc4 | 83 | %{__libtoolize} |
817d3d84 | 84 | %{__aclocal} |
85 | %{__autoconf} | |
86 | %{__automake} | |
87 | %configure \ | |
88 | --disable-schemas-install | |
a21fa5d4 | 89 | %{__make} |
90 | ||
91 | %install | |
a21fa5d4 | 92 | rm -rf $RPM_BUILD_ROOT |
aa6f2774 | 93 | |
a21fa5d4 | 94 | %{__make} install \ |
817d3d84 | 95 | DESTDIR=$RPM_BUILD_ROOT \ |
96 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 | |
a21fa5d4 | 97 | |
98 | %find_lang %{name} --with-gnome --all-name | |
99 | ||
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %post | |
25545d6f | 104 | /sbin/ldconfig |
acb35125 | 105 | %scrollkeeper_update_post |
2f04a94c | 106 | %gconf_schema_install ghex2.schemas |
acb35125 | 107 | |
108 | %preun | |
2f04a94c | 109 | %gconf_schema_uninstall ghex2.schemas |
a21fa5d4 | 110 | |
25545d6f JB |
111 | %postun |
112 | /sbin/ldconfig | |
acb35125 | 113 | %scrollkeeper_update_postun |
a21fa5d4 | 114 | |
115 | %files -f %{name}.lang | |
116 | %defattr(644,root,root,755) | |
817d3d84 | 117 | %doc AUTHORS ChangeLog README |
a21fa5d4 | 118 | %attr(755,root,root) %{_bindir}/* |
d3ef15ab | 119 | %attr(755,root,root) %{_libdir}/libgtkhex.so.*.*.* |
965a0360 | 120 | %{_desktopdir}/*.desktop |
a21fa5d4 | 121 | %{_pixmapsdir}/* |
122 | %{_datadir}/gnome-2.0/ui/* | |
123 | %{_sysconfdir}/gconf/schemas/* | |
124 | %{_omf_dest_dir}/%{name} | |
d3ef15ab | 125 | |
126 | %files devel | |
127 | %defattr(644,root,root,755) | |
25545d6f | 128 | %attr(755,root,root) %{_libdir}/libgtkhex.so |
d3ef15ab | 129 | %{_libdir}/libgtkhex.la |
25545d6f | 130 | %{_includedir}/* |
d3ef15ab | 131 | %{_pkgconfigdir}/*.pc |
132 | ||
133 | %files static | |
134 | %defattr(644,root,root,755) | |
135 | %{_libdir}/*.a |