File rkdeveloptool.spec of Package rkdeveloptool

# spec file for package rkdeveloptool
# Copyright (c) 2017 SUSE LINUX 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

Name:           rkdeveloptool
Version:        1.3~git.20180907.72c04fe
Release:        0
Summary:        Utility for Rockchip SoCs
License:        GPL-2.0+
Group:          System/Boot
Source0:        rkdeveloptool-%{version}.tar.xz
Source10:       99-rkdeveloptool.rules
Patch1:         rkdeveloptool_build.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(libusb-1.0)
BuildRequires:  pkgconfig(udev)
Requires(post): udev
Requires(postun): udev
%define _udevdir %(pkg-config --variable udevdir udev)
ExcludeArch:    %arm aarch64 ppc ppc64 ppc64le s390x

rkdeveloptool provides ways to read/write rockusb devices.

%setup -q
%patch1 -p1

autoreconf -i
make %{?_smp_mflags}

make %{?_smp_mflags} install DESTDIR=%{buildroot}
install -D -m 644 %{SOURCE10} %{buildroot}%{_udevdir}/rules.d/99-rkdeveloptool.rules



%doc Readme.txt license.txt