File latexila.spec of Package latexila

#
# spec file for package latexila
#
# Copyright (c) 2012 SUSE LINUX Products 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:        2.4.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://ftp.gnome.org/pub/GNOME/sources/%{name}/2.4/%{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gettext-tools
BuildRequires:  gnome-desktop
BuildRequires:  gsettings-desktop-schemas-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  itstool
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gee-1.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gtksourceview-2.0)
BuildRequires:  pkgconfig(gtkspell-2.0)
BuildRequires:  pkgconfig(unique-1.0)
%if 0%{?suse_version} <= 1210
BuildRequires:  xz
%endif
Requires:       gsettings-desktop-schemas
Requires:       rubber
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

%build
cd build/
cmake \
      -DCMAKE_INSTALL_PREFIX=%{_prefix} \
      -DWITH_GNOME=on                   \
      ..
make

%install
cd build
%make_install
cd ..
%suse_update_desktop_file -c %{name} LaTeXila "Integrated LaTeX Environment for GNOME" %{name} %{name} Education Science
%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}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%{_datadir}/icons/hicolor/*/*/
%{_mandir}/man1/%{name}.1.*

%changelog
openSUSE Build Service is sponsored by