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