Package udev-android: Specfile

# vim: set ft=spec: -*- rpm-spec -*-

%define adbusersgroup adbusers

Name: udev-android
Version: 20240221
Release: alt1

Summary: Udev rules for adb and fastboot

License: GPLv3
Group: System/Configuration/Hardware
URL: https://github.com/M0Rf30/android-udev-rules

BuildArch: noarch

Source: %name-%version.tar

%description
This package provides an UDEV rules enabling adb and fastboot to work
without root access to the host machine.

%prep
%setup
# ALT 43795
sed -i -e '/04da/s/^/#\ /' 51-android.rules

%install
mkdir -p %buildroot%_udevrulesdir
install -p -m644 51-android.rules %buildroot%_udevrulesdir

%pre
/usr/sbin/groupadd -r -f %adbusersgroup ||:

%files
%doc LICENSE README.md
%_udevrulesdir/51-android.rules

%changelog
* Mon Feb 26 2024 Grigory Ustinov <grenka@altlinux.org> 20240221-alt1
- Automatically updated to 20240221.

* Mon Jan 15 2024 Grigory Ustinov <grenka@altlinux.org> 20240114-alt1
- Automatically updated to 20240114.

* Thu Dec 28 2023 Grigory Ustinov <grenka@altlinux.org> 20231207-alt1
- Automatically updated to 20231207.

* Tue Oct 31 2023 Grigory Ustinov <grenka@altlinux.org> 20231030-alt1
- Automatically updated to 20231030.

* Thu Jul 27 2023 Grigory Ustinov <grenka@altlinux.org> 20230614-alt1.1
- Fix sed flag.

* Thu Jul 27 2023 Grigory Ustinov <grenka@altlinux.org> 20230614-alt1
- Automatically updated to 20230614.

* Wed May 17 2023 Grigory Ustinov <grenka@altlinux.org> 20230303-alt1
- Build new version.

* Mon Jul 13 2020 Grigory Ustinov <grenka@altlinux.org> 0.0.20200613-alt1
- New version: 20200613
- Fix license packaging (Closes: #38521)

* Tue Aug 06 2019 Pavel Nakonechnyi <zorg@altlinux.org> 0.0.20190315-alt1
- New version: 20190315

* Tue Jan 03 2017 Aleksey Avdeev <solo@altlinux.org> 0.0.20170103-alt1
- New version: 20170103

* Tue Jan 03 2017 Aleksey Avdeev <solo@altlinux.org> 0.0.20161014-alt1.gita64df07.1
- Initial build for ALT Linux Sisyphus