File pidgin-mrim.spec of Package pidgin-mrim

#
# spec file for package pidgin-mrim
#
# Copyright (c) 2011 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:           pidgin-mrim
%define _name   mrim-prpl
Version:        0.1.28
Release:        1
License:        GPLv2+
Summary:        Pidgin plugin for Mail.ru
Url:            http://code.google.com/p/mrim-prpl/
Group:          Productivity/Networking/Instant Messenger
Source0:        http://mrim-prpl.googlecode.com/files/%{_name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM pidgin-mrim-fix-build.patch -- Fix build caused by wrong API usage
Patch0:         pidgin-mrim-fix-build.patch
BuildRequires:  pidgin
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(purple)
Requires:       libpurple-plugin-mrim = %{version}
Requires:       pidgin
Supplements:    packageand(libpurple-plugin-mrim:pidgin}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is a Mail.ru plugin for Pidgin.

It provides support for the MPP/MrIM protocol, popular in Russia.

%package -n libpurple-plugin-mrim
License:        GPLv2+
Summary:        Libpurple plugin for Mail.ru
Group:          Productivity/Networking/Instant Messenger
Requires:       libpurple
Enhances:       libpurple

%description -n libpurple-plugin-mrim
This is a Mail.ru plugin for Pidgin.

It provides support for the MPP/MrIM protocol, popular in Russia.

%lang_package -n libpurple-plugin-mrim
%prep
%setup -q -n %{_name}-%{version}
%patch0 -p1
# When below tests fail, we can now remove the chmod
test -x LICENSE
test -x README
chmod a-x LICENSE README

%build
%configure --gtk
make %{?_smp_mflags}

%install
%make_install LIBDIR=%{_lib}
%find_lang %{_name}

%clean
rm -rf %{buildroot}

%files -n libpurple-plugin-mrim
%defattr(-,root,root,-)
%doc ChangeLog LICENSE README
%{_libdir}/purple-2/libmrim.so

%files
%defattr(-,root,root,-)
%doc ChangeLog LICENSE README
%{_datadir}/pixmaps/pidgin/protocols/*/mrim.png

%files -n libpurple-plugin-mrim-lang -f %{_name}.lang

%changelog
openSUSE Build Service is sponsored by