# # spec file for package csound (Version 4.24.1) # # Copyright (c) 2006 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 BuildRequires: alsa-devel fltk-devel gcc-c++ tk-devel xorg-x11-devel Summary: Computer Sound Synthesis and Composition Program Version: 4.24.1 Release: 228 License: LGPL Group: Productivity/Multimedia/Sound/Utilities Source: Csound-%{version}.tar.bz2 Source1: README.SuSE Patch: csound.dif Patch1: csound-tmpnam-fix.dif Patch2: csound-alsa-fix.dif Patch3: csound-printf-fix.dif URL: http://www.csounds.com 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 Csound-%{version} cp %{SOURCE1} . %patch %patch1 %patch2 %patch3 %build make C_FLAGS="$RPM_OPT_FLAGS" LIBDIR='$(INSTDIR)/'%_lib PLGNDIR='$(LIBDIR)/Csound' %install [ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT make install INSTDIR=$RPM_BUILD_ROOT%{_prefix} LIBDIR='$(INSTDIR)/'%_lib PLGNDIR='$(LIBDIR)/Csound' # strip setuid bit for security reason chmod 755 $RPM_BUILD_ROOT%{_bindir}/* # rename sndinfo to csndinfo mv $RPM_BUILD_ROOT%{_bindir}/sndinfo $RPM_BUILD_ROOT%{_bindir}/csndinfo # rename extract to csound-extract mv $RPM_BUILD_ROOT%{_bindir}/extract $RPM_BUILD_ROOT%{_bindir}/csound-extract # clean up unused directories rmdir $RPM_BUILD_ROOT/usr/share rmdir $RPM_BUILD_ROOT/usr/man %clean [ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT %post %run_ldconfig %postun %run_ldconfig %files %defattr(-,root,root) %{_bindir}/* %{_includedir}/* %{_libdir}/lib* %{_libdir}/Csound %doc doc %changelog -n csound * 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