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

#
# spec file for package sugar-tamtam-synthlab
#
# 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-synthlab
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/4062/tamtamsynthlab-%{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
BuildArch:      noarch

%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
%setup -q -n TamTamSynthLab.activity
find . -name "*.py.rej" -delete

sed -i "s|FEATURES_OGG .* = True|FEATURES_OGG         = False|g; \
                s|FEATURES_LAB .* = None|FEATURES_LAB         = True|g; \
                s|FEATURES_GRAB_MOUSE .* = True|FEATURES_GRAB_MOUSE  = False|g;" common/Config.py

sed -i "s|from common.Util.Clooper.aclient|from tamtam.aclient import|g" common/Util/CSoundClient.py

%build
python ./setup.py build

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

%clean
rm -rf %{buildroot}

%files -f org.laptop.TamTamSynthLab.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING HACKING NEWS README
%{sugaractivitydir}/*/

%changelog
openSUSE Build Service is sponsored by