diff --git a/60-sispmctl.rules b/60-sispmctl.rules deleted file mode 100644 index b120f4d..0000000 --- a/60-sispmctl.rules +++ /dev/null @@ -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" diff --git a/sispmctl.changes b/sispmctl.changes index 88225b8..0191d34 100644 --- a/sispmctl.changes +++ b/sispmctl.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Feb 6 13:08:17 UTC 2020 - Tomáš Chvátal + +- Split devel files to devel subpkg +- Remove unused source file +- Format with spec-cleaner + ------------------------------------------------------------------- Mon Jan 27 14:39:53 UTC 2020 - Guillaume GARDET diff --git a/sispmctl.spec b/sispmctl.spec index 6522d06..127ac6c 100644 --- a/sispmctl.spec +++ b/sispmctl.spec @@ -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