SHA256
1
0
forked from pool/usbguard

Accepting request 704757 from home:cgiboudeaux:branches:hardware

- Run spec-cleaner
- Add the missing systemd build requirement.

OBS-URL: https://build.opensuse.org/request/show/704757
OBS-URL: https://build.opensuse.org/package/show/hardware/usbguard?expand=0&rev=14
This commit is contained in:
Robert Frohl 2019-05-23 12:38:02 +00:00 committed by Git OBS Bridge
parent 4dcea42899
commit 86671b15a1
2 changed files with 19 additions and 19 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed May 22 13:38:28 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>
- Run spec-cleaner
- Add the missing systemd build requirement.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 15 16:28:33 UTC 2019 - Robert Frohl <rfrohl@suse.com> Tue Jan 15 16:28:33 UTC 2019 - Robert Frohl <rfrohl@suse.com>

View File

@ -17,9 +17,7 @@
%global _hardened_build 1 %global _hardened_build 1
%define lname libusbguard0 %define lname libusbguard0
Name: usbguard Name: usbguard
Version: 0.7.4 Version: 0.7.4
Release: 0 Release: 0
@ -35,8 +33,6 @@ Source2: usbguard.keyring
Source3: usbguard-daemon.conf Source3: usbguard-daemon.conf
Source4: usbguard-rpmlintrc Source4: usbguard-rpmlintrc
Patch0: usbguard-applet-qt_desktop_menu_categories.patch Patch0: usbguard-applet-qt_desktop_menu_categories.patch
%{?systemd_requires}
BuildRequires: asciidoc BuildRequires: asciidoc
BuildRequires: aspell BuildRequires: aspell
BuildRequires: audit-devel BuildRequires: audit-devel
@ -58,20 +54,23 @@ BuildRequires: libudev-devel
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
BuildRequires: libxslt-devel BuildRequires: libxslt-devel
BuildRequires: pegtl-devel BuildRequires: pegtl-devel
BuildRequires: pkgconfig
BuildRequires: polkit-devel BuildRequires: polkit-devel
#BuildRequires: spdlog-static #BuildRequires: spdlog-static
BuildRequires: protobuf-devel BuildRequires: protobuf-devel
BuildRequires: pkgconfig(systemd)
%{?systemd_requires}
%description %description
The USBGuard software framework helps to protect your computer against rogue USB 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 %package -n %{lname}
Summary: Library for implementing USB device usage policy Summary: Library for implementing USB device usage policy
Group: System/Libraries Group: System/Libraries
%description -n %lname %description -n %{lname}
The USBGuard software framework helps to protect your computer against rogue USB 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.
@ -79,7 +78,7 @@ USB device attributes.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %lname = %{version} Requires: %{lname} = %{version}
Requires: %{name} = %{version} Requires: %{name} = %{version}
Requires: libstdc++-devel Requires: libstdc++-devel
Requires: pkgconfig Requires: pkgconfig
@ -108,7 +107,7 @@ The %{name}-applet-qt package contains an optional Qt 5.x desktop applet
for interacting with the USBGuard daemon component. for interacting with the USBGuard daemon component.
%prep %prep
%setup -q -n usbguard-%version %setup -q -n usbguard-%{version}
%patch0 -p1 %patch0 -p1
%build %build
@ -161,7 +160,6 @@ find %{buildroot} \( -name '*.la' -o -name '*.a' \) -delete
%postun -n libusbguard0 -p /sbin/ldconfig %postun -n libusbguard0 -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-)
%doc README.adoc CHANGELOG.md %doc README.adoc CHANGELOG.md
%license LICENSE %license LICENSE
%{_sbindir}/usbguard-daemon %{_sbindir}/usbguard-daemon
@ -172,35 +170,31 @@ find %{buildroot} \( -name '*.la' -o -name '*.a' \) -delete
%config(noreplace) %attr(0600,-,-) %{_sysconfdir}/usbguard/usbguard-daemon.conf %config(noreplace) %attr(0600,-,-) %{_sysconfdir}/usbguard/usbguard-daemon.conf
%config(noreplace) %attr(0600,-,-) %{_sysconfdir}/usbguard/rules.conf %config(noreplace) %attr(0600,-,-) %{_sysconfdir}/usbguard/rules.conf
%{_unitdir}/usbguard.service %{_unitdir}/usbguard.service
%{_datadir}/man/man8/usbguard-daemon.8.gz %{_mandir}/man8/usbguard-daemon.8%{?ext_man}
%{_datadir}/man/man5/usbguard-daemon.conf.5.gz %{_mandir}/man5/usbguard-daemon.conf.5%{?ext_man}
%{_datadir}/man/man5/usbguard-rules.conf.5.gz %{_mandir}/man5/usbguard-rules.conf.5%{?ext_man}
%{_datadir}/bash-completion/completions/usbguard %{_datadir}/bash-completion/completions/usbguard
%dir %{_datadir}/zsh %dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions %dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_usbguard %{_datadir}/zsh/site-functions/_usbguard
%files -n %lname %files -n %{lname}
%defattr(-,root,root,-)
%license LICENSE %license LICENSE
%{_libdir}/*.so.* %{_libdir}/*.so.*
%files devel %files devel
%defattr(-,root,root,-)
%{_includedir}/* %{_includedir}/*
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%files tools %files tools
%defattr(-,root,root,-)
%{_bindir}/usbguard %{_bindir}/usbguard
%{_bindir}/usbguard-rule-parser %{_bindir}/usbguard-rule-parser
%{_datadir}/man/man1/usbguard.1.gz %{_mandir}/man1/usbguard.1%{?ext_man}
%files applet-qt %files applet-qt
%defattr(-,root,root,-)
%{_bindir}/usbguard-applet-qt %{_bindir}/usbguard-applet-qt
%{_mandir}/man1/usbguard-applet-qt.1.gz %{_mandir}/man1/usbguard-applet-qt.1%{?ext_man}
%{_datadir}/applications/usbguard-applet-qt.desktop %{_datadir}/applications/usbguard-applet-qt.desktop
%dir %{_datadir}/icons/hicolor %dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable %dir %{_datadir}/icons/hicolor/scalable