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