File sugar-irc.spec of Package sugar-xoirc

#
# spec file for package sugar-irc
#
# Copyright (c) 2013 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/
#

%define date 20090129

Name:           sugar-irc
Version:        10
%if 0%{?suse_version}
Release: 1
%else
Release:        %{date}%{?dist}
%endif
Summary:        IRC client for Sugar

Group:          Sugar/Activities
License:        GPL-2.0+
URL:            http://activities.sugarlabs.org/en-US/sugar/addon/4029
Source0:        http://download.sugarlabs.org/sources/honey/IRC/IRC-%{version}.tar.bz2
Source1:        %{name}-rpmlintrc

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:      noarch

BuildRequires:  python
BuildRequires:  sugar-toolkit

Requires:       sugar


%description
This activity allows you to contact other OLPC users and enthusiasts
on the internet, and chat with them, via the IRC interface. 


%prep
%setup -q -n IRC-%{version}
chmod -x {purk/scripts/ignore.py,purk/scripts/console.py,purk/scripts/timeout.py,purk/scripts/alias.py}
chmod +x setup.py
rm -rf NEWS

%build
python ./setup.py build

%install
python ./setup.py install --prefix=%{buildroot}/%{_prefix}

%clean
rm -rf  %{buildroot}

%files
%defattr(-,root,root,-)
%doc README TODO
%{sugaractivitydir}/IRC.activity/

%changelog
openSUSE Build Service is sponsored by