%define majver %(echo %version | cut -d. -f1-2) Name: csound Version: 5.12.1 Release: 1mamba Summary: A sound and music synthesis system providing facilities for composition and performance over a wide range of platforms Group: Applications/Multimedia Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.csounds.com/ Source: http://downloads.sourceforge.net/project/csound/csound5/csound${majver}/Csound%{version}.tar.gz Patch0: %{name}-5.10.1-fix-locale-install.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: fluidsynth-devel BuildRequires: glibc-devel BuildRequires: libalsa-devel BuildRequires: libfltk-devel BuildRequires: libgcc BuildRequires: libjack-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libportaudio-devel BuildRequires: libpython-devel BuildRequires: libsndfile-devel BuildRequires: libstdc++6-devel BuildRequires: libtcl-devel BuildRequires: libtk-devel BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: libXft-devel BuildRequires: libz-devel BuildRequires: perl-devel BuildRequires: perl-Tk ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Csound is a sound and music synthesis system, providing facilities for composition and performance over a wide range of platforms. It is not restricted to any style of music, having been used for many years in at least classical, pop, techno, ambient... %package devel Summary: Static libraries and headers for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel Csound is a sound and music synthesis system, providing facilities for composition and performance over a wide range of platforms. It is not restricted to any style of music, having been used for many years in at least classical, pop, techno, ambient... This package contains static libraries and header files needed for development. %prep %setup -q -n Csound%{version} %patch0 -p1 %build scons dynamicCsoundLibrary=1 \ buildRelease=0 \ noDebug=0 \ disableGStabs=1 \ buildInterfaces=1 \ useGettext=1 \ useALSA=1 \ usePortAudio=0 \ usePortMIDI=0 \ useOGG=1 \ useOSC=1 \ useJack=1 \ useFLTK=1 \ buildVirtual=1 \ useFluidsynth=1 \ generatePdf=0 \ buildCsound5GUI=1 \ pythonVersion=2.6 \ buildPythonOpcodes=1 \ buildPythonWrapper=1 \ buildLuaWrapper=1 \ buildTclcsound=1 \ buildJavaWrapper=1 \ buildDSSI=1 \ buildUtilities=1 \ prefix=%{_prefix} \ customCCFLAGS="%{optflags}" \ customCXXFLAGS="%{optflags}" \ tclversion=8.5 %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python} install.py --prefix=%{_prefix} --instdir=%{buildroot} %find_lang %{name}5 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files -f %{name}5.lang %defattr(-,root,root) %{_bindir}/* %exclude %{_bindir}/uninstall-csound5 %{_libdir}/csound/plugins/*.so %{_libdir}/libcsnd.so.* %{_libdir}/libcsound.so.* %{_libdir}/csound/java/csnd.jar %{_libdir}/lib_jcsound.so %{_libdir}/csound/tcl %{python_sitearch}/_csnd.so %{python_sitearch}/csnd.py %exclude %{_prefix}/csound5*.md5sums %exclude %{_docdir}/csound %doc AUTHORS COPYING ChangeLog readme-csound5.txt %files devel %defattr(-,root,root) %{_includedir}/csound %{_libdir}/libcsound.so %changelog * Sun Jun 20 2010 Silvan Calarco 2.1-1mamba - package created by autospec