File bot-sentry.spec of Package bot-sentry
#
# spec file for package pidgin-bot-sentry
#
# Copyright (c) 2011 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: bot-sentry
Version: 1.3.0
Release: 0
# FIXME: on update to a new upstream version, change <= in Obsoletes to <
# FIXME: on update to new upstream version, check if COPYING has been fixed, and ship it as %%doc (+ remove LICENSE NOTE)
# LICENSE NOTE: COPYING says GPL-3.0+, but is wrong: all files are GPL-2.0+ and the COPYING file comes from autotools magic. Upstream has been notified by mail about this (2012-01-19 -- vuntz)
License: GPL-2.0+
Summary: Libpurple plugin to prevent Instant Message spam
Url: http://sourceforge.net/projects/pidgin-bs/
Group: Productivity/Networking/Instant Messenger
Source0: http://downloads.sourceforge.net/pidgin-bs/%{name}-%{version}.tar.bz2
BuildRequires: intltool
BuildRequires: libpurple-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Bot Sentry is a libpurple plug-in to prevent Instant Message spam.
It allows you to ignore IMs unless the sender is in your Buddy List
or Allow List, or the sender correctly answers a question you have
predefined.
%package -n libpurple-plugin-bot-sentry
Summary: Libpurple plugin to prevent Instant Message spam
Group: Productivity/Networking/Instant Messenger
Requires: libpurple
Recommends: libpurple-plugin-bot-sentry-lang
Enhances: libpurple
Provides: %{name} = %{version}
# Old name in Contrib; using <= for Obsoletes as there's no new upstream version yet (last checked: 1.3.0)
Provides: pidgin-bot-sentry = %{version}
Obsoletes: pidgin-bot-sentry <= %{version}
%description -n libpurple-plugin-bot-sentry
Bot Sentry is a libpurple plug-in to prevent Instant Message spam.
It allows you to ignore IMs unless the sender is in your Buddy List
or Allow List, or the sender correctly answers a question you have
predefined.
%lang_package -n libpurple-plugin-bot-sentry
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%make_install
# Rename no locale to nb
mv %{buildroot}%{_datadir}/locale/no %{buildroot}%{_datadir}/locale/nb
rm %{buildroot}%{_libdir}/purple-?/*.la
%find_lang %{name}
%files -n libpurple-plugin-bot-sentry
%defattr(-,root,root,-)
# FIXME: COPYING not shipped as it is wrong (about GPL-3.0+, added by autotools)
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/purple-?/bot-sentry.so
%files -n libpurple-plugin-bot-sentry-lang -f %{name}.lang
%changelog