File sugar-tamtam-edit.spec of Package sugar-tamtam-edit

#
# spec file for package sugar-tamtam-edit
#
# 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/
#

Name:           sugar-tamtam-edit
Version:        67
%if 0%{?suse_version}
Release:        1
%else
Release:        1.20081229%{?dist}
%endif

License:        GPL-2.0+
Summary:        A music and sound exploration application for Sugar
Url:            http://sugarlabs.org/
Group:          Sugar/Activities

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

Requires:       python
#Requires:       sugar-tamtam-common >= 52
Requires:       sugar-toolkit >= 0.83.2

BuildRequires:  fdupes
BuildRequires:  gettext-runtime
BuildRequires:  python-devel
BuildRequires:  sugar-toolkit >= 0.83.2

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

%description
TamTam is a suite of four music and sound related activities for the Sugar.
TamTam is written in python with some C functions for speed-critical services.
The audio engine for TamTam is Csound.

%prep
# -o is needed for this package
unzip -o ../SOURCES/tamtamedit-%{version}.xo
%setup -TD -n TamTamEdit.activity
find -name "*.py.rej" -delete

%build
python setup.py build

%install
python setup.py install --prefix=%{buildroot}/%{_prefix}
%find_lang org.laptop.TamTamEdit
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%files -f org.laptop.TamTamEdit.lang
%defattr(-,root,root,-)
%{sugaractivitydir}/*/

%changelog
openSUSE Build Service is sponsored by