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