]> git.pld-linux.org Git - packages/ghex.git/blob - ghex.spec
- merged 2.5.2 from DEVEL
[packages/ghex.git] / ghex.spec
1 Summary:        GNOME2 binary editor
2 Summary(pl):    Edytor binarny dla GNOME2
3 Name:           ghex
4 Version:        2.5.2
5 Release:        1
6 Group:          Applications/Editors
7 License:        GPL
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.5/%{name}-%{version}.tar.bz2
9 # Source0-md5:  95dc4caef992ae0ea5b3a3e20b235e39
10 Patch0:         %{name}-schema.patch
11 Patch1:         %{name}-locale-names.patch
12 URL:            http://pluton.ijs.si/~jaka/gnome.html#GHEX
13 BuildRequires:  atk-devel >= 1.6.0
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  gail-devel >= 1.6.0
17 BuildRequires:  gtk+2-devel >= 2:2.4.0
18 BuildRequires:  intltool
19 BuildRequires:  libglade2-devel >= 1:2.3.6
20 BuildRequires:  libgnomeui-devel >= 2.6.0
21 BuildRequires:  libgnomeprintui-devel >= 2.6.0
22 BuildRequires:  libtool
23 BuildRequires:  popt-devel
24 BuildRequires:  scrollkeeper
25 Requires(post,postun):  /sbin/ldconfig
26 Requires(post,postun):  /usr/bin/scrollkeeper-update
27 Requires(post): GConf2
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
36 GHex pozwala u¿ytkownikowi na wczytanie danych z dowolnego pliku,
37 przegl±danie i edycjê ich w trybie szesnastkowym i ASCII. Obowi±zkowe
38 narzêdzie dla wszystkich graczy, których gry zapisuj± stan w formacie
39 innym ni¿ tekstowy.
40
41 %package devel
42 Summary:        GHex devel files
43 Summary(pl):    Pliki nag³ówkowe GHex
44 Group:          Development/Libraries
45 Requires:       %{name} = %{version}-%{release}
46 Requires:       gail-devel >= 1.6.0
47 Requires:       gtk+2-devel >= 2:2.4.0
48
49 %description devel
50 GHex devel files.
51
52 %description devel -l pl
53 Pliki nag³ówkowe GHex.
54
55 %package static
56 Summary:        GHex static library
57 Summary(pl):    Biblioteka statyczna GHex
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 GHex static library.
63
64 %description static -l pl
65 Biblioteka statyczna GHex.
66
67 %prep
68 %setup -q
69 %patch0 -p1
70 %patch1 -p1
71
72 mv po/{no,nb}.po
73
74 %build
75 glib-gettextize --copy --force
76 intltoolize --copy --force
77 %{__libtoolize}
78 %{__aclocal}
79 %{__autoconf}
80 %{__automake}
81 %configure \
82         --disable-schemas-install
83
84 %{__make}
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT \
91         GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
92
93 %find_lang %{name} --with-gnome --all-name
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post
99 /sbin/ldconfig
100 /usr/bin/scrollkeeper-update
101 %gconf_schema_install
102
103 %postun
104 /sbin/ldconfig
105 /usr/bin/scrollkeeper-update
106
107 %files -f %{name}.lang
108 %defattr(644,root,root,755)
109 %doc AUTHORS ChangeLog README
110 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_libdir}/libgtkhex.so.*.*.*
112 %{_desktopdir}/*
113 %{_pixmapsdir}/*
114 %{_datadir}/gnome-2.0/ui/*
115 %{_sysconfdir}/gconf/schemas/*
116 %{_omf_dest_dir}/%{name}
117
118 %files devel
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/libgtkhex.so
121 %{_libdir}/libgtkhex.la
122 %{_includedir}/*
123 %{_pkgconfigdir}/*.pc
124
125 %files static
126 %defattr(644,root,root,755)
127 %{_libdir}/*.a
This page took 0.110031 seconds and 4 git commands to generate.