File freshmemory.spec of Package freshmemory

#
# Copyright (c) 2012 Matthias Mailänder
#
# 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:           freshmemory
Version:        1.4.2
Release:        1
License:        GPL-3.0
Summary:        Spaced Repetition Learning Application
Url:            http://sourceforge.net/projects/freshmemory/files/freshmemory/
Group:          Amusements/Teaching/Language 
Source0:        %{name}-lite-%{version}.tar.bz2
Source1:        freshmemory.1
Patch0:         freshmemory.pro.patch
BuildRequires:  fdupes
BuildRequires:  update-desktop-files
BuildRequires:  gcc
BuildRequires:  glibc
BuildRequires:  libqt5-qtbase-devel
BuildRequires:  libqt5-qttools-devel 
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The most important subject is learning foreign words, but Fresh Memory can be also used to learn anything else.
Other examples are country's capitals and flags, chemical elements, mathematical formulas, technical terms.
The learning data is stored as flash cards and dictionaries: sets of cards.
The flash cards may have several fields, and the user controls what combination of fields to learn.
The flash cards can have formatted text and images.
The look of flash cards and studying parameters are can be flexibly adjusted.
  
%prep
%setup -q -n %{name}-lite-%{version}
%patch0 -p1

%build
%qmake5 \
        PREFIX=%{_prefix}
make 

%install
make install INSTALL_ROOT=%{buildroot}
%suse_update_desktop_file -c freshmemory "Fresh Memory" "Spaced Repetition Learning Application" freshmemory freshmemory Education Languages
%{__install} -D -m 0644 images/freshmemory.png %{buildroot}/%{_datadir}/pixmaps/freshmemory.png
%{__install} -D -m 0644 images/freshmemory.svg %{buildroot}/%{_datadir}/pixmaps/freshmemory.svg
%{__install} -D -m 0644 config/freshmemory/freshmemory.ini %{buildroot}/%{_sysconfdir}/xdg/freshmemory/freshmemory.ini
%{__install} -D -m 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/freshmemory.1
%fdupes -s %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf %{buildroot}
rm -rf filelists

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/freshmemory*
%dir %{_datadir}/freshmemory/
%{_datadir}/freshmemory/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%dir %{_sysconfdir}/xdg/freshmemory
%config(noreplace) %{_sysconfdir}/xdg/freshmemory/freshmemory.ini
%{_mandir}/man1/freshmemory.1*

%changelog 
openSUSE Build Service is sponsored by