forked from pool/usbguard
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
This commit is contained in:
parent
22746d2832
commit
59d9712112
@ -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
|
Sun Jan 31 09:40:56 UTC 2016 - meissner@suse.com
|
||||||
|
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
|
|
||||||
|
%define lname libusbguard0
|
||||||
|
|
||||||
Name: usbguard
|
Name: usbguard
|
||||||
Version: 0.4
|
Version: 0.4
|
||||||
Release: 1
|
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
|
devices by implementing basic whitelisting/blacklisting capabilities based on
|
||||||
USB device attributes.
|
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
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}
|
||||||
|
Requires: %lname = %{version}
|
||||||
Requires: libstdc++-devel
|
Requires: libstdc++-devel
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
|
|
||||||
@ -94,7 +107,7 @@ mkdir -p %{buildroot}%{_unitdir}
|
|||||||
install -p -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/usbguard.service
|
install -p -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/usbguard.service
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
find %{buildroot} -name '*.la' -delete
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun usbguard.service
|
%service_del_preun usbguard.service
|
||||||
@ -115,7 +128,6 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_libdir}/*.so.*
|
|
||||||
%{_sbindir}/usbguard-daemon
|
%{_sbindir}/usbguard-daemon
|
||||||
%dir %{_sysconfdir}/usbguard
|
%dir %{_sysconfdir}/usbguard
|
||||||
%config(noreplace) %{_sysconfdir}/usbguard/usbguard-daemon.conf
|
%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-daemon.conf.5.gz
|
||||||
%{_datadir}/man/man5/usbguard-rules.conf.5.gz
|
%{_datadir}/man/man5/usbguard-rules.conf.5.gz
|
||||||
|
|
||||||
|
%files -n %lname
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%license LICENSE
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
|
Loading…
Reference in New Issue
Block a user