forked from pool/sispmctl
c8ce878b3a
- Update to 4.11 * Create /etc/sispmctl/ in passwordsetup.sh * Avoid incorrect web output if not in quiet mode * Include artwork in distribution file OBS-URL: https://build.opensuse.org/request/show/1097843 OBS-URL: https://build.opensuse.org/package/show/hardware/sispmctl?expand=0&rev=22
86 lines
2.3 KiB
RPMSpec
86 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package sispmctl
|
|
#
|
|
# Copyright (c) 2023 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.11
|
|
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
|