Accepting request 1060316 from home:mchnz
New package submission OBS-URL: https://build.opensuse.org/request/show/1060316 OBS-URL: https://build.opensuse.org/package/show/utilities/vdu_controls?expand=0&rev=1
This commit is contained in:
87
vdu_controls.spec
Normal file
87
vdu_controls.spec
Normal file
@@ -0,0 +1,87 @@
|
||||
#
|
||||
# spec file for package vdu_controls
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2021-2023 Michael Hamilton <michael@actrix.gen.nz>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: vdu_controls
|
||||
Version: 1.9.0
|
||||
Release: 0
|
||||
Summary: Visual Display Unit virtual control panel
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://github.com/digitaltrails/vdu_controls
|
||||
Source0: https://github.com/digitaltrails/vdu_controls/archive/refs/tags/v1.9.0.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}.desktop
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildArch: noarch
|
||||
%if 0%{?suse_version}
|
||||
Requires: ddcutil
|
||||
Requires: noto-sans-math-fonts
|
||||
Requires: noto-sans-symbols2-fonts
|
||||
Requires: python3
|
||||
Requires: python3-qt5
|
||||
%endif
|
||||
%if 0%{?fedora_version}
|
||||
Requires: ddcutil
|
||||
Requires: google-noto-sans-math-fonts
|
||||
Requires: google-noto-sans-symbols2-fonts
|
||||
Requires: python3
|
||||
Requires: python3-qt5
|
||||
%endif
|
||||
|
||||
%description
|
||||
vdu_controls is a virtual control panel for externally connected
|
||||
VDU's (visual display units). Controls are included for backlight
|
||||
brightness, and contrast. vdu_controls uses the ddcutil command
|
||||
line utility to interact with external displays via VESA Display
|
||||
Data Channel (DDC) Virtual Control Panel (VCP) standards.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
#Just a placeholder, no build required.
|
||||
|
||||
%install
|
||||
install -d -m 0755 %{buildroot}%{_bindir} \
|
||||
%{buildroot}%{_mandir}/man1/ \
|
||||
%{buildroot}%{_datadir}/applications \
|
||||
%{buildroot}%{_datadir}/vdu_controls/translations \
|
||||
%{buildroot}%{_datadir}/icons/hicolor/256x256/apps
|
||||
install -m 0755 vdu_controls.py %{buildroot}/%{_bindir}/%{name}
|
||||
install -m 0644 %{S:1} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
install -m 0644 %{name}.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
|
||||
install -m 0644 translations/*.ts %{buildroot}%{_datadir}/vdu_controls/translations/
|
||||
install -m 0644 translations/about_*.txt %{buildroot}%{_datadir}/vdu_controls/translations/
|
||||
install -m 0644 docs/_build/man/vdu_controls.1 %{buildroot}%{_mandir}/man1/
|
||||
|
||||
%files
|
||||
%license LICENSE.md
|
||||
%dir %{_datadir}/vdu_controls
|
||||
%dir %{_datadir}/vdu_controls/translations
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
|
||||
%{_mandir}/man1/%{name}.1%{?ext_man}
|
||||
%{_datadir}/vdu_controls/translations/da_DK.ts
|
||||
%{_datadir}/vdu_controls/translations/fr_FR.ts
|
||||
%{_datadir}/vdu_controls/translations/de_DE.ts
|
||||
%{_datadir}/vdu_controls/translations/about_da_DK.txt
|
||||
%{_datadir}/vdu_controls/translations/about_fr_FR.txt
|
||||
%{_datadir}/vdu_controls/translations/about_de_DE.txt
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user