File sugar-poll-activity.spec of Package sugar-poll-activity

#
# spec file for package sugar-poll-activity
#
# 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 python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")

Name:           sugar-poll-activity
Version:        29
%if 0%{?suse_version}
Release:        1
%else
Release:        1.20090216%{?dist}
Release:        1%{?dist}
%endif
License:        GPL-2.0+
Summary:        Create a poll, collect votes and analyze community opinions
Url:            http://sugarlabs.org/
Group:          Sugar/Activities

Source:         http://download.sugarlabs.org/activities/4074/poll-%{version}.xo
Source1:        %{name}-rpmlintrc

Requires:       python-abiword
Requires:       sugar
Requires:       sugar-base
Requires:       sugar-toolkit >= 0.84.4

BuildRequires:  fdupes
BuildRequires:  gettext-runtime
BuildRequires:  sugar
BuildRequires:  sugar-base
BuildRequires:  sugar-toolkit >= 0.84.4

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

%description
A poll is a research tool that helps explain what a group of people think about
a topic. Poll Builder allows you to create your own poll, collect votes,
examine the results and think about what they mean. Users can write original
opinion poll questions and answer choices, then invite friends to vote in their
poll via the mesh.
This is a WorldWideWorkshop project.

%prep
# -o is needed for this package
unzip -o ../SOURCES/poll-%{version}.xo
%setup -TD -n Poll.activity
echo "summary = Create a poll, collect votes and analyze community opinions." >> activity/activity.info


%build
python  \
	setup.py \
	build

%install
python  \
	setup.py \
	install \
	--prefix=%{buildroot}/%{_prefix}
%find_lang org.worldwideworkshop.PollBuilder
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%files -f org.worldwideworkshop.PollBuilder.lang
%defattr(-,root,root,-)
%{_datadir}/sugar/activities/*
%doc AUTHORS COPYING NEWS

%changelog
openSUSE Build Service is sponsored by