]> git.pld-linux.org Git - packages/ghex.git/blob - ghex.spec
- updated to 2.20.1
[packages/ghex.git] / ghex.spec
1 Summary:        GNOME2 binary editor
2 Summary(pl.UTF-8):      Edytor binarny dla GNOME2
3 Name:           ghex
4 Version:        2.20.1
5 Release:        1
6 License:        GPL v2
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)
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
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.
45
46 %package devel
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
54
55 %description devel
56 GHex devel files.
57
58 %description devel -l pl.UTF-8
59 Pliki nagłówkowe GHex.
60
61 %package static
62 Summary:        GHex static library
63 Summary(pl.UTF-8):      Biblioteka statyczna GHex
64 Group:          Development/Libraries
65 Requires:       %{name}-devel = %{version}-%{release}
66
67 %description static
68 GHex static library.
69
70 %description static -l pl.UTF-8
71 Biblioteka statyczna GHex.
72
73 %prep
74 %setup -q
75 %patch0 -p1
76
77 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
78 mv po/sr@{Latn,latin}.po
79
80 %build
81 %{__glib_gettextize}
82 %{__intltoolize}
83 %{__libtoolize}
84 %{__aclocal}
85 %{__autoconf}
86 %{__automake}
87 %configure \
88         --disable-schemas-install
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT \
96         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
97
98 %find_lang %{name} --with-gnome --all-name
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %post
104 /sbin/ldconfig
105 %gconf_schema_install ghex2.schemas
106 %update_icon_cache hicolor
107
108 %preun
109 %gconf_schema_uninstall ghex2.schemas
110
111 %postun
112 /sbin/ldconfig
113 %update_icon_cache hicolor
114
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
124
125 %files devel
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
131
132 %files static
133 %defattr(644,root,root,755)
134 %{_libdir}/libgtkhex.a
This page took 0.045454 seconds and 3 git commands to generate.