2007-01-16 00:08:12 +01:00
|
|
|
#
|
2007-06-11 23:17:41 +02:00
|
|
|
# spec file for package csound (Version 5.06.0)
|
2007-01-16 00:08:12 +01:00
|
|
|
#
|
2008-10-06 16:39:59 +02:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:08:12 +01:00
|
|
|
#
|
2008-10-06 16:39:59 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:08:12 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-10-06 16:39:59 +02:00
|
|
|
|
2007-01-16 00:08:12 +01:00
|
|
|
Name: csound
|
2007-01-23 01:13:25 +01:00
|
|
|
%define support_fltk 0
|
2007-06-11 23:17:41 +02:00
|
|
|
BuildRequires: alsa-devel fdupes fluidsynth-devel gcc-c++ jack-devel liblo-devel libsndfile-devel portaudio-devel python-devel scons swig
|
2007-01-23 01:13:25 +01:00
|
|
|
%if %support_fltk
|
|
|
|
BuildRequires: fltk-devel libjpeg-devel libpng-devel xorg-x11-devel
|
|
|
|
%endif
|
2007-01-16 00:08:12 +01:00
|
|
|
Summary: Computer Sound Synthesis and Composition Program
|
2007-06-11 23:17:41 +02:00
|
|
|
Version: 5.06.0
|
2008-10-06 16:39:59 +02:00
|
|
|
Release: 128
|
|
|
|
License: LGPL v2.1 or later
|
2007-01-16 00:08:12 +01:00
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
2007-06-11 23:17:41 +02:00
|
|
|
Source: Csound%{version}.tar.bz2
|
2007-01-16 00:08:12 +01:00
|
|
|
Source1: README.SuSE
|
2007-01-23 01:13:25 +01:00
|
|
|
Patch: csound-alsa-fix.diff
|
|
|
|
Patch1: csound-tmpnam-fix.diff
|
2007-06-11 23:17:41 +02:00
|
|
|
Patch2: csound-gcc-warning-fix.diff
|
2008-10-06 16:39:59 +02:00
|
|
|
Patch3: csound-python-2.6-fix.diff
|
|
|
|
Url: http://www.csounds.com
|
|
|
|
AutoReq: on
|
2007-01-23 01:13:25 +01:00
|
|
|
Autoprov: off
|
2007-01-16 00:08:12 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Csound is a software synthesis program. It is fully modular and
|
|
|
|
supports an unlimited amount of oscillators and filters.
|
|
|
|
|
|
|
|
For detailed information, refer to http://www.csounds.com.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2007-06-11 23:17:41 +02:00
|
|
|
%setup -q -n Csound%{version}
|
2007-01-16 00:08:12 +01:00
|
|
|
%patch
|
|
|
|
%patch1
|
2007-06-11 23:17:41 +02:00
|
|
|
%patch2
|
2008-10-06 16:39:59 +02:00
|
|
|
%patch3
|
2007-01-23 01:13:25 +01:00
|
|
|
cp %{SOURCE1} .
|
|
|
|
# fix encoding
|
|
|
|
iconv -f latin1 -t utf8 readme-csound5.txt > readme-csound5.txt.utf8
|
|
|
|
mv readme-csound5.txt.utf8 readme-csound5.txt
|
2007-06-11 23:17:41 +02:00
|
|
|
test -f custom.py || cp custom.py.mkg custom.py
|
2007-01-16 00:08:12 +01:00
|
|
|
|
|
|
|
%build
|
2007-01-23 01:13:25 +01:00
|
|
|
%if %_lib == "lib64"
|
|
|
|
args="Word64=1"
|
|
|
|
%else
|
|
|
|
args=""
|
|
|
|
%endif
|
|
|
|
scons PREFIX=%{_prefix} $args \
|
|
|
|
customCCFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
|
|
|
customCXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
2007-01-16 00:08:12 +01:00
|
|
|
|
|
|
|
%install
|
2007-01-23 01:13:25 +01:00
|
|
|
%if %_lib == "lib64"
|
|
|
|
args="--word64"
|
|
|
|
%else
|
|
|
|
args=""
|
|
|
|
%endif
|
|
|
|
./install.py --prefix=%{_prefix} --instdir="$RPM_BUILD_ROOT" $args
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_prefix}/csound5-*.md5sums
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/csound
|
|
|
|
# rename conflicting binary names
|
2007-01-16 00:08:12 +01:00
|
|
|
mv $RPM_BUILD_ROOT%{_bindir}/sndinfo $RPM_BUILD_ROOT%{_bindir}/csndinfo
|
|
|
|
mv $RPM_BUILD_ROOT%{_bindir}/extract $RPM_BUILD_ROOT%{_bindir}/csound-extract
|
2007-06-11 23:17:41 +02:00
|
|
|
# remove devel files
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_includedir}
|
2007-06-20 19:06:43 +02:00
|
|
|
%fdupes -s $RPM_BUILD_ROOT
|
2007-01-16 00:08:12 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2008-10-06 16:39:59 +02:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-16 00:08:12 +01:00
|
|
|
|
2008-10-06 16:39:59 +02:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-16 00:08:12 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-01-23 01:13:25 +01:00
|
|
|
%doc COPYING ChangeLog INSTALL readme-csound5.txt README.SuSE
|
2007-01-16 00:08:12 +01:00
|
|
|
%{_bindir}/*
|
2007-01-23 01:13:25 +01:00
|
|
|
%{_libdir}/csound
|
|
|
|
%{_datadir}/csound
|
2007-06-11 23:17:41 +02:00
|
|
|
# %{_includedir}/*
|
|
|
|
# %{_libdir}/lib*
|
2007-01-16 00:08:12 +01:00
|
|
|
|
2007-03-28 02:19:53 +02:00
|
|
|
%changelog
|
2008-10-06 16:39:59 +02:00
|
|
|
* Wed Oct 01 2008 tiwai@suse.de
|
|
|
|
- fix build with python-2.6
|
|
|
|
* Wed Jun 20 2007 tiwai@suse.de
|
2007-06-20 19:06:43 +02:00
|
|
|
- fix fdupes usage
|
2008-10-06 16:39:59 +02:00
|
|
|
* Mon Jun 11 2007 tiwai@suse.de
|
2007-06-11 23:17:41 +02:00
|
|
|
- updated to version 5.06:
|
|
|
|
* fix k-rate, vrandh and vrandi scaling problems, mod fix
|
|
|
|
* new opcodes: partikkel, partikkelsync
|
2008-10-06 16:39:59 +02:00
|
|
|
* Tue Mar 27 2007 tiwai@suse.de
|
2007-03-28 02:19:53 +02:00
|
|
|
- update to version 5.05:
|
|
|
|
* fixes/improvements on FLTK support
|
|
|
|
* fix heap overflow
|
|
|
|
* clean up old codes
|
2008-10-06 16:39:59 +02:00
|
|
|
* Mon Jan 22 2007 tiwai@suse.de
|
2007-01-23 01:13:25 +01:00
|
|
|
- major update to version 5.04
|
|
|
|
(not built with fltk due to lack of threading support)
|
2008-10-06 16:39:59 +02:00
|
|
|
* Mon Mar 27 2006 pth@suse.de
|
2007-01-16 00:08:12 +01:00
|
|
|
- Add missing parameter in printf call (bug #129676).
|
2008-10-06 16:39:59 +02:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-16 00:08:12 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-10-06 16:39:59 +02:00
|
|
|
* Fri Oct 15 2004 tiwai@suse.de
|
2007-01-16 00:08:12 +01:00
|
|
|
- renamed extract to csound-extract to avoid name confliction
|
|
|
|
(bug #45347).
|
2008-10-06 16:39:59 +02:00
|
|
|
* Wed Jun 02 2004 tiwai@suse.de
|
2007-01-16 00:08:12 +01:00
|
|
|
- fixed the ALSA RT plugin with the new API.
|
2008-10-06 16:39:59 +02:00
|
|
|
* Sat Jan 10 2004 adrian@suse.de
|
2007-01-16 00:08:12 +01:00
|
|
|
- add %%run_ldconfig and %%defattr
|
2008-10-06 16:39:59 +02:00
|
|
|
* Tue Aug 05 2003 tiwai@suse.de
|
2007-01-16 00:08:12 +01:00
|
|
|
- renamed sndinfo to csndinfo to avoid name confliction with snd.
|
2008-10-06 16:39:59 +02:00
|
|
|
* Wed Jul 30 2003 tiwai@suse.de
|
2007-01-16 00:08:12 +01:00
|
|
|
- fixed the build on x86-64.
|
2008-10-06 16:39:59 +02:00
|
|
|
* Mon Jul 28 2003 tiwai@suse.de
|
2007-01-16 00:08:12 +01:00
|
|
|
- updated to 4.24.1.
|
|
|
|
- fixed tmpnam with mkstemp.
|
2008-10-06 16:39:59 +02:00
|
|
|
* Thu Feb 01 2001 tiwai@suse.de
|
2007-01-16 00:08:12 +01:00
|
|
|
- Initial vesrion: unofficial-4.10.0.0c
|