File pidgin-branding-openSUSE.spec of Package pidgin-branding-openSUSE

#
# spec file for package pidgin-branding-openSUSE
#
# Copyright (c) 2015 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:           pidgin-branding-openSUSE
Version:        42.1
Release:        0
Summary:        Multiprotocol Instant Messaging Client -- openSUSE Default Configuration
License:        BSD-3-Clause
Group:          Productivity/Networking/Instant Messenger
Url:            http://www.pidgin.im/
Source:         %{name}-COPYING
Source1:        %{name}-prefs.xml
BuildRequires:  libpurple
%define libpurple_version %(rpm -q --qf '%%{version}' libpurple)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Pidgin is a chat program which lets you log in to accounts on multiple
chat networks simultaneously.

Pidgin is compatible with the following chat networks out of the box:
AIM, ICQ, Google Talk, Jabber/XMPP, MSN Messenger, Yahoo!, Bonjour,
Gadu-Gadu, IRC, Novell GroupWise Messenger, QQ, Lotus Sametime, SILC,
SIMPLE, MXit, MySpaceIM, and Zephyr. It can support many more with
plugins.

This package provides the openSUSE default configuration for Pidgin.

%package -n libpurple-branding-openSUSE
Summary:        GLib-based Instant Messenger Library -- openSUSE Default Configuration
Group:          System/Libraries
Requires:       libpurple = %{libpurple_version}
Provides:       libpurple-branding = %{libpurple_version}
Conflicts:      otherproviders(libpurple-branding)
Supplements:    packageand(libpurple:branding-openSUSE)
# It also provides pidgin branding (that used to exist before as a package)
Provides:       pidgin-branding-openSUSE = %{version}
Obsoletes:      pidgin-branding-openSUSE < %{version}
Provides:       pidgin-branding = %{version}
Conflicts:      otherproviders(pidgin-branding)
Supplements:    packageand(pidgin:branding-upstream)

%description -n libpurple-branding-openSUSE
libpurple is a library intended to be used by programmers seeking
to write an IM client that connects to many IM networks.

libpurple is compatible with the following chat networks out of the box:
AIM, ICQ, Google Talk, Jabber/XMPP, MSN Messenger, Yahoo!, Bonjour,
Gadu-Gadu, IRC, Novell GroupWise Messenger, QQ, Lotus Sametime, SILC,
SIMPLE, MXit, MySpaceIM, and Zephyr. It can support many more with
plugins.

This package provides the openSUSE default configuration for libpurple.

%prep
%setup -q -T -c %{name}-%{version}
cp -a %{S:0} COPYING
cp -a %{S:1} prefs.xml

%build

%install
install -d %{buildroot}%{_sysconfdir}/purple
install -m0644 prefs.xml %{buildroot}%{_sysconfdir}/purple/

%clean
rm -rf %{buildroot}

%files -n libpurple-branding-openSUSE
%defattr (-, root, root)
%doc COPYING
%config %{_sysconfdir}/purple/prefs.xml

%changelog
openSUSE Build Service is sponsored by