2024-01-05 21:34:43 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
|
|
|
Name: csound
|
2024-01-05 21:34:43 +01:00
|
|
|
Version: 6.18.0
|
2024-01-05 21:34:43 +01:00
|
|
|
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 <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://www.csounds.com/
|
2024-01-05 21:34:43 +01:00
|
|
|
Source: https://github.com/csound/csound.git/%{version}/csound-%{version}.tar.bz2
|
2024-01-05 21:34:43 +01:00
|
|
|
Patch0: %{name}-5.10.1-fix-locale-install.patch
|
|
|
|
Patch1: csound-5.19.01-missing-cmake-file.patch
|
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libalsa-devel
|
2024-01-05 21:34:43 +01:00
|
|
|
BuildRequires: libcurl-devel
|
2024-01-05 21:34:43 +01:00
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libjack-devel
|
|
|
|
BuildRequires: liblo-devel
|
|
|
|
BuildRequires: liblua-devel
|
|
|
|
BuildRequires: libportaudio-devel
|
|
|
|
BuildRequires: libportmidi-devel
|
|
|
|
BuildRequires: libpulseaudio-devel
|
2024-01-05 21:34:43 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-05 21:34:43 +01:00
|
|
|
BuildRequires: libsamplerate-devel
|
2024-01-05 21:34:43 +01:00
|
|
|
BuildRequires: libsndfile-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: java-gcj-compat
|
|
|
|
BuildRequires: liblua51-devel
|
|
|
|
Requires: libcsound = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%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 -n libcsound
|
|
|
|
Summary: A sound and music synthesis library providing facilities for composition and performance over a wide range of platforms
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libcsound
|
|
|
|
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.
|
|
|
|
|
|
|
|
%package -n libcsound-devel
|
|
|
|
Summary: Static libraries and headers for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: libcsound = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Provides: csound-devel
|
2024-01-05 21:34:43 +01:00
|
|
|
Obsoletes: csound-devel < 6.16.2
|
2024-01-05 21:34:43 +01:00
|
|
|
|
|
|
|
%description -n libcsound-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.
|
|
|
|
|
2024-01-05 21:34:43 +01:00
|
|
|
%package -n java-csound
|
|
|
|
Summary: Java CSound music synthesis library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n java-csound
|
|
|
|
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 the Java library.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 21:34:43 +01:00
|
|
|
%prep
|
2024-01-05 21:34:43 +01:00
|
|
|
%setup -q
|
|
|
|
#-D -T
|
|
|
|
#:<< _EOF
|
2024-01-05 21:34:43 +01:00
|
|
|
#%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
%build
|
2024-01-05 21:34:43 +01:00
|
|
|
#:<< _EOF
|
|
|
|
%cmake -d build \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DPYTHON=%{__python3} \
|
|
|
|
%ifarch aarch64 x86_64
|
|
|
|
-DUSE_LIB64=ON
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# -DLUA_INCLUDE_DIR=%{_includedir}/lua5.3 \
|
|
|
|
# -DLUA_LIBRARY=%{_libdir}/liblua.so.5.3 \
|
|
|
|
|
|
|
|
# -DPYTHON_LIBRARY=%{_libdir}/libpython%{python_version}.so \
|
|
|
|
# -DPYTHON_INCLUDE_DIR=%{_includedir}/python%{python_version}
|
2024-01-05 21:34:43 +01:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 21:34:43 +01:00
|
|
|
%makeinstall -C build
|
2024-01-05 21:34:43 +01:00
|
|
|
|
|
|
|
install -d %{buildroot}%{_datadir}/java/
|
2024-01-05 21:34:43 +01:00
|
|
|
mv %{buildroot}%{_libdir}/*.jar %{buildroot}%{_datadir}/java/
|
2024-01-05 21:34:43 +01:00
|
|
|
install -d %{buildroot}%{_libdir}/csound/lua
|
2024-01-05 21:34:43 +01:00
|
|
|
mv %{buildroot}%{_libdir}/lua* %{buildroot}%{_libdir}/csound/lua/
|
|
|
|
mv %{buildroot}%{_libdir}/lib_jcsound* %{buildroot}%{_libdir}/csound/
|
2024-01-05 21:34:43 +01:00
|
|
|
|
2024-01-05 21:34:43 +01:00
|
|
|
%find_lang %{name} --all-name
|
2024-01-05 21:34:43 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 21:34:43 +01:00
|
|
|
%files -f %{name}.lang
|
2024-01-05 21:34:43 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-05 21:34:43 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%dir %{_datadir}/samples
|
|
|
|
%{_datadir}/samples/*
|
2024-01-05 21:34:43 +01:00
|
|
|
|
|
|
|
%files -n libcsound
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 21:34:43 +01:00
|
|
|
%{_libdir}/libcsound*.so.*
|
|
|
|
%{_libdir}/libcsnd*.so.*
|
2024-01-05 21:34:43 +01:00
|
|
|
%dir %{_libdir}/csound
|
2024-01-05 21:34:43 +01:00
|
|
|
%dir %{_libdir}/csound/plugins*
|
|
|
|
%{_libdir}/csound/plugins*/*.so
|
|
|
|
%{_libdir}/csound/lua/luaCsnd6.so
|
|
|
|
%{_libdir}/csound/lib_jcsound6.so
|
|
|
|
%{python3_sitearch}/ctcsound.py
|
2024-01-05 21:34:43 +01:00
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
|
|
|
%files -n libcsound-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/csound
|
|
|
|
%{_includedir}/csound/*
|
2024-01-05 21:34:43 +01:00
|
|
|
#%{_libdir}/csoundapi~.pd_linux
|
|
|
|
#%{_libdir}/libCsoundAC.so
|
|
|
|
%{_libdir}/libcsnd*.so
|
|
|
|
%{_libdir}/libcsound*.so
|
|
|
|
%{_datadir}/cmake/Csound/FindCsound.cmake
|
2024-01-05 21:34:43 +01:00
|
|
|
|
2024-01-05 21:34:43 +01:00
|
|
|
%files -n java-csound
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_datadir}/java/csnd6.jar
|
2024-01-05 21:34:43 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 21:34:43 +01:00
|
|
|
* Sat Oct 29 2022 Automatic Build System <autodist@mambasoft.it> 6.18.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:34:43 +01:00
|
|
|
* Wed Feb 09 2022 Automatic Build System <autodist@mambasoft.it> 6.17.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:34:43 +01:00
|
|
|
* Sun Jul 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 6.16.2-1mamba
|
|
|
|
- update to 6.16.2
|
|
|
|
|
|
|
|
* Sat Jul 28 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 6.11.0-1mamba
|
|
|
|
- update to 6.11.0
|
|
|
|
|
2024-01-05 21:34:43 +01:00
|
|
|
* Sat Jun 01 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.19.01-1mamba
|
|
|
|
- update to 5.19.01
|
|
|
|
- python 2.7 rebuild
|
|
|
|
|
|
|
|
* Sun Jun 20 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.12.1-1mamba
|
|
|
|
- package created by autospec
|