225 lines
7.6 KiB
RPMSpec
225 lines
7.6 KiB
RPMSpec
Name: stk
|
|
Version: 4.3.1
|
|
Release: 10%{?dist}
|
|
Summary: Synthesis ToolKit in C++
|
|
Group: System Environment/Libraries
|
|
License: MIT
|
|
URL: http://ccrma.stanford.edu/software/stk/
|
|
Source0: %{name}-%{version}.stripped.tar.gz
|
|
# Original tarfile can be found at %{url}/release/%{name}-%{version}.tar.gz
|
|
# We remove legeally questionable files.
|
|
Source1: README.fedora
|
|
Source2: config.guess
|
|
Source3: config.sub
|
|
Patch0: stk-4.3.1-header.patch
|
|
Patch1: stk-4.3.1-cflags-lib.patch
|
|
Patch2: stk-4.3.1-sharedlib.patch
|
|
Patch3: stk-4.3.1-missing.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: alsa-lib-devel
|
|
BuildRequires: jack-audio-connection-kit-devel
|
|
BuildRequires: symlinks
|
|
|
|
|
|
%description
|
|
The Synthesis ToolKit in C++ (STK) is a set of open source audio
|
|
signal processing and algorithmic synthesis classes written in the C++
|
|
programming language. STK was designed to facilitate rapid development
|
|
of music synthesis and audio processing software, with an emphasis on
|
|
cross-platform functionality, realtime control, ease of use, and
|
|
educational example code. The Synthesis ToolKit is extremely portable
|
|
(it's mostly platform-independent C and C++ code), and it's completely
|
|
user-extensible (all source included, no unusual libraries, and no
|
|
hidden drivers). We like to think that this increases the chances that
|
|
our programs will still work in another 5-10 years. In fact, the
|
|
ToolKit has been working continuously for about 10 years now. STK
|
|
currently runs with realtime support (audio and MIDI) on Linux,
|
|
Macintosh OS X, and Windows computer platforms. Generic, non-realtime
|
|
support has been tested under NeXTStep, Sun, and other platforms and
|
|
should work with any standard C++ compiler.
|
|
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
|
|
%package demo
|
|
Summary: Demo applications for %{name}
|
|
Group: System Environment/Libraries
|
|
Requires: tk
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description demo
|
|
The %{name}-demo package contains the demo applications for the
|
|
C++ Sound Synthesis ToolKit.
|
|
|
|
|
|
%prep
|
|
%setup0 -q
|
|
%patch0 -p1 -b .header
|
|
%patch1 -p1 -b .cflags
|
|
%patch2 -p1 -b .sharedlib
|
|
%patch3 -p1
|
|
|
|
%{__cp} -a %{SOURCE1} README.fedora
|
|
|
|
# update old aux scripts
|
|
%{__rm} -f config.guess config.sub
|
|
%{__cp} -a %{SOURCE2} config.guess
|
|
%{__cp} -a %{SOURCE3} config.sub
|
|
|
|
|
|
%build
|
|
CFLAGS="${CFLAGS:-$RPM_OPT_FLAGS}"
|
|
export CFLAGS
|
|
%configure --with-jack --with-alsa \
|
|
RAWWAVE_PATH=%{_datadir}/stk/rawwaves/
|
|
%{__make} %{?_smp_mflags} -C src
|
|
%{__make} %{?_smp_mflags} -C projects/demo libdemo libMd2Skini
|
|
%{__make} %{?_smp_mflags} -C projects/examples -f libMakefile
|
|
%{__make} %{?_smp_mflags} -C projects/effects libeffects
|
|
%{__make} %{?_smp_mflags} -C projects/ragamatic libragamat
|
|
|
|
|
|
%install
|
|
%{__rm} -rf %{buildroot}
|
|
%{__mkdir_p} \
|
|
%{buildroot}%{_includedir}/stk \
|
|
%{buildroot}%{_libdir} \
|
|
%{buildroot}%{_bindir} \
|
|
%{buildroot}%{_datadir}/stk/rawwaves \
|
|
%{buildroot}%{_datadir}/stk/demo \
|
|
%{buildroot}%{_datadir}/stk/examples \
|
|
%{buildroot}%{_datadir}/stk/effects \
|
|
%{buildroot}%{_datadir}/stk/ragamatic
|
|
|
|
%{__cp} -p include/* %{buildroot}%{_includedir}/stk
|
|
%{__cp} -pd src/libstk.* %{buildroot}%{_libdir}
|
|
%{__cp} -p rawwaves/*.raw %{buildroot}%{_datadir}/stk/rawwaves
|
|
|
|
%{__cp} -pr projects/demo/tcl %{buildroot}%{_datadir}/stk/demo
|
|
%{__cp} -pr projects/demo/scores %{buildroot}%{_datadir}/stk/demo
|
|
%{__cp} -p projects/demo/demo %{buildroot}%{_bindir}/stk-demo
|
|
%{__cp} -p projects/demo/Md2Skini %{buildroot}%{_bindir}/Md2Skini
|
|
for f in Banded Drums Modal Physical Shakers StkDemo Voice ; do
|
|
%{__chmod} +x projects/demo/$f
|
|
%{__sed} -e 's,\./demo,%{_bindir}/stk-demo,' -e '1i#! /bin/sh' \
|
|
-i projects/demo/$f
|
|
%{__cp} -p projects/demo/$f %{buildroot}%{_datadir}/stk/demo
|
|
done
|
|
|
|
%{__cp} -pr projects/examples/midifiles %{buildroot}%{_datadir}/stk/examples
|
|
%{__cp} -pr projects/examples/rawwaves %{buildroot}%{_datadir}/stk/examples
|
|
%{__cp} -pr projects/examples/scores %{buildroot}%{_datadir}/stk/examples
|
|
for f in sine sineosc foursine audioprobe midiprobe duplex play \
|
|
record inetIn inetOut rtsine crtsine bethree controlbee \
|
|
threebees playsmf grains ; do
|
|
%{__cp} -p projects/examples/$f %{buildroot}%{_bindir}/stk-$f
|
|
# absolute links, will be shortened later
|
|
%{__ln_s} %{buildroot}%{_bindir}/stk-$f %{buildroot}%{_datadir}/stk/examples/$f
|
|
done
|
|
|
|
%{__cp} -pr projects/effects/tcl %{buildroot}%{_datadir}/stk/effects
|
|
%{__cp} -p projects/effects/effects %{buildroot}%{_bindir}/stk-effects
|
|
%{__sed} -e 's,\./effects,%{_bindir}/stk-effects,' -e '1i#! /bin/sh' \
|
|
-i projects/effects/StkEffects
|
|
%{__cp} -p projects/effects/StkEffects %{buildroot}%{_datadir}/stk/effects
|
|
|
|
%{__cp} -pr projects/ragamatic/tcl %{buildroot}%{_datadir}/stk/ragamatic
|
|
%{__cp} -pr projects/ragamatic/rawwaves %{buildroot}%{_datadir}/stk/ragamatic
|
|
%{__cp} -p projects/ragamatic/ragamat %{buildroot}%{_bindir}/stk-ragamat
|
|
%{__sed} -e 's,\./ragamat,%{_bindir}/stk-ragamat,' -e '1i#! /bin/sh' \
|
|
-i projects/ragamatic/Raga
|
|
%{__cp} -p projects/ragamatic/Raga %{buildroot}%{_datadir}/stk/ragamatic
|
|
|
|
# fix encoding
|
|
iconv -f iso-8859-1 -t utf-8 doc/doxygen/index.txt \
|
|
-o doc/doxygen/index.txt.tmp
|
|
%{__mv} doc/doxygen/index.txt.tmp doc/doxygen/index.txt
|
|
|
|
# fix symlinks
|
|
symlinks -crv %{buildroot}
|
|
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README
|
|
%{_libdir}/libstk.so.*
|
|
%dir %{_datadir}/stk
|
|
%{_datadir}/stk/rawwaves
|
|
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%doc README doc/* README.fedora
|
|
%exclude %{_libdir}/libstk.a
|
|
%{_libdir}/libstk.so
|
|
%{_includedir}/*
|
|
|
|
|
|
%files demo
|
|
%defattr(-,root,root,-)
|
|
%doc README README.fedora
|
|
%{_bindir}/stk-*
|
|
%{_bindir}/Md2Skini
|
|
%{_datadir}/stk/demo
|
|
%{_datadir}/stk/examples
|
|
%{_datadir}/stk/effects
|
|
%{_datadir}/stk/ragamatic
|
|
|
|
|
|
%changelog
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.1-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.1-9
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Tue Feb 3 2009 Thomas Moschny <thomas.moschny@gmx.de> - 4.3.1-8
|
|
- Update header patch: Add more missing includes. Should fix
|
|
compilation with gcc 4.4.0.
|
|
|
|
* Mon Dec 1 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 4.3.1-7
|
|
- Include /usr/share/stk directory in main package.
|
|
|
|
* Mon Sep 15 2008 Thomas Moschny <thomas.moschny@gmx.de> - 4.3.1-6
|
|
- Include updated config.guess and config.sub scripts.
|
|
|
|
* Tue Sep 9 2008 Thomas Moschny <thomas.moschny@gmx.de> - 4.3.1-5
|
|
- Don't ship the static library.
|
|
|
|
* Sun Sep 7 2008 Thomas Moschny <thomas.moschny@gmx.de> - 4.3.1-4
|
|
- Remove all .mid and .ski files from the tarball.
|
|
- Add README.fedora.
|
|
|
|
* Thu Jul 31 2008 Thomas Moschny <thomas.moschny@gmx.de> - 4.3.1-3
|
|
- Remove src/include/dsound.h, and src/include/*asio* files from the
|
|
tarball, for legal reasons. Only used on windows anyway.
|
|
- Remove src/include/soundcard.h (explicitly forbids modification) and
|
|
disable OSS support.
|
|
- Build and pack Md2Skini.
|
|
- Build and pack the examples.
|
|
|
|
* Tue Jul 15 2008 Thomas Moschny <thomas.moschny@gmx.de> - 4.3.1-2
|
|
- Update sharedlib patch, fixes alsa problem.
|
|
- Fix path for include files in -devel.
|
|
- Change path for docs in -devel.
|
|
|
|
* Sun Jul 6 2008 Thomas Moschny <thomas.moschny@gmx.de> - 4.3.1-1
|
|
- New package.
|