File katalekto.spec of Package katalekto

#
# spec file for package katalekto
#
# Copyright (c) 2018 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/
#


Name:           katalekto
Version:        1.1
Release:        0
Summary:        Application to improve the reading fluency
License:        GPL-3.0-or-later
Group:          Amusements/Teaching/Language
Url:            http://katamotz.net
Source:         katalekto_1.1.orig.tar.gz
BuildRequires:  vala
BuildRequires:  pkgconfig(gee-0.8)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files
Requires(post/postun): gtk3-tools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description

%prep
%setup -c
sed -e "s/^Icon=.*/Icon=katalekto.png/" katalekto.desktop

%build
cd src
make

%install
mkdir -p %{buildroot}%{_bindir}
cp src/katalekto %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_datadir}/katalekto
cp -a share/* %{buildroot}%{_datadir}/katalekto/
cp -Ra po %{buildroot}%{_datadir}/katalekto/
cp -Ra palabras %{buildroot}%{_datadir}/katalekto/

mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
cp -a share/katamotz.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/katalekto.png

mkdir -p %{buildroot}%{_datadir}/applications/
cp "katalekto.desktop" %{buildroot}%{_datadir}/applications/
%suse_update_desktop_file katalekto Education Languages Literature

%post
%icon_theme_cache_post

%postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
/usr/bin/katalekto
/usr/share/applications/katalekto.desktop
/usr/share/icons/hicolor/48x48/apps/katalekto.png
/usr/share/katalekto

%changelog

openSUSE Build Service is sponsored by