fb715ec8a7
Features * Add fastboot Google Pixel 7 * Add SHIFT5me * Add Quectel vendor and Quectel EC25 (#318) * Add Pico 4 VR Headset and vendor (#319) * Add UVC for Pixel devices (close #321) (#322) * Add Oculus Go and Oculus Quest (#324) * Add Nintendo Switch Miscellaneous Tasks * Update link to google source (#317) OBS-URL: https://build.opensuse.org/package/show/hardware/android-udev-rules?expand=0&rev=42
68 lines
2.0 KiB
RPMSpec
68 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package android-udev-rules
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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
|
|
Version: 20240625
|
|
Release: 0
|
|
Summary: Udev rules for Android Debug Bridge
|
|
License: GPL-3.0-or-later
|
|
Group: Hardware/Mobile
|
|
URL: https://github.com/M0Rf30/android-udev-rules
|
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
BuildRequires: sysuser-shadow
|
|
BuildRequires: sysuser-tools
|
|
BuildRequires: udev
|
|
Recommends: android-tools
|
|
Provides: android-tools-udev = %{version}
|
|
Obsoletes: android-tools-udev < %{version}
|
|
BuildArch: noarch
|
|
%sysusers_requires
|
|
|
|
%description
|
|
This package provides udev rules to facilitate the use of devices
|
|
with Android Debug Bridge (a command-line tool for communicating with
|
|
a device to e.g. install or debug apps).
|
|
The rules set adb* group ownership on /dev files and create symlinks
|
|
such as /dev/android*.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%sysusers_generate_pre android-udev.conf adbusers android-udev.conf
|
|
|
|
%install
|
|
install -D -m 0644 -t %{buildroot}%{_sysusersdir} android-udev.conf
|
|
install -D -m 0644 -t %{buildroot}%{_udevrulesdir} 51-android.rules
|
|
|
|
%pre -f adbusers.pre
|
|
|
|
%post
|
|
%udev_rules_update
|
|
|
|
%postun
|
|
%udev_rules_update
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_sysusersdir}/android-udev.conf
|
|
%{_udevrulesdir}/51-android.rules
|
|
|
|
%changelog
|