From 4856c7e0b5d0a9841a8058774753335c4edb47a9008d92f4773f17b1eb71dd11 Mon Sep 17 00:00:00 2001 From: Matthias Brugger Date: Wed, 30 Oct 2024 14:22:08 +0000 Subject: [PATCH] - 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 --- .gitattributes | 23 +++++++++ .gitignore | 1 + sispmctl-4.11.tar.gz | 3 ++ sispmctl-4.12.tar.gz | 3 ++ sispmctl-fix-udev-group.patch | 15 ++++++ sispmctl.changes | 94 +++++++++++++++++++++++++++++++++++ sispmctl.spec | 85 +++++++++++++++++++++++++++++++ 7 files changed, 224 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 sispmctl-4.11.tar.gz create mode 100644 sispmctl-4.12.tar.gz create mode 100644 sispmctl-fix-udev-group.patch create mode 100644 sispmctl.changes create mode 100644 sispmctl.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/sispmctl-4.11.tar.gz b/sispmctl-4.11.tar.gz new file mode 100644 index 0000000..f6648c0 --- /dev/null +++ b/sispmctl-4.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:74b94a3710046b15070c7311f0cacb81554c86b4227719cc2733cb96c7052578 +size 461804 diff --git a/sispmctl-4.12.tar.gz b/sispmctl-4.12.tar.gz new file mode 100644 index 0000000..196d443 --- /dev/null +++ b/sispmctl-4.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e757863a4838da6e1ca72a57adc5aca6fc47ffbddc72a69052d8abd743d57082 +size 462829 diff --git a/sispmctl-fix-udev-group.patch b/sispmctl-fix-udev-group.patch new file mode 100644 index 0000000..30de76e --- /dev/null +++ b/sispmctl-fix-udev-group.patch @@ -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" diff --git a/sispmctl.changes b/sispmctl.changes new file mode 100644 index 0000000..5af60c4 --- /dev/null +++ b/sispmctl.changes @@ -0,0 +1,94 @@ +------------------------------------------------------------------- +Fri Oct 25 15:12:03 UTC 2024 - Matthias Brugger + +- 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 + +- 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 + +- 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 + +- 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 + +- Update to 4.8 + * Sleep two seconds upon wrong webserver password. + * Improve parameter checks. + +------------------------------------------------------------------- +Sat Aug 29 20:13:33 UTC 2020 - Martin Hauke + +- 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 + +- 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 + +- 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 + +- 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 + +- 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 + +- Split devel files to devel subpkg +- Remove unused source file +- Format with spec-cleaner + +------------------------------------------------------------------- +Mon Jan 27 14:39:53 UTC 2020 - Guillaume GARDET + +- Update to 4.2 +- Fix spec file + +------------------------------------------------------------------- +Tue Oct 9 14:22:05 UTC 2018 - Matthias Brugger + +- add tool based on + 064850d ("src/sispm_ctl.c: show correct replaced outlet number") + diff --git a/sispmctl.spec b/sispmctl.spec new file mode 100644 index 0000000..a8ddb54 --- /dev/null +++ b/sispmctl.spec @@ -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