File wxhexeditor.spec of Package wxhexeditor

#
# spec file for package wxhexeditor
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define _use_internal_dependency_generator 0
%define __find_requires %wx_requires

Name:           wxhexeditor
%define _name   wxHexEditor
Version:        0.22
Release:        0
Summary:        A free HEX editor / disk editor
License:        GPL-2.0
Group:          Development/Tools/Other
Url:            http://wxhexeditor.org/
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE wxhexeditor-0.22-mhash.patch lazy.kent@opensuse.org -- use system mhash library
Patch0:         wxhexeditor-0.22-mhash.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  mhash-devel
BuildRequires:  update-desktop-files
BuildRequires:  wxWidgets-devel
Recommends:     %{name}-lang

%description
wxHexEditor is an another Hex Editor, created because of there was no
good HEX editor for GNU/Linux, especially for big files. It supports
files up to 2^64 bytes. Written with C++/wxWidgets and can be used
with other operating systems such as Windows and OS X.

Features:
 * Ability to work with files up to 2EB (ExaByte);
 * Crossplatform;
 * Small footprint on RAM;
 * Raw Disk Access (on POSIX systems);
 * Does not create temporary files.

%lang_package

%prep
%setup -q
%patch0 -p1
chmod -x docs/*

%build
make %{?_smp_mflags} OPTFLAGS="-fopenmp"

%install
make DESTDIR=%{buildroot} PREFIX=%{_prefix} install
%find_lang %{_name} %{?no_lang_C}

%files
%defattr(-,root,root)
%doc docs/{Change.log,GPL.txt}
%{_bindir}/%{_name}
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/pixmaps/%{_name}.png

%files lang -f %{_name}.lang

%changelog
openSUSE Build Service is sponsored by