]> git.pld-linux.org Git - packages/ghex.git/blob - ghex.spec
Update to 3.18.3
[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.18.3
5 Release:        1
6 License:        GPL v2
7 Group:          X11/Applications/Editors
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/ghex/3.18/%{name}-%{version}.tar.xz
9 # Source0-md5:  b17d66b9a52a87684468b06c75c4ba3e
10 Patch0:         %{name}-desktop.patch
11 URL:            https://wiki.gnome.org/Apps/Ghex
12 BuildRequires:  atk-devel >= 1:1.22.0
13 BuildRequires:  autoconf >= 2.61
14 BuildRequires:  automake >= 1:1.11
15 BuildRequires:  gettext-tools
16 BuildRequires:  glib2-devel >= 1:2.32.0
17 BuildRequires:  gnome-common
18 BuildRequires:  gtk+3-devel >= 3.4.0
19 BuildRequires:  intltool >= 0.41.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 BuildRequires:  yelp-tools
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 Requires:       atk >= 1:1.22.0
49 Requires:       glib2 >= 1:2.32.0
50 Requires:       gtk+3 >= 3.4.0
51
52 %description libs
53 GHex library.
54
55 %description libs -l pl.UTF-8
56 Biblioteka GHex.
57
58 %package devel
59 Summary:        GHex devel files
60 Summary(pl.UTF-8):      Pliki nagłówkowe GHex
61 Group:          X11/Development/Libraries
62 Requires:       %{name}-libs = %{version}-%{release}
63 Requires:       gtk+3-devel >= 3.4.0
64
65 %description devel
66 GHex devel files.
67
68 %description devel -l pl.UTF-8
69 Pliki nagłówkowe GHex.
70
71 %package static
72 Summary:        GHex static library
73 Summary(pl.UTF-8):      Biblioteka statyczna GHex
74 Group:          X11/Development/Libraries
75 Requires:       %{name}-devel = %{version}-%{release}
76
77 %description static
78 GHex static library.
79
80 %description static -l pl.UTF-8
81 Biblioteka statyczna GHex.
82
83 %prep
84 %setup -q
85 %patch0 -p1
86
87 %build
88 %{__glib_gettextize}
89 %{__intltoolize}
90 %{__libtoolize}
91 %{__aclocal}
92 %{__autoconf}
93 %{__autoheader}
94 %{__automake}
95 %configure \
96         --disable-schemas-compile \
97         --disable-silent-rules \
98         --enable-static
99 %{__make}
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT
106
107 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
108
109 %find_lang %{name} --with-gnome --all-name
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post
115 %update_icon_cache hicolor
116 %glib_compile_schemas
117
118 %postun
119 %update_icon_cache hicolor
120 %glib_compile_schemas
121
122 %post   libs -p /sbin/ldconfig
123 %postun libs -p /sbin/ldconfig
124
125 %files -f %{name}.lang
126 %defattr(644,root,root,755)
127 %doc AUTHORS NEWS README
128 %attr(755,root,root) %{_bindir}/ghex
129 %{_datadir}/GConf/gsettings/ghex.convert
130 %{_datadir}/appdata/ghex.appdata.xml
131 %{_datadir}/glib-2.0/schemas/org.gnome.GHex.gschema.xml
132 %{_desktopdir}/ghex.desktop
133 %{_iconsdir}/hicolor/*x*/apps/ghex.png
134 %{_iconsdir}/hicolor/scalable/apps/ghex-symbolic.svg
135
136 %files libs
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_libdir}/libgtkhex-3.so.*.*.*
139 %attr(755,root,root) %ghost %{_libdir}/libgtkhex-3.so.0
140
141 %files devel
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_libdir}/libgtkhex-3.so
144 %{_includedir}/gtkhex-3
145 %{_pkgconfigdir}/gtkhex-3.pc
146
147 %files static
148 %defattr(644,root,root,755)
149 %{_libdir}/libgtkhex-3.a
This page took 0.070979 seconds and 3 git commands to generate.