File gummi.spec of Package gummi.openSUSE_Backports_SLE-15_Update
#
# spec file for package gummi
#
# 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:           gummi
Version:        0.8.0
Release:        0
Summary:        Simple LaTeX editor
License:        MIT
Group:          Productivity/Publishing/TeX/Frontends
Url:            https://github.com/alexandervdm/gummi
Source0:        https://github.com/alexandervdm/gummi/releases/download/%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gummi-implicit-fortify-decl.patch gh#alexandervdm/gummi#124 badshah400@gmail.com -- Include string.h header to avoid using implicit definitions of strlen function; patch sent upstream
Patch0:         gummi-implicit-fortify-decl.patch
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.20
BuildRequires:  pkgconfig(gtksourceview-3.0) >= 3.4
BuildRequires:  pkgconfig(gtkspell3-3.0) >= 3.0
BuildRequires:  pkgconfig(poppler-glib)
BuildRequires:  texlive-synctex-devel
Requires:       gtkspell
Requires:       texlive-latex
Recommends:     %{name}-lang
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.
%lang_package
%prep
%setup -q
%patch0 -p1
%build
%configure
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%find_lang %{name}
%suse_update_desktop_file %{name} Office WordProcessor
%fdupes %{buildroot}%{_datadir}/
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog
%license COPYING
%{_mandir}/man*/*.1*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}/
%{_libdir}/%{name}/
%files lang -f %{name}.lang
%changelog