# # spec file for package csound (Version 5.05) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: csound %define support_fltk 0 BuildRequires: alsa-devel fluidsynth-devel gcc-c++ jack-devel liblo-devel libsndfile-devel portaudio-devel python-devel scons swig %if %support_fltk BuildRequires: fltk-devel libjpeg-devel libpng-devel xorg-x11-devel %endif Summary: Computer Sound Synthesis and Composition Program Version: 5.05 Release: 1 License: GNU Library General Public License v. 2.0 and 2.1 (LGPL) Group: Productivity/Multimedia/Sound/Utilities Source: Csound%{version}_src.tar.bz2 Source1: README.SuSE Patch: csound-alsa-fix.diff Patch1: csound-tmpnam-fix.diff URL: http://www.csounds.com Autoreq: on Autoprov: off 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 %setup -n Csound5.05.0 %patch %patch1 cp %{SOURCE1} . # fix encoding iconv -f latin1 -t utf8 readme-csound5.txt > readme-csound5.txt.utf8 mv readme-csound5.txt.utf8 readme-csound5.txt %build %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" %install %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 mv $RPM_BUILD_ROOT%{_bindir}/sndinfo $RPM_BUILD_ROOT%{_bindir}/csndinfo mv $RPM_BUILD_ROOT%{_bindir}/extract $RPM_BUILD_ROOT%{_bindir}/csound-extract %clean [ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT %post %run_ldconfig %postun %run_ldconfig %files %defattr(-,root,root) %doc COPYING ChangeLog INSTALL readme-csound5.txt README.SuSE %{_bindir}/* %{_includedir}/* %{_libdir}/lib* %{_libdir}/csound %{_datadir}/csound %changelog * Tue Mar 27 2007 - tiwai@suse.de - update to version 5.05: * fixes/improvements on FLTK support * fix heap overflow * clean up old codes * Mon Jan 22 2007 - tiwai@suse.de - major update to version 5.04 (not built with fltk due to lack of threading support) * Mon Mar 27 2006 - pth@suse.de - Add missing parameter in printf call (bug #129676). * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Fri Oct 15 2004 - tiwai@suse.de - renamed extract to csound-extract to avoid name confliction (bug #45347). * Wed Jun 02 2004 - tiwai@suse.de - fixed the ALSA RT plugin with the new API. * Sat Jan 10 2004 - adrian@suse.de - add %%run_ldconfig and %%defattr * Tue Aug 05 2003 - tiwai@suse.de - renamed sndinfo to csndinfo to avoid name confliction with snd. * Wed Jul 30 2003 - tiwai@suse.de - fixed the build on x86-64. * Mon Jul 28 2003 - tiwai@suse.de - updated to 4.24.1. - fixed tmpnam with mkstemp. * Thu Feb 01 2001 - tiwai@suse.de - Initial vesrion: unofficial-4.10.0.0c