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:
parent
581b346f8c
commit
0fcb920e0a
@ -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"
|
|
@ -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>
|
Mon Jan 27 14:39:53 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package sispmctl
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Name: sispmctl
|
||||||
Version: 4.2
|
Version: 4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: SIS-PM Control for Linux
|
Summary: SIS-PM Control for Linux
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
Group: System/Management
|
|
||||||
URL: https://sourceforge.net/projects/sispmctl/
|
URL: https://sourceforge.net/projects/sispmctl/
|
||||||
Source0: sispmctl-%{version}.tar.gz
|
Source0: sispmctl-%{version}.tar.gz
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: libusb-compat-devel
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: udev
|
BuildRequires: pkgconfig(libusb)
|
||||||
|
BuildRequires: pkgconfig(udev)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This projects adds support control for the GEMBIRD Silver Shield PM device to linux.
|
This projects adds support control for the GEMBIRD Silver Shield PM device to linux.
|
||||||
|
|
||||||
%package -n libsispmctl0
|
%package -n %{libname}
|
||||||
Summary: Development libraries for sispmctl
|
Summary: Libraries for sispmctl
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
|
|
||||||
%description -n libsispmctl0
|
%description -n %{libname}
|
||||||
Libs for for the GEMBIRD Silver Shield PM device.
|
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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
--enable-webless
|
--disable-static \
|
||||||
|
--enable-webless
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
# Remove static libs
|
# Remove static libs
|
||||||
rm -rf %{buildroot}%{_libdir}/*.{la,a}
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_udevrulesdir}
|
install -Dm 0644 examples/60-sispmctl.rules %{buildroot}%{_udevrulesdir}/60-sispmctl.rules
|
||||||
install -c -m 0644 examples/60-sispmctl.rules %{buildroot}%{_udevrulesdir}/60-sispmctl.rules
|
|
||||||
|
|
||||||
%post -n libsispmctl0 -p /sbin/ldconfig
|
%post -n %{libname} -p /sbin/ldconfig
|
||||||
%postun -n libsispmctl0 -p /sbin/ldconfig
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc %{_mandir}/man1/sispmctl.1.gz
|
%{_mandir}/man1/sispmctl.1%{?ext_man}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%verify(not mode caps) %{_bindir}/sispmctl
|
%verify(not mode caps) %{_bindir}/sispmctl
|
||||||
%dir %{_udevrulesdir}
|
%dir %{_udevrulesdir}
|
||||||
%{_udevrulesdir}/60-sispmctl.rules
|
%{_udevrulesdir}/60-sispmctl.rules
|
||||||
|
|
||||||
%files -n libsispmctl0
|
%files -n %{libname}
|
||||||
%verify(not mode caps) %{_libdir}/libsispmctl.so
|
|
||||||
%verify(not mode caps) %{_libdir}/libsispmctl.so.*
|
%verify(not mode caps) %{_libdir}/libsispmctl.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%verify(not mode caps) %{_libdir}/libsispmctl.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user