csound/csound.spec

142 lines
4.9 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
%define gitcommit %(echo %version | cut -d+ -f2 | cut -d. -f2)
Name: csound
Version: 6.18.1+20241116git.05aa93e
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/
Source: https://github.com/csound/csound.git/develop@%{gitcommit}/csound-%{version}.tar.bz2
Patch0: csound-6.18.1-upstream-fix_liblo_calls.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libalsa-devel
BuildRequires: libcurl-devel
BuildRequires: libgcc
BuildRequires: libjack-devel
BuildRequires: liblo-devel
BuildRequires: libportaudio-devel
BuildRequires: libportmidi-devel
BuildRequires: libpulseaudio-devel
BuildRequires: libpulseaudio-glib-devel
BuildRequires: libpython311-devel
BuildRequires: libsamplerate-devel
BuildRequires: libsndfile-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: libportmidi-devel >= 1:2.0.4-1mamba
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
Obsoletes: java-csound <= 6.18.1
%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
Obsoletes: csound-devel < 6.16.2
%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.
%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
%prep
%setup -q
%patch 0 -p1
%build
%cmake -d build \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON=%{__python3} \
%ifarch aarch64 x86_64
-DUSE_LIB64=ON
%endif
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%find_lang %{name} --all-name
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/*
%dir %{_datadir}/samples
%{_datadir}/samples/*
%files -n libcsound
%defattr(-,root,root)
%{_libdir}/libcsound*.so.*
%dir %{_libdir}/csound
%dir %{_libdir}/csound/plugins*
%{_libdir}/csound/plugins*/*.so
%{python3_sitelib}/ctcsound.py
%doc AUTHORS COPYING
%files -n libcsound-devel
%defattr(-,root,root)
%dir %{_includedir}/csound
%{_includedir}/csound/*
%{_libdir}/libcsound*.so
%dir %{_datadir}/csound
%{_datadir}/csound/Csound*.cmake
#%files -n java-csound
#%defattr(-,root,root)
#%{_datadir}/java/csnd6.jar
%changelog
* Sun Nov 17 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 6.18.1+20241116git.05aa93e-1mamba
- update to 6.18.1+20241116git.05aa93e
* Thu Nov 24 2022 Automatic Build System <autodist@mambasoft.it> 6.18.1-1mamba
- automatic version update by autodist
* Sat Oct 29 2022 Automatic Build System <autodist@mambasoft.it> 6.18.0-1mamba
- automatic version update by autodist
* Wed Feb 09 2022 Automatic Build System <autodist@mambasoft.it> 6.17.0-1mamba
- automatic version update by autodist
* 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
* 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