File gummi.spec of Package gummi
#
# spec file for package gummi
#
# Copyright (c) 2013 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.5
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/301/%{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
%endif
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: pkg-config
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gtk+-2.0) >= 2.20.0
BuildRequires: pkgconfig(gtksourceview-2.0) >= 2.2.1
BuildRequires: pkgconfig(gtkspell-2.0)
BuildRequires: pkgconfig(poppler-glib)
Requires: gtkspell
Requires: texlive-latex
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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.
%prep
%setup -q
%if 0%{?suse_version} > 1210
%patch0 -p1
%endif
%build
%configure
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot} INSTALL="install -p"
%find_lang %{name}
%suse_update_desktop_file %{name} Office WordProcessor
%fdupes %{buildroot}%{_datadir}/
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README
%{_mandir}/man*/*.1*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}/
%{_libdir}/%{name}/
%changelog