SHA256
1
0
forked from pool/sweeper
sweeper/sweeper.spec

68 lines
1.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package sweeper
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via
#
Name: sweeper
Version: 17.04.0
Release: 0
Summary: KDE Privacy Utility
License: LGPL-2.1+
Group: System/GUI/KDE
Url: http://www.kde.org
Source0: sweeper-%{version}.tar.xz
Patch1: desktop-files.diff
BuildRequires: libkde4-devel
BuildRequires: oxygen5-icon-theme
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
Helps clean unwanted traces the user leaves on the system.
%prep
%setup -q -n sweeper-%{version}
%patch1
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%make_install
for i in 16 22 32 48; do
mkdir -p %{buildroot}%{_kde4_iconsdir}/hicolor/${i}x${i}/apps
cp %{_kde4_iconsdir}/oxygen/base/${i}x${i}/actions/trash-empty.png %{buildroot}%{_kde4_iconsdir}/hicolor/${i}x${i}/apps/sweeper.png
done
%suse_update_desktop_file sweeper Utility Security
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%_kde4_bindir/sweeper
%_kde4_applicationsdir/sweeper.desktop
%{_datadir}/dbus-1/interfaces/*.xml
%_kde4_htmldir/en/sweeper/
%_kde4_appsdir/sweeper/
%{_kde4_iconsdir}/hicolor/*/*/*
%changelog