File flashqard.spec of Package FlashQard

#
# spec file for package flashqard
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2009 Shahab Shirazi shahab@flashqard-project.org
#
# 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/
#


Name:           flashqard
Version:        0.15.0
Release:        0
Summary:        FlashQard is an educational software to improve your learning process
License:        GPL-2.0+
Group:          Amusements/Teaching/Language
URL:            https://sourceforge.net/projects/flashqard/
Source:         %{name}-%{version}.tar.bz2
Patch1:         desktop.diff
BuildRequires:  cmake
BuildRequires:  libQtWebKit-devel
BuildRequires:  libqt4-devel
BuildRequires:  update-desktop-files
Requires:       libQtWebKit4
Requires:       libqt4

%description
FlashQard is an educational software to improve your learning process.

It is designed to help you learn not only a new language but anything that can be learnt!
This aim is achieved by using the widely used method, called Leitner System, and the idea
of "different card types for different purposes".

Leitner System (proposed by Sebastian Leitner in the 1970s) is one the most efficient
methods for learning. Which allows you to focus on the most difficult flashcards and not
waste your time on what you have already learnt.

%prep
%setup -q
%patch1
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX:PATH=%{buildroot}%{_prefix} -D KGEOGRAPHY_DATA_PATH:PATH=%{_datadir}/flashqard/kgeography_data ../

%build
cd build
make %{?_smp_mflags}


%install
cd build
%make_install
%suse_update_desktop_file flashqard


%files
%defattr(-,root,root)
%{_bindir}/flashqard
%{_datadir}/applications/flashqard.desktop
%{_datadir}/flashqard
%{_datadir}/icons/hicolor/128x128/apps/flashqard.png
%{_datadir}/icons/hicolor/16x16/apps/flashqard.png
%{_datadir}/icons/hicolor/22x22/apps/flashqard.png
%{_datadir}/icons/hicolor/32x32/apps/flashqard.png
%{_datadir}/icons/hicolor/64x64/apps/flashqard.png
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/*
%dir %{_datadir}/icons/hicolor/*/apps

%changelog
openSUSE Build Service is sponsored by