File latexila.spec of Package latexila

#
# spec file for package latexila
#
# Copyright (c) 2016 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:           latexila
Version:        3.20.1
Release:        0
Summary:        Integrated LaTeX Environment for the GNOME desktop
License:        GPL-3.0+
Group:          Productivity/Publishing/TeX/Frontends
Url:            http://projects.gnome.org/latexila/
Source0:        http://download.gnome.org/sources/latexila/3.20/%{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  gettext-tools
BuildRequires:  gnome-desktop
BuildRequires:  gsettings-desktop-schemas-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  itstool
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  vala >= 0.26.0
BuildRequires:  pkgconfig(gee-0.8) >= 0.10
BuildRequires:  pkgconfig(gio-2.0) >= 2.40
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gspell-1) >= 1.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.20
BuildRequires:  pkgconfig(gtksourceview-3.0) >= 3.18.0
BuildRequires:  pkgconfig(vapigen)
Requires:       gsettings-desktop-schemas
Requires:       texlive-latexmk-bin
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
LaTeXila is an Integrated LaTeX Environment for GNOME. The main features are:
  * Configurable buttons to compile, convert and view a document in one click
  * LaTeX commands auto-completion
  * Symbol tables (Greek letters, arrows, ...)
  * File browser integrated
  * Template managing
  * Menus with the most commonly used LaTeX commands
  * Easy projects management

%prep
%setup -q
translation-update-upstream

%build
./configure --prefix=%{_prefix} --with-gnome
make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file org.gnome.%{name} WordProcessor
%find_lang %{name}
%fdupes -s %{buildroot}

%post
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post

%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README NEWS HACKING
%{_bindir}/*
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/*/*/
%{_datadir}/applications/*
%{_datadir}/dbus-1/services/org.gnome.latexila.service
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%if 0%{?suse_version} == 1315
%dir %{_datadir}/appdata
%endif
%{_datadir}/appdata/org.gnome.latexila.appdata.xml
%{_mandir}/man1/%{name}.1.*
%dir %{_datadir}/gtk-doc/html/latexila/
%{_datadir}/gtk-doc/html/latexila/*

%changelog