From 59d971211232b8871382313ef7507d65f16eb46be458cfeae13d3e1cda80218e Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 1 Mar 2016 12:15:58 +0000 Subject: [PATCH] Accepting request 363506 from home:msmeissn:branches:hardware - split off a library package libusbguard0 OBS-URL: https://build.opensuse.org/request/show/363506 OBS-URL: https://build.opensuse.org/package/show/hardware/usbguard?expand=0&rev=3 --- usbguard.changes | 5 +++++ usbguard.spec | 23 ++++++++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/usbguard.changes b/usbguard.changes index 462da13..8230770 100644 --- a/usbguard.changes +++ b/usbguard.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 1 12:08:51 UTC 2016 - meissner@suse.com + +- split off a library package libusbguard0 + ------------------------------------------------------------------- Sun Jan 31 09:40:56 UTC 2016 - meissner@suse.com diff --git a/usbguard.spec b/usbguard.spec index b20945b..afecb47 100644 --- a/usbguard.spec +++ b/usbguard.spec @@ -18,6 +18,8 @@ %global _hardened_build 1 +%define lname libusbguard0 + Name: usbguard Version: 0.4 Release: 1 @@ -45,10 +47,21 @@ The USBGuard software framework helps to protect your computer against rogue USB devices by implementing basic whitelisting/blacklisting capabilities based on USB device attributes. +%package -n %lname +Summary: Library for implementing USB device usage policy +License: GPL-2.0+ +Group: System Environment/Daemons + +%description -n %lname +The USBGuard software framework helps to protect your computer against rogue USB +devices by implementing basic whitelisting/blacklisting capabilities based on +USB device attributes. + %package devel Summary: Development files for %{name} Group: Development/Libraries -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} +Requires: %lname = %{version} Requires: libstdc++-devel Requires: pkgconfig @@ -94,7 +107,7 @@ mkdir -p %{buildroot}%{_unitdir} install -p -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/usbguard.service # Cleanup -find %{buildroot} -name '*.la' -exec rm -f {} ';' +find %{buildroot} -name '*.la' -delete %preun %service_del_preun usbguard.service @@ -115,7 +128,6 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %defattr(-,root,root,-) %doc README.md %license LICENSE -%{_libdir}/*.so.* %{_sbindir}/usbguard-daemon %dir %{_sysconfdir}/usbguard %config(noreplace) %{_sysconfdir}/usbguard/usbguard-daemon.conf @@ -124,6 +136,11 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' %{_datadir}/man/man5/usbguard-daemon.conf.5.gz %{_datadir}/man/man5/usbguard-rules.conf.5.gz +%files -n %lname +%defattr(-,root,root,-) +%license LICENSE +%{_libdir}/*.so.* + %files devel %defattr(-,root,root,-) %{_includedir}/*