File kile.spec of Package kile

# spec file for package kile
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

Name:           kile
Version:        2.1.3
Release:        0
Summary:        A LaTeX Source Editor and TeX Shell
License:        GPL-2.0+
Group:          Productivity/Publishing/TeX/Frontends
BuildRequires:  ImageMagick
BuildRequires:  fdupes
BuildRequires:  libkde4-devel
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
Requires:       konsole
Requires:       libktexteditor
Suggests:       texlive-context
Suggests:       texlive-latex
Suggests:       texlive-xetex
Recommends:     %{name}-lang = %{version}
Recommends:     ImageMagick
Suggests:     dblatex
Recommends:     ghostscript-library
Recommends:     kbibtex
Recommends:     konqueror
Suggests:     latex2html
Recommends:     lilypond
Recommends:     okular
Recommends:     psutils
Suggests:     texlive-dvips
Suggests:     texlive-dvipdfmx
Suggests:     texlive-metapost
Suggests:     texlive-tex4ht
Recommends:     zip
Suggests:       aspell
Suggests:       texlive-doc
Suggests:       texlive-latex-doc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires(post): shared-mime-info
Requires(postun): shared-mime-info

Kile is a user-friendly TeX/LaTeX editor for the KDE desktop environment.

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_kde4 -d build

pushd build
# Fix permissions
chmod 755 %{buildroot}%{_kde4_appsdir}/kconf_update/kile*.pl
chmod 755 %{buildroot}%{_kde4_appsdir}/kile/test/
# Fix incorrect icon sizes
# Don't do this for mathmode.png and smallfrac.png as these turn into black icons bnc#676046
convert -scale 16x16! %{buildroot}%{_kde4_appsdir}/kile/icons/hicolor/16x16/actions/beamerblock.png %{buildroot}%{_kde4_appsdir}/kile/icons/hicolor/16x16/actions/beamerblock.png
convert -scale 16x16! %{buildroot}%{_kde4_appsdir}/kile/icons/hicolor/16x16/actions/label.png %{buildroot}%{_kde4_appsdir}/kile/icons/hicolor/16x16/actions/label.png
convert -scale 22x22! %{buildroot}%{_kde4_appsdir}/kile/icons/hicolor/22x22/actions/label.png %{buildroot}%{_kde4_appsdir}/kile/icons/hicolor/22x22/actions/label.png
rm -rf %{buildroot}%{_datadir}/doc/kile/

%if 0%{?suse_version}
%suse_update_desktop_file -r %{name} Qt KDE Office WordProcessor

# Remove unneeded locale
rm -rf %{buildroot}%{_datadir}/locale/x-test

%find_lang %{name}

%fdupes -s %{buildroot}


/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :

/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :

%doc AUTHORS COPYING* ChangeLog README README.cwl kile-remote-control.txt kile.lsm
%doc %{_kde4_htmldir}/en/kile/

%files lang -f %{name}.lang
%exclude %{_kde4_htmldir}/en/kile/

openSUSE Build Service is sponsored by