Hello community,

here is the log from the commit of package rfcat for openSUSE:Factory checked 
in at 2017-11-09 14:05:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rfcat (Old)
 and      /work/SRC/openSUSE:Factory/.rfcat.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rfcat"

Thu Nov  9 14:05:31 2017 rev:2 rq:539894 version:0.0.0.git1502127218.53b26b4

Changes:
--------
--- /work/SRC/openSUSE:Factory/rfcat/rfcat.changes      2017-11-08 
15:09:18.899841353 +0100
+++ /work/SRC/openSUSE:Factory/.rfcat.new/rfcat.changes 2017-11-09 
14:05:32.010203756 +0100
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------
+Mon Oct 30 20:58:21 UTC 2017 - [email protected]
+
+- Install udev-rules

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rfcat.spec ++++++
--- /var/tmp/diff_new_pack.rf2kKL/_old  2017-11-09 14:05:32.666179853 +0100
+++ /var/tmp/diff_new_pack.rf2kKL/_new  2017-11-09 14:05:32.666179853 +0100
@@ -15,19 +15,21 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-
+%define rfcat_group rfcat
 Name:           rfcat
 Version:        0.0.0.git1502127218.53b26b4
 Release:        0
 Summary:        The swiss army knife of subGHz
 License:        BSD-2-Clause
 Group:          Productivity/Hamradio/Other
-Url:            https://github.com/atlas0fd00m/rfcat
+URL:            https://github.com/atlas0fd00m/rfcat
 Source:         %{name}-%{version}.tar.xz
 BuildRequires:  git-core
 BuildRequires:  pkgconfig
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
+BuildRequires:  pkgconfig(udev)
+Requires:       %{name}-udev
 Requires:       python-numpy
 Requires:       python-pyside
 Requires:       python-usb
@@ -37,17 +39,41 @@
 RfCat allows you to control the wireless transceiver from an interactive
 Python shell or your own program running on your computer.
 
+%package udev
+Summary:        Udev rules for rfcat
+Group:          Hardware/Other
+Requires(pre):  shadow
+
+%description udev
+Udev rules for rfcat
+
 %prep
 %setup -q
+# Remove files that may be problematic from a license point of view
+rm -f firmware/cc1111_vcom.c
+rm -f firmware/cc1111_vcomdesc.c
+rm -f firmware/include/cc1111_vcom.h
+# HACK: set udev group to rfcat
+sed -i 's|GROUP="dialout"|GROUP="rfcat"|g' etc/udev/rules.d/20-rfcat.rules
 
 %build
 python setup.py build
 
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+install -Dpm0644 etc/udev/rules.d/20-rfcat.rules 
%{buildroot}%{_udevrulesdir}/20-rfcat.rules
+
+%pre udev
+getent group %{rfcat_group} >/dev/null || groupadd -r %{rfcat_group}
+
+%post udev
+%udev_rules_update
+
+%postun udev
+%udev_rules_update
 
 %files
-%doc LICENSE README.md README.immesniff README.nonroot
+%doc LICENSE README.md README.immesniff
 %{_bindir}/rfcat
 %{_bindir}/rfcat_bootloader
 %{_bindir}/rfcat_msfrelay
@@ -56,4 +82,7 @@
 %{python_sitelib}/vstruct
 %{python_sitelib}/rfcat-1.0-py%{py_ver}.egg-info
 
+%files udev
+%{_udevrulesdir}/20-rfcat.rules
+
 %changelog


Reply via email to