File supercollider-quarks.spec of Package supercollider-quarks

#
# spec file for package supercollider-quarks
#
# Copyright (c) 2015 SUSE LINUX 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/
#


# svn co https://svn.code.sf.net/p/quarks/code/ quarks
%define svnver 2827
Name:           supercollider-quarks
Version:        3.6
Release:        0
Summary:        Local Quarks repository for SuperCollider
License:        GPL-2.0
Group:          Applications/Multimedia
Url:            http://supercollider.sourceforge.net/
Source0:        quarks%{?svnver:-svn%{svnver}}.tar.gz
Source1:        stripchars
BuildRequires:  fdupes
# Needed for correct directory ownership
BuildRequires:  supercollider
Requires:       supercollider >= 3.5
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Local Quarks repository for SuperCollider.

%package -n supercollider-cruciallib
Summary:        Higher level interfaces for managing musical objects
Group:          Applications/Multimedia
Requires:       supercollider >= 3.5

%description -n supercollider-cruciallib
Higher level interfaces for managing musical objects for SuperCollider

%package -n supercollider-mathlib
Summary:        Useful classes for SuperCollider
Group:          Applications/Multimedia
Requires:       supercollider >= 3.5

%description -n supercollider-mathlib
Includes MarkovSet, boolean patterns and various other useful classes
for SuperCollider.

%package -n supercollider-ambiem
Summary:        Ambisonics classes for SuperCollider
Group:          Applications/Multimedia
Requires:       supercollider >= 3.5
Requires:       supercollider-mathlib >= 3.5

%description -n supercollider-ambiem
AmbIEM is an implementation of an Ambisonics rendering system for
SuperCollider 3. This package does not include the head tracker
binaries.

%package -n supercollider-reduniverse
Summary:        Sonification and visualization of dynamic systems
Group:          Applications/Multimedia
Requires:       supercollider >= 3.5

%description -n supercollider-reduniverse
A set of tools for sonification and visualisation of dynamic
systems. It lets us build and experiment with systems as they are
running. With the help of these tools we can quickly try out ideas
around simple audiovisual mappings, as well as code very complex
agents with strange behaviours.  The toolkit consists of three basic
things... Objects, Worlds and a Universe. Supporting these are
additional classes for things like particle systems, genetic
algorithms, plotting, audio analysis etc. but preferably many of these
functions you will want to code your self as a user.

%package -n supercollider-dewdrop
Summary:        DewDrop external collection for SuperCollider
Group:          Applications/Multimedia
Requires:       supercollider >= 3.5
Requires:       supercollider-mathlib >= 3.5
Requires:       supercollider-sc3-plugins >= 3.5

%description -n supercollider-dewdrop
DewDrop external class collection for SuperCollider

%prep
%setup -q -n quarks
# make it executable
chmod +x %{SOURCE1}

%build
# remove all .svn directories
find . -type d -name .svn | xargs rm -rf
# Remove spurious executable permissions
find . -name \*.c -type f -print0 | xargs -0 chmod -x

%install
mkdir -p %{buildroot}%{_datadir}/SuperCollider/Extensions
# install all quarks for a local repository
(cd ../; tar cf - quarks) | (cd %{buildroot}%{_datadir}/SuperCollider; tar xpf -)
# install selected quarks
for quark in cruciallib MathLib AmbIEM redUniverse dewdrop_lib ; do
    tar cf - $quark | (cd %{buildroot}%{_datadir}/SuperCollider/Extensions/; tar xpf -)
done
# remove extraneous characters from source files
find %{buildroot}%{_datadir}/SuperCollider/ -name \*.sc -exec %{SOURCE1} {} \;
%fdupes %{buildroot}%{_prefix}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_datadir}/SuperCollider/quarks

%files -n supercollider-cruciallib
%defattr(-,root,root,-)
%{_datadir}/SuperCollider/Extensions/cruciallib

%files -n supercollider-mathlib
%defattr(-,root,root,-)
%{_datadir}/SuperCollider/Extensions/MathLib

%files -n supercollider-ambiem
%defattr(-,root,root,-)
%{_datadir}/SuperCollider/Extensions/AmbIEM

%files -n supercollider-reduniverse
%defattr(-,root,root,-)
%{_datadir}/SuperCollider/Extensions/redUniverse

%files -n supercollider-dewdrop
%defattr(-,root,root,-)
%{_datadir}/SuperCollider/Extensions/dewdrop_lib

%changelog
openSUSE Build Service is sponsored by