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

#
# spec file for package sugar-tamtam-common
#
# 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-common
Version:        52
Summary:        Resources and python libraries for Sugar TamTam activities
%if 0%{?suse_version}
Release:        1
%else
Release:        1.20081229%{?dist}
%endif

License:        GPL-3.0+
Url:            http://sugarlabs.org/
Group:          Sugar/Activities

# wget http://git.sugarlabs.org/projects/tamtam-branch/repos/mainline/archive/54314e1125f52b22086ebcea33fbba40c567631c.tar.gz -O sugar-tamtam-common-52-20081229.tar.gz
Source:         sugar-tamtam-common-52-20081229.tar.bz2
Source1:        %{name}-rpmlintrc

# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1:         sugar-tamtam-common-52-sugar-tamtam-features.patch

Requires:       olpcsound
Requires:       python

BuildRequires:  alsa-lib-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  olpcsound-devel
BuildRequires:  python-devel

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
%setup -q -n tamtam-branch-mainline
%patch1 -p1
for file in $(find . -type f -name "*Makefile*") ; do
   sed -i "s|python2.5|python%{py_ver}|g" $file
done

%build
make %{?_smp_mflags} all

%install
%make_install
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc common/COPYING.txt
%dir %{_datadir}/tamtam
%dir %{python_sitelib}/tamtam
%{_datadir}/tamtam/*
%{python_sitelib}/tamtam/*

%changelog
openSUSE Build Service is sponsored by