chore: add sysusers.d android-udev.conf to RPM spec (#254)
Co-authored-by: Giedrius M <giedrius.masalskis@softra.lt>
This commit is contained in:
parent
535984daf7
commit
b4d81e62d0
|
@ -1,40 +1,58 @@
|
||||||
Name: android-udev-rules
|
Name: android-udev-rules
|
||||||
Version: 20220102
|
Version: 20230310
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Udev rules to connect Android devices to your linux box
|
Summary: Udev rules to connect Android devices to your linux box
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://github.com/M0Rf30/android-udev-rules
|
URL: https://github.com/M0Rf30/android-udev-rules
|
||||||
Source0: https://github.com/M0Rf30/android-udev-rules/raw/master/51-android.rules
|
Source0: https://raw.githubusercontent.com/M0Rf30/android-udev-rules/main/51-android.rules
|
||||||
Source1: https://github.com/M0Rf30/android-udev-rules/raw/master/README.md
|
Source1: https://raw.githubusercontent.com/M0Rf30/android-udev-rules/main/README.md
|
||||||
Source2: https://github.com/M0Rf30/android-udev-rules/raw/master/LICENSE
|
Source2: https://raw.githubusercontent.com/M0Rf30/android-udev-rules/main/LICENSE
|
||||||
|
Source3: https://raw.githubusercontent.com/M0Rf30/android-udev-rules/main/android-udev.conf
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
# Build with: rpmbuild --undefine=_disable_source_fetch -bb android-udev-rules.spec
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Android udev rules list aimed to be the most comprehensive on the net.
|
Android udev rules list aimed to be the most comprehensive on the net.
|
||||||
Based on the official Android Studio documentation as well as suggestions from
|
Based on the official Android Studio documentation as well as suggestions from
|
||||||
the Archlinux and Github Communities.
|
the Archlinux and Github Communities.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
cp %{SOURCE0} %{SOURCE1} %{SOURCE2} .
|
cp %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/etc/udev/rules.d/.
|
mkdir -p %{buildroot}/etc/udev/rules.d/.
|
||||||
install -m 644 51-android.rules %{buildroot}/etc/udev/rules.d/.
|
install -m 644 51-android.rules %{buildroot}/etc/udev/rules.d/.
|
||||||
|
mkdir -p %{buildroot}/usr/lib/sysusers.d/.
|
||||||
|
install -m 644 android-udev.conf %{buildroot}/usr/lib/sysusers.d/.
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%config(noreplace) /etc/udev/rules.d/51-android.rules
|
%config(noreplace) /etc/udev/rules.d/51-android.rules
|
||||||
|
%config /usr/lib/sysusers.d/android-udev.conf
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
|
||||||
|
%post
|
||||||
|
systemd-sysusers
|
||||||
|
udevadm control --reload-rules
|
||||||
|
systemctl restart systemd-udevd.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
udevadm control --reload-rules
|
||||||
|
systemctl restart systemd-udevd.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
* Fri Mar 10 2023 Giedrius Masalskis <giedrius@masalskis.net> - 20230310-1
|
||||||
|
- Install android-udev.conf and create system group.
|
||||||
|
|
||||||
* Sun Jan 02 2022 Håkon Løvdal <kode@denkule.no> - 20220102-1
|
* Sun Jan 02 2022 Håkon Løvdal <kode@denkule.no> - 20220102-1
|
||||||
- Latest stable tag.
|
- Latest stable tag.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue