2019-11-14 11:26:25 +01:00
|
|
|
#
|
|
|
|
# spec file for package android-udev-rules
|
|
|
|
#
|
2021-03-03 22:33:11 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-11-14 11:26:25 +01: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: android-udev-rules
|
2021-03-03 22:33:11 +01:00
|
|
|
Version: 20210302
|
2019-11-14 11:26:25 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Android udev rules list aimed to be the most comprehensive on the net
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
Group: Hardware/Mobile
|
|
|
|
URL: https://github.com/M0Rf30/android-udev-rules
|
|
|
|
Source0: https://github.com/M0Rf30/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: sysuser-shadow
|
|
|
|
BuildRequires: sysuser-tools
|
|
|
|
Recommends: android-tools
|
2020-11-13 10:19:47 +01:00
|
|
|
Provides: android-tools-udev = %{version}
|
|
|
|
Obsoletes: android-tools-udev < %{version}
|
2020-07-31 06:46:45 +02:00
|
|
|
BuildArch: noarch
|
2019-11-14 11:26:25 +01:00
|
|
|
%{sysusers_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
These rules refer to 'Run Apps on a Hardware Device - Android Studio'
|
|
|
|
and include many suggestions from the Archlinux and Github Communities.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
%sysusers_generate_pre android-udev.conf adbusers
|
|
|
|
|
|
|
|
%install
|
2020-07-31 06:46:45 +02:00
|
|
|
install -D -m 0644 -t %{buildroot}%{_sysusersdir} android-udev.conf
|
|
|
|
install -D -m 0644 -t %{buildroot}%{_udevrulesdir} 51-android.rules
|
2019-11-14 11:26:25 +01:00
|
|
|
|
|
|
|
%pre -f adbusers.pre
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%{_sysusersdir}/android-udev.conf
|
|
|
|
%{_udevrulesdir}/51-android.rules
|
|
|
|
|
|
|
|
%changelog
|