File kronometer.spec of Package kronometer4

#
# spec file for package kronometer
#
# 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 http://bugs.opensuse.org/
#


# See also http://en.opensuse.org/openSUSE:Specfile_guidelines

Name:           kronometer
Version:        1.6.0
Release:        0
Summary:        A stopwatch application for KDE
License:        GPL-2.0+
Group:          Productivity/Other
Url:            http://www.aelog.org/kronometer/
Source:         http://download.kde.org/stable/kronometer/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:  libkde4-devel
%kde4_runtime_requires

%description
Kronometer is a stopwatch application built for the KDE Desktop Environment.

Kronometer’s main features are the following:

* Start/pause/resume the stopwatch widget
* Laps recording: you can capture the stopwatch time when you want
* Lap times sorting: you can easily find the shortest lap time or the longest one
* Reset the stopwatch widget and the lap times
* Time format settings: you can choose the stopwatch granularity
* Times saving and resuming: you can save the stopwatch status on a file and resume it later
* Font customization: you can choose the fonts for each of the stopwatch digits
* Color customization: you can choose the color for the stopwatch digits and the stopwatch background
* Lap times export: you can export the lap times on a file using the XML or CSV format

%prep
%setup -q

%build
%if 0%{?suse_version} > 1500
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-copy"
%endif
  %cmake_kde4 -d build
  %make_jobs

%install
  %kde4_makeinstall -C build
  %kde_post_install
  %find_lang %{name} --with-kde

%files -f %{name}.lang
%defattr(-, root, root)
%doc COPYING README TODO
%dir %{_kde4_datadir}/appdata
%{_kde4_applicationsdir}/%{name}.desktop
%{_kde4_appsdir}/%{name}/
%{_kde4_bindir}/%{name}
%{_kde4_configkcfgdir}/%{name}.kcfg
%{_kde4_datadir}/appdata/%{name}.appdata.xml
%{_kde4_iconsdir}/hicolor/scalable/apps/kronometer.*

%changelog
openSUSE Build Service is sponsored by