File kile.spec of Package kile
#
# spec file for package kile (Version 2.1beta2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 Johannes Engel <jcnengel@googlemail.com>
#
# 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/
#
# norootforbuild
%define svnrevision 1010674
%define is_suse_111 %(test "x%suse_version" = "x1110" && echo 1 || echo 0)
Name: kile
BuildRequires: fdupes libkde4-devel
Url: http://kile.sourceforge.net/
License: GPL v2 or later
Group: Productivity/Publishing/TeX/Frontends
Summary: A LaTeX Source Editor and TeX Shell
# use 2.1.0 for release version!
Version: 2.1beta2
Release: 1
Recommends: gnuplot xfig
Requires: okular
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: kile-2.1beta2.tar.bz2
Prefix: /usr
Provides: kde4-kile = 2.0.81
Obsoletes: kde4-kile <= 2.0.81
Requires: %{name}-lang = %{version}
%kde4_runtime_requires
%description
Kile is a user friendly TeX/LaTeX editor for the KDE desktop environment.
Authors:
--------
Pascal Brachet <pascal.brachet@free.fr>
Jeroen Wijnhout <Jeroen.Wijnhout@kdemail.net>
Michel Ludwig <michel.ludwig@kdemail.net>
Thomas Braun <braun@physik.fu-berlin.de>
%lang_package
%prep
%setup -q -n kile-2.1b2
%build
%cmake_kde4 -d build
%make_jobs
%install
pushd build
%kde4_makeinstall
%suse_update_desktop_file kile Office WordProcessor
rm -rf $RPM_BUILD_ROOT/usr/share/doc/kile
rm -rf $RPM_BUILD_ROOT/usr/share/icons/hicolor/64x64/actions/preview.png # contained in kde4-dolphin
%if %is_suse_111
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/hne
%endif
%if %suse_version < 1120
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/es/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/pt/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/fr/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/sv/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/uk/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/it/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/et/common
%endif
popd
%find_lang kile
%fdupes -s $RPM_BUILD_ROOT
%kde_post_install
%files lang -f kile.lang
%files
%defattr(-,root,root)
%doc ChangeLog AUTHORS README kile-remote-control.txt
%{_bindir}/kile
%{_datadir}/applications/kde4/kile.desktop
%{_kde_share_dir}/apps/kconf_update/*
%dir %{_kde_share_dir}/apps/kile
%{_kde_share_dir}/apps/kile/*
%{_kde_share_dir}/config.kcfg/kile.kcfg
%{_datadir}/dbus-1/interfaces/net.sourceforge.kile.main.xml
%{_datadir}/icons/hicolor/*
%dir %{_datadir}/mimelink
%dir %{_datadir}/mimelink/text
%{_datadir}/mimelink/text/x-kilepr.desktop
%changelog