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:
Malcolm Lewis 2023-01-23 13:18:53 +00:00 committed by Git OBS Bridge
commit 48f6fa84db
8 changed files with 321 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

44
PKGBUILD Normal file
View File

@ -0,0 +1,44 @@
pkgname=vdu_controls
pkgver=1.9.0
pkgrel=1
pkgdesc="Visual Display Unit virtual control panel - a GUI front end to ddcutil"
arch=('any')
url="https://github.com/digitaltrails/vdu_controls"
license=('GPL3')
depends=('ddcutil' 'noto-fonts' 'python' 'python-pyqt5' 'qt5-svg')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
"$pkgname.desktop")
sha256sums=('8137bf233d7079fb93e1b5260c5eb51e27008d4765faf4b6a89549b52cd07ea6'
'726a55c150f3cc77d483e5a484ab252b2ddf3b3919d05042975e82e659f979fc')
build() {
cd "$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
mv "$pkgdir/usr/bin/$pkgname.py" "$pkgdir/usr/bin/$pkgname"
install -Dm644 translations/*.ts -t "$pkgdir/usr/share/$pkgname/translations/"
install -m644 translations/about_*.txt -t "$pkgdir/usr/share/$pkgname/translations/"
install -Dm644 "docs/_build/man/$pkgname.1" -t "$pkgdir/usr/share/man/man1/"
install -Dm644 "$pkgname.png" -t "$pkgdir/usr/share/icons/hicolor/256x256/apps/"
install -Dm644 "$srcdir/$pkgname.desktop" -t "$pkgdir/usr/share/applications/"
cat > /usr/share/applications/%{name}.desktop <<'EOF'
[Desktop Entry]
Type=Application
Terminal=false
Exec=%{_bindir}/%{name}
Name=VDU Controls
GenericName=VDU controls
Comment=Virtual Control Panel for externally connected VDU's
Icon=preferences-desktop-display-color
Categories=Settings
EOF
}

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cc1e76a8a6e6efb44f1740e24a776c637928766fc175304e115c7070ab819f14
size 747685

150
vdu_controls.changes Normal file
View File

@ -0,0 +1,150 @@
-------------------------------------------------------------------
Mon Jan 23 02:39:53 UTC 2023 - malcolmlewis@opensuse.org
- Clean up build in preparation for development repository and
Factory submission.
-------------------------------------------------------------------
Wed Jan 11 00:00:00 UTC 2023 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.9.0:
* Bug fixes and speedy performance improvements.
-------------------------------------------------------------------
Wed Dec 14 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.8.3:
* Fix crash when network is down and weather site is not
contactable.
-------------------------------------------------------------------
Fri Nov 11 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.8.1:
* Fix daily scheduling of presets.
-------------------------------------------------------------------
Sat Oct 29 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.8.0:
* New feature, allow presets to be scheduled by solar elevation.
-------------------------------------------------------------------
Mon Sep 26 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.7.2:
* Better handle monitor being powered off.
* Allow presets to be reordered on the menu.
-------------------------------------------------------------------
Sun Sep 25 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.7.1:
* Fix for signal handling from Mark Lowne.
-------------------------------------------------------------------
Thu Aug 4 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.7.0:
* Display current preset in window and tray title, preset icons.
-------------------------------------------------------------------
Sun Jul 31 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.6.11:
* Cleaning up the help and Linux man page.
-------------------------------------------------------------------
Tue Jul 12 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.6.10:
* Cope better with transient slider values, cope better with
session startup delays to detection.
-------------------------------------------------------------------
Mon Jun 13 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Update to version 1.6.8:
- Fix preset save/restore bug introduced in 1.6.7.
-------------------------------------------------------------------
Sun Jun 12 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.6.7:
* Fix issues with gnome 42.2 tray: when in gnome do as the
gnomens do.
-------------------------------------------------------------------
Sat Jun 11 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.6.5:
* Widen handling of pare exceptions for VDU capabilities - catch
more exceptions.
-------------------------------------------------------------------
Wed Apr 13 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.6.4:
* Wayland wait for system tray at login.
* Enable HiDPI icons.
-------------------------------------------------------------------
Sun Apr 10 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.6.3:
* Added a hamburger menu to provide alternate access to the
context menu.
-------------------------------------------------------------------
Sat Apr 9 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.6.2:
* Add a feature Values: min..max override.
-------------------------------------------------------------------
Mon Mar 14 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.6.1:
* Wayland fixes.
-------------------------------------------------------------------
Mon Mar 7 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.6.0:
* Let other processes trigger preset changes and settings
refreshes via UNIX/Linux signals.
-------------------------------------------------------------------
Sun Feb 27 00:00:00 UTC 2022 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.5.9:
* Cleanly handle monitors that do not respond to ddctuil
commands.
-------------------------------------------------------------------
Sat Dec 4 00:00:00 UTC 2021 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.5.7:
* Check if a system tray is available before applying
system_tray_enabled.
-------------------------------------------------------------------
Sat Nov 13 00:00:00 UTC 2021 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.5.5:
* Fix tray for some desktops.
* Combobox value enhanccments/fixes.
* Login-restart support/
-------------------------------------------------------------------
Mon Nov 8 00:00:00 UTC 2021 - Michael Hamilton <michael@actrix.gen.nz>
- Updated to version 1.5.3:
* Detect and handle light/dark theme changes.
-------------------------------------------------------------------
Mon Oct 4 00:00:00 UTC 2021 - Michael Hamilton <michael@actrix.gen.nz>
- Version 1.5.2:
* Packaged for rpm vdu_controls.

10
vdu_controls.desktop Normal file
View File

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Terminal=false
Exec=vdu_controls
Name=VDU Controls
GenericName=DDC control panel for monitors
Comment=Virtual Control Panel for externally connected VDU's
Icon=vdu_controls
Categories=Settings;HardwareSettings;

3
vdu_controls.png Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f7e71b189914af6f99c2c003d64b9492ac811a4c7377b7b61c156c56b87b28e3
size 157232

87
vdu_controls.spec Normal file
View 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