SHA256
1
0
forked from pool/sispmctl

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
This commit is contained in:
Tomáš Chvátal 2020-02-06 12:49:38 +00:00 committed by Git OBS Bridge
commit 581b346f8c
6 changed files with 121 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

7
60-sispmctl.rules Normal file
View File

@ -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"

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

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

12
sispmctl.changes Normal file
View File

@ -0,0 +1,12 @@
-------------------------------------------------------------------
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")

75
sispmctl.spec Normal file
View File

@ -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