%define orig_name tty0tty %define debug_package %{nil} Summary: Linux null modem emulator Name: tty0tty Version: 1.4 Release: 1.20240312git355b051%{?dist} License: GPLv2 Group: System Environment/Kernel URL: https://github.com/lcgamboa/tty0tty Source0: %{orig_name}.tar.xz Source1: tty0tty.udev Source2: tty0tty.modules Provides: %{name}-kmod-common = %{version} Requires: %{name}-kmod >= %{version} BuildRequires: systemd %description Linux null modem emulator. %prep %setup -q -n %{orig_name} %build # Nothing to do here... %install # systemd module autoinsert rule install -m644 -D %{SOURCE2} %{buildroot}/%{_sysconfdir}/modules-load.d/tty0tty.conf # udev rule install -m644 -D %{SOURCE1} %{buildroot}/%{_udevrulesdir}/99-tty0tty.rules %files %defattr(-, root, root, -) %doc AUTHORS CHANGELOG COPYING INSTALL README.md THANKS TODO %{_sysconfdir}/modules-load.d/tty0tty.conf %{_udevrulesdir}/99-tty0tty.rules %changelog * Tue Mar 12 2024 Rok Mandeljc - 1.4-1.20240312git355b051 - Initial packaging attempt