File purple-rocketchat.spec of Package purple-rocketchat

%define realname purple-rocketchat

Name:		libpurple-plugin-rocketchat
Summary:	Rocket.Chat Plugin for libpurple
Version:	0.0.0
Release:	1
License:	GPL-2.0
Url:		https://bitbucket.org/EionRobb/purple-rocketchat
Source:		%{realname}-%{version}.tar.gz
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(libmarkdown)
BuildRequires:	pkgconfig(json-glib-1.0)
# For directory ownership
BuildRequires:	pidgin

%description
Adds support for Rocket.Chat to libpurple clients, such as Pidgin.

%prep
%setup -q -n %{realname}-%{version}

%build
make %{?_smp_mflags}

%install
%makeinstall

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%{_libdir}/purple-2/librocketchat.so
%{_datadir}/pixmaps/pidgin/protocols/*/rocketchat.png