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