2017-04-30 21:28:04 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package rkdeveloptool
|
|
|
|
|
#
|
2021-11-24 14:06:08 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2017-04-30 21:28:04 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2021-08-21 18:00:28 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-04-30 21:28:04 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2021-11-24 14:06:08 +00:00
|
|
|
%define build_cxxflags %optflags -flto=auto
|
|
|
|
|
|
2017-04-30 21:28:04 +00:00
|
|
|
Name: rkdeveloptool
|
2021-08-21 18:00:28 +00:00
|
|
|
Version: 1.32~git.20210408.46bb4c0
|
2017-04-30 21:28:04 +00:00
|
|
|
Release: 0
|
2021-11-24 14:06:08 +00:00
|
|
|
URL: https://github.com/rockchip-linux/rkdeveloptool
|
2017-04-30 21:28:04 +00:00
|
|
|
Summary: Utility for Rockchip SoCs
|
2021-08-21 18:00:28 +00:00
|
|
|
License: GPL-2.0-or-later
|
2017-04-30 21:28:04 +00:00
|
|
|
Group: System/Boot
|
|
|
|
|
Source0: rkdeveloptool-%{version}.tar.xz
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: gcc-c++
|
2021-08-21 18:00:28 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2017-04-30 21:28:04 +00:00
|
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
2017-05-01 06:50:16 +00:00
|
|
|
Requires(post): udev
|
2021-11-24 14:06:08 +00:00
|
|
|
Requires(postun):udev
|
2017-04-30 21:28:04 +00:00
|
|
|
|
|
|
|
|
%description
|
2017-05-03 15:36:52 +00:00
|
|
|
rkdeveloptool provides ways to read/write rockusb devices.
|
2017-04-30 21:28:04 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf -i
|
|
|
|
|
%configure
|
2021-08-21 18:00:28 +00:00
|
|
|
%make_build
|
2017-04-30 21:28:04 +00:00
|
|
|
|
|
|
|
|
%install
|
2021-08-21 18:00:28 +00:00
|
|
|
%make_install
|
|
|
|
|
install -D -m 644 99-rk-rockusb.rules %{buildroot}%{_udevrulesdir}/99-rk-rockusb.rules
|
2017-05-01 06:50:16 +00:00
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%udev_rules_update
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%udev_rules_update
|
2017-04-30 21:28:04 +00:00
|
|
|
|
|
|
|
|
%files
|
2021-08-21 18:00:28 +00:00
|
|
|
%license license.txt
|
|
|
|
|
%doc Readme.txt parameter_gpt.txt
|
2017-04-30 21:28:04 +00:00
|
|
|
%{_bindir}/rkdeveloptool
|
2021-08-21 18:00:28 +00:00
|
|
|
%{_udevrulesdir}/99-rk-rockusb.rules
|
2017-04-30 21:28:04 +00:00
|
|
|
|
|
|
|
|
%changelog
|