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