File pidgin-lwqq.spec of Package pidgin-lwqq
#
# spec file for package pidgin-lwqq
#
# Copyright (c) 2012 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-lwqq
Version: 1.0e.fix3
Release: 6.2
License: SuSE-Permissive
Summary: A pidgin plugin based on lwqq
Url: https://github.com/xiehuc/pidgin-lwqq
Group: Productivity/Networking/Instant Messenger
Source: %{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libcurl-devel
BuildRequires: libev-devel
BuildRequires: libpurple-devel
BuildRequires: sqlite3-devel
# directory ownership
BuildRequires: pidgin
BuildRequires: empathy
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A pidgin QQ plugin based on lwqq, an excellent safe useful library for webqq protocol.
%prep
%setup -q
%build
mkdir build
pushd build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR=%{_libdir} ..
make %{?_smp_mflags}
popd
%install
pushd build
%make_install
popd
%fdupes %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog README.md KnownIssue.md
%{_libdir}/purple-2/libwebqq.so
%{_datadir}/pixmaps/pidgin/emotes/webqq
%{_datadir}/pixmaps/pidgin/emotes/webqq_static
%{_datadir}/pixmaps/pidgin/protocols/*/webqq*.*
%{_datadir}/pixmaps/pidgin/protocols/scalable.png
%{_datadir}/empathy/icons/hicolor/*/apps/im-webqq.*
%{_datadir}/icons/hicolor/*/apps/webqq.*
%changelog