- Update to 4.12

* mention /etc/sispmctl/password in manpage
  * add favicon.ico
  * on USB retry always use the original control data

OBS-URL: https://build.opensuse.org/package/show/hardware/sispmctl?expand=0&rev=24
This commit is contained in:
Matthias Brugger 2024-10-30 14:22:08 +00:00 committed by Git OBS Bridge
commit 4856c7e0b5
7 changed files with 224 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

3
sispmctl-4.11.tar.gz Normal file
View File

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

3
sispmctl-4.12.tar.gz Normal file
View File

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

View File

@ -0,0 +1,15 @@
Index: b/examples/60-sispmctl.rules
===================================================================
--- a/examples/60-sispmctl.rules
+++ b/examples/60-sispmctl.rules
@@ -1,5 +1,5 @@
-SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd10", GROUP="sispmctl", MODE="660"
-SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd11", GROUP="sispmctl", MODE="660"
-SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd12", GROUP="sispmctl", MODE="660"
-SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd13", GROUP="sispmctl", MODE="660"
-SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd15", GROUP="sispmctl", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd10", GROUP="dialout", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd11", GROUP="dialout", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd12", GROUP="dialout", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd13", GROUP="dialout", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd15", GROUP="dialout", MODE="660"

94
sispmctl.changes Normal file
View File

@ -0,0 +1,94 @@
-------------------------------------------------------------------
Fri Oct 25 15:12:03 UTC 2024 - Matthias Brugger <mbrugger@suse.com>
- Update to 4.12
* mention /etc/sispmctl/password in manpage
* add favicon.ico
* on USB retry always use the original control data
-------------------------------------------------------------------
Sun Jul 9 19:08:31 UTC 2023 - Martin Hauke <mardnh@gmx.de>
- Update to 4.11
* Create /etc/sispmctl/ in passwordsetup.sh
* Avoid incorrect web output if not in quiet mode
* Include artwork in distribution file
-------------------------------------------------------------------
Thu Dec 22 22:13:10 UTC 2022 - Martin Hauke <mardnh@gmx.de>
- Update to 4.10
* Provide script to create password file
* Disable ProtectClock in sispmctl.service
* Minor fixes
-------------------------------------------------------------------
Sat Apr 10 07:59:15 UTC 2021 - Martin Hauke <mardnh@gmx.de>
- Update to 4.9
* Correct display of serial number.
* Fix build error with GCC 4.8.
-------------------------------------------------------------------
Sat Sep 12 19:46:45 UTC 2020 - Martin Hauke <mardnh@gmx.de>
- Update to 4.8
* Sleep two seconds upon wrong webserver password.
* Improve parameter checks.
-------------------------------------------------------------------
Sat Aug 29 20:13:33 UTC 2020 - Martin Hauke <mardnh@gmx.de>
- Update to 4.7
* Support scheduling on EG-PMS2
* Step up security in systemd service definition
- Use sf.net source URL
- Package README.md
-------------------------------------------------------------------
Wed Apr 1 12:56:30 UTC 2020 - Matthias Brugger <mbrugger@suse.com>
- Update to 4.6
* Add option to specify powerstrip by USB Bus:Device
* Improve stability of webserver
-------------------------------------------------------------------
Mon Mar 16 11:05:06 UTC 2020 - Matthias Brugger <mbrugger@suse.com>
- Update to 4.5
* add basic authentication for the webserver
* add bright skin for the webserver
-------------------------------------------------------------------
Mon Mar 9 17:54:21 UTC 2020 - Matthias Brugger <mbrugger@suse.com>
- Update to 4.4
* fix man page by adding missing command line option
* smaller changes to the integrated web server
* only start example systemd web server service after udev rules are assigned
-------------------------------------------------------------------
Fri Feb 14 09:18:35 UTC 2020 - Matthias Brugger <mbrugger@suse.com>
- Add patch to change the udev group to dialout
* add sispmctl-fix-udev-group.patch
-------------------------------------------------------------------
Thu Feb 6 13:08:17 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Split devel files to devel subpkg
- Remove unused source file
- Format with spec-cleaner
-------------------------------------------------------------------
Mon Jan 27 14:39:53 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Update to 4.2
- Fix spec file
-------------------------------------------------------------------
Tue Oct 9 14:22:05 UTC 2018 - Matthias Brugger <mbrugger@suse.com>
- add tool based on
064850d ("src/sispm_ctl.c: show correct replaced outlet number")

85
sispmctl.spec Normal file
View File

@ -0,0 +1,85 @@
#
# spec file for package sispmctl
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
%define libname libsispmctl0
Name: sispmctl
Version: 4.12
Release: 0
Summary: SIS-PM Control for Linux
License: GPL-2.0-only
URL: https://sourceforge.net/projects/sispmctl/
Source0: https://sourceforge.net/projects/sispmctl/files/sispmctl/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch0: sispmctl-fix-udev-group.patch
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libusb)
BuildRequires: pkgconfig(udev)
%description
This projects adds support control for the GEMBIRD Silver Shield PM device to linux.
%package -n %{libname}
Summary: Libraries for sispmctl
%description -n %{libname}
Libraries for the GEMBIRD Silver Shield PM device.
%package devel
Summary: Development files for sispmctl
Requires: %{libname} = %{version}
%description devel
Development files for the GEMBIRD Silver Shield PM device.
%prep
%setup -q
%autopatch -p1
%build
%configure \
--disable-static \
--enable-webless
%make_build
%install
%make_install
# remove not needed files
rm -r %{buildroot}%{_datadir}/doc/sispmctl/
# Remove static libs
find %{buildroot} -type f -name "*.la" -delete -print
install -Dm 0644 examples/60-sispmctl.rules %{buildroot}%{_udevrulesdir}/60-sispmctl.rules
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files
%{_mandir}/man1/sispmctl.1%{?ext_man}
%license COPYING
%doc README.md
%{_bindir}/sispmctl
%dir %{_udevrulesdir}
%{_udevrulesdir}/60-sispmctl.rules
%files -n %{libname}
%{_libdir}/libsispmctl.so.*
%files devel
%{_libdir}/libsispmctl.so
%changelog