SHA256
1
0
forked from pool/sispmctl

- Split devel files to devel subpkg

- Remove unused source file
- Format with spec-cleaner

OBS-URL: https://build.opensuse.org/package/show/hardware/sispmctl?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal 2020-02-06 13:08:40 +00:00 committed by Git OBS Bridge
parent 581b346f8c
commit 0fcb920e0a
3 changed files with 34 additions and 29 deletions

View File

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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 6 13:08:17 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Split devel files to devel subpkg
- Remove unused source file
- Format with spec-cleaner
-------------------------------------------------------------------
Mon Jan 27 14:39:53 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package sispmctl
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,60 +16,65 @@
#
%define _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d
%define libname libsispmctl0
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
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 libsispmctl0
Summary: Development libraries for sispmctl
Group: Development/Libraries/C and C++
%package -n %{libname}
Summary: Libraries for sispmctl
%description -n libsispmctl0
Libs for for the GEMBIRD Silver Shield PM device.
%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
%build
%configure \
--enable-webless
make %{?_smp_mflags}
--disable-static \
--enable-webless
%make_build
%install
%make_install
# Remove static libs
rm -rf %{buildroot}%{_libdir}/*.{la,a}
find %{buildroot} -type f -name "*.la" -delete -print
mkdir -p %{buildroot}%{_udevrulesdir}
install -c -m 0644 examples/60-sispmctl.rules %{buildroot}%{_udevrulesdir}/60-sispmctl.rules
install -Dm 0644 examples/60-sispmctl.rules %{buildroot}%{_udevrulesdir}/60-sispmctl.rules
%post -n libsispmctl0 -p /sbin/ldconfig
%postun -n libsispmctl0 -p /sbin/ldconfig
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files
%doc %{_mandir}/man1/sispmctl.1.gz
%{_mandir}/man1/sispmctl.1%{?ext_man}
%license COPYING
%verify(not mode caps) %{_bindir}/sispmctl
%dir %{_udevrulesdir}
%{_udevrulesdir}/60-sispmctl.rules
%files -n libsispmctl0
%verify(not mode caps) %{_libdir}/libsispmctl.so
%files -n %{libname}
%verify(not mode caps) %{_libdir}/libsispmctl.so.*
%files devel
%verify(not mode caps) %{_libdir}/libsispmctl.so
%changelog