File pidgin-latex.spec of Package pidgin-latex
#
# spec file for package pidgin-latex
#
# Copyright (c) 2018 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/
#
%define _name latex
Name: pidgin-latex
Version: 1.5.0
Release: 0
Summary: Small LaTeX plugin for Pidgin
License: GPL-2.0-or-later
Group: Productivity/Networking/Instant Messenger
URL: https://pidgin-latex.sourceforge.io/
Source: https://downloads.sf.net/%{name}/%{name}_%{version}.tar.gz
BuildRequires: pkgconfig
BuildRequires: texlive
BuildRequires: pkgconfig(pidgin)
%description
A plugin for Pidgin which translates LaTeX code into images in your
private and group conversations.
Features:
* Displays LaTeX formulae in Pidgin.
* Works in both private and group chats.
* Formulae are saved as images in the history.
* Compatible with other TeX plugins for IM clients.
* Integrates as custom-smileys, if the feature is available on
the protocol.
%package -n pidgin-plugin-%{_name}
Summary: Small LaTeX plugin for Pidgin
Group: Productivity/Networking/Instant Messenger
%requires_ge pidgin
%description -n pidgin-plugin-%{_name}
A plugin for Pidgin which translates LaTeX code into images in your
private and group conversations.
Features:
* Displays LaTeX formulae in Pidgin.
* Works in both private and group chats.
* Formulae are saved as images in the history.
* Compatible with other TeX plugins for IM clients.
* Integrates as custom-smileys, if the feature is available on
the protocol.
%prep
%setup -q -n %{name}
%build
make %{?_smp_mflags} V=1 \
CFLAGS="%{optflags}"
%install
%make_install \
PREFIX=%{buildroot}%{_prefix}
if [ %{_prefix}/lib != %{_libdir} ]; then
mv %{buildroot}%{_prefix}/lib/ %{buildroot}%{_libdir}/
fi
%files -n pidgin-plugin-%{_name}
%license COPYING
%doc CHANGELOG README
%{_libdir}/pidgin/LaTeX.so
%changelog