android-udev-rules/android-udev-rules.spec
Paolo Panto 553670efee Accepting request 1001567 from home:munix9
- Update to version 20220903
  Bug Fixes
  * Avoid wrong detections of controller devices (#234)

  Features
  * Add rules for ZTE MF286* series internal modems (#231)
  * Add product ID for CDC-NCM+ADB for Tensor Pixels (#236)

  Miscellaneous Tasks
  * Install.sh: use /bin/sh interp within shebang (#232)
  * Remove commented universal rule
  * Change fast to adbfast for Pixel C (#235)

OBS-URL: https://build.opensuse.org/request/show/1001567
OBS-URL: https://build.opensuse.org/package/show/hardware/android-udev-rules?expand=0&rev=19
2022-09-11 04:38:22 +00:00

64 lines
1.9 KiB
RPMSpec

#
# spec file for package android-udev-rules
#
# Copyright (c) 2022 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: 20220903
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/android-udev-rules/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: sysuser-shadow
BuildRequires: sysuser-tools
Recommends: android-tools
Provides: android-tools-udev = %{version}
Obsoletes: android-tools-udev < %{version}
BuildArch: noarch
%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 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