forked from pool/sispmctl
581b346f8c
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
76 lines
2.0 KiB
RPMSpec
76 lines
2.0 KiB
RPMSpec
#
|
|
# 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
|