File djvusmooth.spec of Package djvusmooth

# spec file for package djvusmooth
# Copyright (c) 2017 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

Name:           djvusmooth
Version:        0.2.19
Release:        0
Summary:        Graphical Text Editor for DjVu
License:        GPL-2.0
Group:          Productivity/Publishing/Other
Source2:        djvusmooth.png
Source3:        %{name}.keyring
BuildRequires:  python-setuptools
Requires:       djvulibre
Requires:       python-djvulibre
Requires:       python-wxWidgets
Requires:       python-xdg
Requires(post): desktop-file-utils
Requires(post): hicolor-icon-theme
Requires(postun): desktop-file-utils
Requires(postun): hicolor-icon-theme
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

DjVuSmooth is a graphical text editor for DjVu documents.


%setup -q


# Replace a desktop file. Provided one isn't good enough.
cat > extra/%{name}.desktop << EOF
[Desktop Entry]
GenericName=Graphical Text Editor for DjVu
GenericName[pl]=Graficzny edytor plików DjVu
GenericName[ru]=Текстовый редактор DjVu-книг
GenericName[de]=Grafischer Editor für DjVu-Dateien
Comment=Graphical Text Editor for DjVu
Comment[pl]=Graficzny edytor plików DjVu
Comment[ru]=Граффический текстовый редактор для DjVu-книг
Comment[de]=Grafischer Editor für DjVu-Dateien
Exec=djvusmooth %f

python install \
    --root=%{buildroot} \
install -Dm 0644 %{SOURCE2} \

%find_lang %{name}



%doc doc/{changelog,COPYING,credits.txt}

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by