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