LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File quick-usb-formatter.spec of Package quick-usb-formatter (Project home:hgraeber:KDE)

#
# spec file for package quick-usb-formatter
#
# Copyright (c) 2016 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 http://bugs.opensuse.org/
#

%define oname   quickusbformatter

Name:           quick-usb-formatter
Version:        0.6
Release:        0
License:        GPL-2.0+
Group:          System/GUI/KDE
Summary:        Tiny app for format usb sticks and devices
Url:            http://gitorious.org/chakra/quick-usb-formatter
# Downloaded from http://gitorious.org/chakra/quick-usb-formatter
# and renamed
Source0:        %{name}-%{version}+git-95f78d4.tar.gz
Source1:        %{name}-rpmlintrc
Patch0:         %{name}-quickusbformatter.desktop.patch
Patch1:		%{name}-fix-qt5.patch
BuildRequires:	extra-cmake-modules
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5Gui)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  cmake(Qt5DBus)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5Auth)
BuildRequires:  cmake(KF5Solid)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  cmake(KF5KDELibs4Support)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Quick Usb Formatter it is a tiny app designed for enhance the usability
of the device notifier plasmoid, adding an additional option for quick
format usb sticks. It also works as a standalone tool.

%prep
%setup -q
%patch0
%patch1 -p1

%build
%cmake_kf5 -d build
%make_jobs

%install
cd build
%kf5_makeinstall
cd ..
%find_lang %{oname}

%files -f %{oname}.lang
%defattr(-,root,root,-)
%doc README.txt
%{_bindir}/%{oname}
%{_datadir}/polkit-1/actions/org.kde.auth.quf.policy
%config %{_sysconfdir}/dbus-1/system.d/org.kde.auth.quf.conf
%{_libdir}/libexec/kauth/qufhelper
%{_datadir}/applications/quickusbformatter.desktop
%{_datadir}/dbus-1/system-services/org.kde.auth.quf.service
%dir %{_datadir}/solid
%dir %{_datadir}/solid/actions
%{_datadir}/solid/actions/quickusbformatter_solid.desktop

%changelog