Группа :: Система/Настройка/Оборудование
Пакет: udev-android
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# vim: set ft=spec: -*- rpm-spec -*-
%define pkgdocdir %_docdir/libtool-%version
%define targetlicense %pkgdocdir/license.txt
%define sourcelicense %_licensedir/GPL-3
%define adbusersgroup adbusers
Name: udev-android
Version: 0.0.20170103
Release: alt1
Summary: Udev rules for adb and fastboot
License: %gpl3only
Group: System/Configuration/Hardware
Url: https://github.com/M0Rf30/android-udev-rules
BuildArch: noarch
Source: %name-%version.tar
Requires: %_licensedir/GPL-3
BuildPreReq: rpm-build-licenses
BuildRequires: /usr/bin/relative
%description
This package provides an UDEV rules enabling adb and fastboot to work
without root access to the host machine.
%prep
%setup
%install
mkdir -p %buildroot%_udevrulesdir
install -p -m644 51-android.rules %buildroot%_udevrulesdir/
mkdir -p %buildroot/%pkgdocdir
ln -snf "`relative "%targetlicense" "%sourcelicense"`" %buildroot%targetlicense
%pre
/usr/sbin/groupadd -r -f %adbusersgroup ||:
%files
%_udevrulesdir/*
%pkgdocdir
%changelog
…
Полный changelog можно просмотреть здесь
%define pkgdocdir %_docdir/libtool-%version
%define targetlicense %pkgdocdir/license.txt
%define sourcelicense %_licensedir/GPL-3
%define adbusersgroup adbusers
Name: udev-android
Version: 0.0.20170103
Release: alt1
Summary: Udev rules for adb and fastboot
License: %gpl3only
Group: System/Configuration/Hardware
Url: https://github.com/M0Rf30/android-udev-rules
BuildArch: noarch
Source: %name-%version.tar
Requires: %_licensedir/GPL-3
BuildPreReq: rpm-build-licenses
BuildRequires: /usr/bin/relative
%description
This package provides an UDEV rules enabling adb and fastboot to work
without root access to the host machine.
%prep
%setup
%install
mkdir -p %buildroot%_udevrulesdir
install -p -m644 51-android.rules %buildroot%_udevrulesdir/
mkdir -p %buildroot/%pkgdocdir
ln -snf "`relative "%targetlicense" "%sourcelicense"`" %buildroot%targetlicense
%pre
/usr/sbin/groupadd -r -f %adbusersgroup ||:
%files
%_udevrulesdir/*
%pkgdocdir
%changelog
…
Полный changelog можно просмотреть здесь