LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gummi.spec of Package gummi (Project Publishing)

# spec file for package gummi
# 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:           gummi
Version:        0.6.4
Release:        0
Summary:        Simple LaTeX editor
License:        MIT
Group:          Productivity/Publishing/TeX/Frontends
Url:            http://gummi.midnightcoding.org/
Source0:        http://dev.midnightcoding.org/attachments/download/298/%{name}-%{version}.tar.gz
%if 0%{?suse_version} > 1210
# PATCH-FIX-UPSTREAM gummi-deprecated-g_thread_init.patch badshah400@gmail.com -- Remove usage of deprecated g_thread_init().
Patch0:         gummi-deprecated-g_thread_init.patch
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gtksourceview-2.0)
BuildRequires:  pkgconfig(gtkspell-2.0)
BuildRequires:  pkgconfig(poppler-glib)
Requires:       gtkspell
Requires:       texlive-latex
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Gummi is an opensource project that started in August of 2009 by
Alexander van der Mey. It is a LaTeX editor written in the C
programming language using the GTK+ toolkit. It was designed with
simplicity in mind, but hopes to attract both novice and advanced
LaTeX writers. Gummi is still under active development and is
released under the opensource MIT license.

%setup -q
%if 0%{?suse_version} > 1210
%patch0 -p1

make %{?_smp_mflags}

make install DESTDIR=%{buildroot} INSTALL="install -p"
%find_lang %{name}
%suse_update_desktop_file %{name} Office WordProcessor
%fdupes %{buildroot}%{_datadir}/

%files -f %{name}.lang