Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Fix RPM Mono dependencies and remove systemd presets #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

25 changes: 6 additions & 19 deletions Redhat/opentabletdriver.spec
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# We don't have debug symbols, because .NET
%define debug_package %{nil}
# We aren't using Mono but RPM expected Mono
%global __requires_exclude_from ^/usr/share/OpenTabletDriver/.*$

Name: opentabletdriver
Version: 0.0.0
Release: 1
Summary: A cross-platform open source tablet driver
BuildArch: x86_64

%if 0%{?suse_version}
License: LGPL-3.0-only
Group: Hardware/Other
%else
License: LGPLv3
%endif
BuildArch: x86_64

URL: https://github.com/OpenTabletDriver/OpenTabletDriver

Expand All @@ -36,11 +35,8 @@ rm %{buildroot}/LICENSE

cp %{pkg_dir}/LICENSE %{_builddir}

%pre

%post
udevadm control --reload-rules
%systemd_user_post opentabletdriver.service

if lsmod | grep hid_uclogic > /dev/null ; then
rmmod hid_uclogic || true
Expand All @@ -50,12 +46,6 @@ if lsmod | grep wacom > /dev/null ; then
rmmod wacom || true
fi

%preun
%systemd_user_preun opentabletdriver.service

%postun
%systemd_user_postun opentabletdriver.service

%files
%defattr(-,root,root)
%license LICENSE
Expand All @@ -69,6 +59,3 @@ fi
/usr/bin/opentabletdriver
/usr/bin/otd
/usr/lib/systemd/user/opentabletdriver.service
/usr/lib/systemd/user-preset/50-opentabletdriver.preset

%changelog