File kile.spec of Package kile

# spec file for package kile
# Copyright (c) 2019 SUSE LLC.
# Copyright (c) 2009 Johannes Engel <>
# 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

%bcond_without lang
Name:           kile
Version:        2.9.93
Release:        0
Summary:        A LaTeX Source Editor and TeX Shell
License:        GPL-2.0-or-later
Group:          Productivity/Publishing/TeX/Frontends
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
BuildRequires:  okular-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5Crash)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(KF5DocTools)
BuildRequires:  cmake(KF5GuiAddons)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5IconThemes)
BuildRequires:  cmake(KF5Init)
BuildRequires:  cmake(KF5KHtml)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5Parts)
BuildRequires:  cmake(KF5TextEditor)
BuildRequires:  cmake(KF5WindowSystem)
BuildRequires:  cmake(KF5XmlGui)
BuildRequires:  cmake(Qt5Core) >= 5.7
BuildRequires:  cmake(Qt5DBus)
BuildRequires:  cmake(Qt5Script)
BuildRequires:  cmake(Qt5Test)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  pkgconfig(poppler-qt5)
Requires:       konsole-part
Requires:       okular
Requires:       texlive-context
Requires:       texlive-latex
Requires:       texlive-xetex
Requires(post): shared-mime-info
Requires(postun): shared-mime-info
Recommends:     ImageMagick
Recommends:     dblatex
Recommends:     ghostscript-library
Recommends:     kbibtex
Recommends:     latex2html
Recommends:     lilypond
Recommends:     psutils
Recommends:     texlive-dvipdfmx
Recommends:     texlive-dvips
Recommends:     texlive-metapost
Recommends:     texlive-pdfsync
Recommends:     texlive-tex4ht
Recommends:     zip
Suggests:       aspell
Suggests:       texlive-doc
Suggests:       texlive-latex-doc
# was in Factory for a short while, in version 2.9.92
Provides:       kile5 = %{version}
Obsoletes:      kile5 < %{version}

Kile is a user-friendly TeX/LaTeX editor by KDE.

The main features are:

 * Compile, convert and view your document with one click.
 * Auto-completion of (La)TeX commands.
 * Templates and wizards make starting a new document very little work.
 * Easy insertion of many standard tags and symbols and the option to define
   (an arbitrary number of) user defined tags.
 * Inverse and forward search: click in the DVI viewer and jump to the
   corresponding LaTeX line in the editor, or jump from the editor to the
   corresponding page in the viewer.
 * Finding chapter or sections is very easy, Kile constructs a list of all the
   chapter etc. in your document. You can use the list to jump to the
   corresponding section.
 * Collect documents that belong together into a project.
 * Easy insertion of citations and references when using projects.
 * Flexible and smart build system to compile your LaTeX documents.
 * QuickPreview, preview a selected part of your document.
 * Easy access to various help sources.
 * Advanced editing commands.


%setup -q

%cmake_kf5 -d build

%kf5_makeinstall -C build

%if %{with lang}
  %find_lang %{name} --all-name

%suse_update_desktop_file -r org.kde.kile Qt KDE Office WordProcessor
%fdupes %{buildroot}

%license COPYING*
%dir %{_kf5_iconsdir}/hicolor/150x150
%dir %{_kf5_iconsdir}/hicolor/150x150/apps
%dir %{_kf5_iconsdir}/hicolor/310x310
%dir %{_kf5_iconsdir}/hicolor/310x310/apps
%dir %{_kf5_iconsdir}/hicolor/44x44
%dir %{_kf5_iconsdir}/hicolor/44x44/apps

%if %{with lang}
%files lang -f %{name}.lang

openSUSE Build Service is sponsored by