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