commit 581b346f8cf4faece540dc70b3cfc284d3be2104d53eb9a5e03232b1c7279016 Author: Tomáš Chvátal Date: Thu Feb 6 12:49:38 2020 +0000 Accepting request 767829 from home:mbrugger This packages adds support for the GEMBIRD SIS-PM device to Linux, which allows you to turn on and off the power plugs individually. It does not build the web-server but only the command line tool. OBS-URL: https://build.opensuse.org/request/show/767829 OBS-URL: https://build.opensuse.org/package/show/hardware/sispmctl?expand=0&rev=1 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/60-sispmctl.rules b/60-sispmctl.rules new file mode 100644 index 0000000..b120f4d --- /dev/null +++ b/60-sispmctl.rules @@ -0,0 +1,7 @@ +# do not edit this file, it will be overwritten on update + +SUBSYSTEMS=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd10", GROUP="dialout", MODE="660" +SUBSYSTEMS=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd11", GROUP="dialout", MODE="660" +SUBSYSTEMS=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd12", GROUP="dialout", MODE="660" +SUBSYSTEMS=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd13", GROUP="dialout", MODE="660" +SUBSYSTEMS=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd15", GROUP="dialout", MODE="660" diff --git a/sispmctl-4.2.tar.gz b/sispmctl-4.2.tar.gz new file mode 100644 index 0000000..7255ce9 --- /dev/null +++ b/sispmctl-4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:300adc32ab35a4f9260705f8f57ccd83c3c6601fc493dbe7d259335938819aaf +size 398800 diff --git a/sispmctl.changes b/sispmctl.changes new file mode 100644 index 0000000..88225b8 --- /dev/null +++ b/sispmctl.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +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..6522d06 --- /dev/null +++ b/sispmctl.spec @@ -0,0 +1,75 @@ +# +# spec file for package sispmctl +# +# Copyright (c) 2019 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 _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d + +Name: sispmctl +Version: 4.2 +Release: 0 +Summary: SIS-PM Control for Linux +License: GPL-2.0-only +Group: System/Management +URL: https://sourceforge.net/projects/sispmctl/ +Source0: sispmctl-%{version}.tar.gz +BuildRequires: libtool +BuildRequires: libusb-compat-devel +BuildRequires: udev + +%description +This projects adds support control for the GEMBIRD Silver Shield PM device to linux. + +%package -n libsispmctl0 +Summary: Development libraries for sispmctl +Group: Development/Libraries/C and C++ + +%description -n libsispmctl0 +Libs for for the GEMBIRD Silver Shield PM device. + +%prep +%setup -q + +%build +%configure \ + --enable-webless + +make %{?_smp_mflags} + +%install +%make_install +# Remove static libs +rm -rf %{buildroot}%{_libdir}/*.{la,a} + +mkdir -p %{buildroot}%{_udevrulesdir} +install -c -m 0644 examples/60-sispmctl.rules %{buildroot}%{_udevrulesdir}/60-sispmctl.rules + +%post -n libsispmctl0 -p /sbin/ldconfig +%postun -n libsispmctl0 -p /sbin/ldconfig + +%files +%doc %{_mandir}/man1/sispmctl.1.gz +%license COPYING +%verify(not mode caps) %{_bindir}/sispmctl +%dir %{_udevrulesdir} +%{_udevrulesdir}/60-sispmctl.rules + +%files -n libsispmctl0 +%verify(not mode caps) %{_libdir}/libsispmctl.so +%verify(not mode caps) %{_libdir}/libsispmctl.so.* + + +%changelog