File omapconf.spec of Package omapconf

#
# spec file for package omapconf
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Guillaume GARDET <guillaume@opensuse.org>
#
# 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/
#


Name:           omapconf
Version:        1.72
Release:        0
Summary:        OMAP configuration utility
License:        GPL-2.0
Group:          Hardware/Other
Url:            https://github.com/omapconf/omapconf
Source0:        https://github.com/omapconf/omapconf/archive/v%{version}.tar.gz#/omapconf-%{version}.tar.gz
# PATCH-OPENSUSE: Android is detected instead of Linux on openSUSE. Force Linux detection.
Patch1:         force_linux_detection.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc
BuildRequires:  make
# OMAP (ARMv7) specific tool
ExclusiveArch:  armv7l armv7hl

%description
OMAPCONF is a Linux user-space standalone application designed to provide a quick'n easy way to diagnose (monitor/debug/audit...) TI OMAP configuration/status dynamically at runtime, in any situation.

OMAPCONF leverages "/dev/mem" special device to directly access complete TI OMAP memory space (registers, ...).

%prep
%setup -q
%patch1 -p0

%build
CFLAGS="$RPM_OPT_FLAGS -fgnu89-inline"  \
STATIC_BUILD="" make omapconf

%install
make install DESTDIR=%{buildroot}%{_bindir}

%files
%defattr(-,root,root)
%{_bindir}/omapconf
%doc LICENSE
%doc README.md

%changelog
openSUSE Build Service is sponsored by