File pidgin-mrim.spec of Package pidgin-mrim
#
# spec file for package pidgin-mrim
#
# Copyright (c) 2014 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/
#
%define _name mrim-prpl
Name: pidgin-mrim
Version: 0.1.28.1
Release: 0
Summary: Pidgin plugin for Mail.ru Agent
License: GPL-2.0+
Group: Productivity/Networking/Instant Messenger
Url: https://bitbucket.org/mrim-prpl-team/mrim-prpl
Source: https://bitbucket.org/mrim-prpl-team/%{_name}/downloads/%{_name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: pidgin
BuildRequires: pkg-config
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(purple) >= 2.7.0
%description
This is a Mail.ru Agent plugin for Pidgin.
It provides support for the MRA/MRIM protocol, popular in ex-USSR.
%package -n libpurple-plugin-mrim
Summary: Pidgin plugin for Mail.ru Agent
Group: Productivity/Networking/Instant Messenger
Recommends: libpurple-plugin-mrim-lang = %{version}
# PAckage was renamed to follows naming convention with version 0.1.28.1.
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
%description -n libpurple-plugin-mrim
This is a Mail.ru Agent plugin for Pidgin.
It provides support for the MRA/MRIM protocol, popular in ex-USSR.
%lang_package -n libpurple-plugin-mrim
%prep
%setup -q -n %{_name}-%{version}
%build -n %{_name}-%{version}
%configure --gtk
make %{?_smp_mflags}
%install -n %{_name}-%{version}
%make_install LIBDIR=%{_lib}
%find_lang %{_name}
%files -n libpurple-plugin-mrim
%defattr(-,root,root)
%doc ChangeLog LICENSE README
%{_libdir}/purple-2/libmrim.so
%{_datadir}/pixmaps/pidgin/protocols/*/mrim.*
%files -n libpurple-plugin-mrim-lang -f %{_name}.lang
%defattr(-,root,root)
%changelog