File pidgin-facebookchat.spec of Package pidgin-facebookchat

#
# spec file for package pidgin-facebookchat (Version 1.69)
#
# Copyright (c) 2010 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-facebookchat
%define _name   pidgin-facebookchat-source
Version:        1.69
Release:        1
License:        GPLv3+
Summary:        Pidgin plugin for Facebook Chat
Url:            http://code.google.com/p/pidgin-facebookchat/
Group:          Productivity/Networking/Instant Messenger
Source0:        http://pidgin-facebookchat.googlecode.com/files/%{_name}-%{version}.tar.bz2
Source1:        pidgin-facebookchat-makefile
BuildRequires:  glib2-devel
BuildRequires:  json-glib-devel
BuildRequires:  libpurple-devel
# For directory ownership
BuildRequires:  pidgin
Requires:       libpurple-plugin-facebookchat = %{version}
Requires:       pidgin
Supplements:    packageand(libpurple-plugin-facebookchat:pidgin}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is a Facebook chat plugin for Pidgin.

It connects to the new Facebook Chat IM service without the need for an
API key.

%package -n libpurple-plugin-facebookchat
License:        GPLv2+
Summary:        Libpurple plugin for Facebook Chat
Group:          Productivity/Networking/Instant Messenger
Requires:       libpurple
Requires:       libjson-glib-1_0-0
Enhances:       libpurple

%description -n libpurple-plugin-facebookchat
This is a Facebook chat plugin for libpurple.

It connects to the new Facebook Chat IM service without the need for an
API key.

%prep
%setup -q -n %{name}
cp %{SOURCE1} Makefile

%build
export CFLAGS="%{optflags}"
%__make %{?jobs:-j%jobs} LIBDIR=%{_libdir}

%install
%makeinstall LIBDIR=%{_libdir}
chmod 0755 %{buildroot}%{_libdir}/purple-2/libfacebook.so

%clean
rm -rf %{buildroot}

%files -n libpurple-plugin-facebookchat
%defattr(-,root,root)
%doc COPYING
%{_libdir}/purple-2/libfacebook.so

%files
%defattr(-,root,root,-)
%doc COPYING
%{_datadir}/pixmaps/pidgin/protocols/*/facebook.png

%changelog
openSUSE Build Service is sponsored by