File purple-facebook.spec of Package purple-facebook

%define	realname	purple-facebook
%define	version		0.9.3-c9b74a765767
%define	rpm_rel		0spas

%if 0%{?suse_version}
%define _group Productivity/Networking/Instant Messenger
%{!?dist:%define	dist	.suse%{?suse_version} }
%else
%define _group Applications/Internet
%{!?dist:%define	dist	.%(rpm -q --qf '%{VERSION}' --whatprovides redhat-release | sed -re 's/^(7\\.[[:digit:]]+)/rhl\\1/ ; s/^([\\.[:digit:]]+)[[:alpha:]]+/el\\1/') }
%endif

Name:		%{realname}
Version:	%{version}
Release:	%{rpm_rel}.<CI_CNT>.<B_CNT>%{dist}
Summary: Facebook protocol plugin for libpurple
Group: %{_group}
License: GPL-2.0+
URL: https://github.com/jgeboski/purple-facebook
Source0: %{name}-%{version}.tar.gz

BuildRequires: autoconf >= 2.64
BuildRequires: automake
BuildRequires: glib2-devel >= 2.28.0
BuildRequires: json-glib-devel >= 0.14
BuildRequires: libpurple-devel < 3
BuildRequires: libtool
BuildRequires: pkg-config

Requires: glib2 >= 2.28.0
Requires: json-glib >= 0.14
Requires: libpurple < 3

%description
Purple Facebook implements the Facebook Messenger protocol into pidgin,
finch, and libpurple. While the primary implementation is for purple3,
this plugin is back-ported for purple2.

%prep
%setup -q

%build
autoreconf -fi
%configure
%__make %{?_smp_mflags}

%install
%make_install
find %{buildroot} -name '*.la' -print -delete

%files
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/purple-2/libfacebook.so

%changelog
* Fri Jun  4 2017 S P Arif Sahari Wibowo <http://www.arifsaha.com/>	0.9.3-c9b74a765767-1spas
- initial build
* Fri Feb 19 2016 S P Arif Sahari Wibowo <http://www.arifsaha.com/>	92885e0456ed-1spas
- initial build
openSUSE Build Service is sponsored by