File pidgin-embeddedvideo.spec of Package pidgin-embeddedvideo

#
# spec file for package pidgin-embeddedvideo
#
# 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   embeddedvideo
%define _pidgin_plugindir %(pkg-config --variable plugindir pidgin)
Name:           pidgin-embeddedvideo
Version:        1.2.1
Release:        0
Summary:        Pidgin plugin to watch videos directly into your Pidgin conversation
License:        GPL-3.0-or-later
Group:          Productivity/Networking/Instant Messenger
URL:            https://github.com/stefanistrate/pidgin-embeddedvideo
Source:         https://github.com/stefanistrate/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(pidgin)
BuildRequires:  pkgconfig(webkit-1.0)

%description
Pidgin Embedded Video is a GTK+ plugin for the Pidgin instant
messaging client. The purpose of this plugin is to provide a faster
way to watch videos while chatting with your friends. No more
additional browser windows! It transforms a simple conversation
into a much more attractive and interesting experience.

%package -n pidgin-plugin-%{_name}
Summary:        Pidgin plugin to watch videos directly into your Pidgin conversation
Group:          Productivity/Networking/Instant Messenger
%requires_ge    pidgin
Provides:       %{name} = %{version}

%description -n pidgin-plugin-%{_name}
Pidgin Embedded Video is a GTK+ plugin for the Pidgin instant
messaging client. The purpose of this plugin is to provide a faster
way to watch videos while chatting with your friends. No more
additional browser windows! It transforms a simple conversation
into a much more attractive and interesting experience.

%prep
%setup -q

%build
export PLUGINDIR=%{_pidgin_plugindir}
%configure
make %{?_smp_mflags} V=1

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print

%files -n pidgin-plugin-%{_name}
%if 0%{?suse_version} >= 1500
%license COPYING
%else
%doc COPYING
%endif
%doc README.md
%{_pidgin_plugindir}/%{_name}.so

%changelog
openSUSE Build Service is sponsored by