]> git.pld-linux.org Git - packages/ghex.git/blame - ghex.spec
- simplification static build; rel 2
[packages/ghex.git] / ghex.spec
CommitLineData
a21fa5d4 1Summary: GNOME2 binary editor
f44a2055 2Summary(pl.UTF-8): Edytor binarny dla GNOME2
a21fa5d4 3Name: ghex
dc45796a 4Version: 3.0.0
c6077ec3 5Release: 2
581e2c08 6License: GPL v2
d62d3da5 7Group: X11/Applications/Editors
dc45796a
JK
8Source0: http://ftp.gnome.org/pub/GNOME/sources/ghex/3.0/%{name}-%{version}.tar.xz
9# Source0-md5: ffa346d6fa97b9e787680159a5479b84
581e2c08 10Patch0: %{name}-desktop.patch
93466bee 11URL: http://www.gnu.org/directory/text/editors/ghex.html
d62d3da5 12BuildRequires: atk-devel >= 1:1.22.0
fbe52600 13BuildRequires: autoconf >= 2.53
817d3d84 14BuildRequires: automake
341875a7 15BuildRequires: gettext-devel
d62d3da5 16BuildRequires: gnome-doc-utils >= 0.12.0
dc45796a 17BuildRequires: gtk+3-devel
581e2c08 18BuildRequires: intltool >= 0.36.1
b19f0cc4 19BuildRequires: libtool
341875a7 20BuildRequires: pkgconfig
581e2c08 21BuildRequires: rpmbuild(macros) >= 1.311
25545d6f 22Requires(post,postun): /sbin/ldconfig
dc45796a 23Requires(post,postun): glib2 >= 1:2.26.0
2331e518 24Requires(post,postun): gtk-update-icon-cache
7a96b9b9 25Requires(post,postun): hicolor-icon-theme
7188ac79 26Conflicts: glibc-misc < 6:2.7
69775058 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a21fa5d4 28
29%description
30GHex allows the user to load data from any file, view and edit it in
31either hex or ascii. A must for anyone playing games that use
32non-ascii format for saving.
33
059ed03f
JR
34%description -l pl.UTF-8
35GHex pozwala użytkownikowi na wczytanie danych z dowolnego pliku,
dc45796a
JK
36przeglądanie i edycję ich w trybie szesnastkowym i ASCII.
37Obowiązkowe narzędzie dla wszystkich graczy, których gry zapisują
38stan w formacie innym niż tekstowy.
a21fa5d4 39
d3ef15ab 40%package devel
41Summary: GHex devel files
f44a2055 42Summary(pl.UTF-8): Pliki nagłówkowe GHex
d62d3da5 43Group: X11/Development/Libraries
b19f0cc4 44Requires: %{name} = %{version}-%{release}
d62d3da5 45Requires: atk-devel >= 1:1.22.0
dc45796a 46Requires: gtk+3-devel
d3ef15ab 47
48%description devel
25545d6f 49GHex devel files.
d3ef15ab 50
059ed03f
JR
51%description devel -l pl.UTF-8
52Pliki nagłówkowe GHex.
d3ef15ab 53
54%package static
25545d6f 55Summary: GHex static library
f44a2055 56Summary(pl.UTF-8): Biblioteka statyczna GHex
d62d3da5 57Group: X11/Development/Libraries
b19f0cc4 58Requires: %{name}-devel = %{version}-%{release}
d3ef15ab 59
60%description static
25545d6f 61GHex static library.
d3ef15ab 62
059ed03f 63%description static -l pl.UTF-8
25545d6f 64Biblioteka statyczna GHex.
d3ef15ab 65
a21fa5d4 66%prep
a21fa5d4 67%setup -q
68%patch0 -p1
7a96b9b9 69
a21fa5d4 70%build
acb35125 71%{__glib_gettextize}
72%{__intltoolize}
b19f0cc4 73%{__libtoolize}
817d3d84 74%{__aclocal}
75%{__autoconf}
d62d3da5 76%{__autoheader}
817d3d84 77%{__automake}
78%configure \
c6077ec3
JK
79 --disable-schemas-compile \
80 --enable-static
a21fa5d4 81%{__make}
82
83%install
a21fa5d4 84rm -rf $RPM_BUILD_ROOT
aa6f2774 85
a21fa5d4 86%{__make} install \
dc45796a 87 DESTDIR=$RPM_BUILD_ROOT
a21fa5d4 88
dc45796a 89%find_lang %{name} --with-gnome --with-omf --all-name
a21fa5d4 90
91%clean
92rm -rf $RPM_BUILD_ROOT
93
94%post
25545d6f 95/sbin/ldconfig
581e2c08 96%update_icon_cache hicolor
dc45796a 97%glib_compile_schemas
a21fa5d4 98
25545d6f
JB
99%postun
100/sbin/ldconfig
581e2c08 101%update_icon_cache hicolor
dc45796a 102%glib_compile_schemas
a21fa5d4 103
104%files -f %{name}.lang
105%defattr(644,root,root,755)
817d3d84 106%doc AUTHORS ChangeLog README
dc45796a
JK
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
581e2c08
MB
112%{_desktopdir}/ghex.desktop
113%{_iconsdir}/hicolor/*/*/*
dc45796a 114%{_datadir}/ghex/ghex-ui.xml
d3ef15ab 115
116%files devel
117%defattr(644,root,root,755)
dc45796a
JK
118%attr(755,root,root) %{_libdir}/libgtkhex-3.so
119%{_libdir}/libgtkhex-3.la
120%{_includedir}/gtkhex-3
121%{_pkgconfigdir}/gtkhex-3.pc
d3ef15ab 122
123%files static
124%defattr(644,root,root,755)
dc45796a 125%{_libdir}/libgtkhex-3.a
This page took 0.167869 seconds and 4 git commands to generate.