From ad68e0b0af1dff0ef3ba23e770ca9f68348d3a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20L=C3=B8vdal?= Date: Sun, 15 Dec 2019 22:53:59 +0100 Subject: [PATCH] Add RPM spec file to build rpm packages --- rpm/android-udev-rules.spec | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 rpm/android-udev-rules.spec diff --git a/rpm/android-udev-rules.spec b/rpm/android-udev-rules.spec new file mode 100644 index 0000000..e6e97cb --- /dev/null +++ b/rpm/android-udev-rules.spec @@ -0,0 +1,40 @@ +Name: android-udev-rules +Version: 0.0.1 +Release: 1%{?dist} +Summary: Udev rules to allow communication with Android devices +License: GPLv3+ +URL: https://github.com/M0Rf30/android-udev-rules +Source0: https://github.com/M0Rf30/android-udev-rules/raw/master/51-android.rules +Source1: https://github.com/M0Rf30/android-udev-rules/raw/master/README.md +Source2: https://github.com/M0Rf30/android-udev-rules/raw/master/LICENSE +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +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 +the Archlinux and Github Communities. + +%prep +cp %{SOURCE0} %{SOURCE1} %{SOURCE2} . + +%build + +%install +mkdir -p %{buildroot}/etc/udev/rules.d/. +install -m 644 51-android.rules %{buildroot}/etc/udev/rules.d/. + +%clean +rm -rf %{buildroot} + +%files +%config(noreplace) /etc/udev/rules.d/51-android.rules +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc README.md + +%changelog + +* Sun Dec 15 2019 Håkon Løvdal - 0.0.1-1 +- Created. +