2007-01-16 00:08:12 +01:00
|
|
|
#
|
2011-09-23 10:22:00 +02:00
|
|
|
# spec file for package csound
|
2007-01-16 00:08:12 +01:00
|
|
|
#
|
2019-04-06 13:04:05 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:08:12 +01:00
|
|
|
#
|
2008-10-06 16:39:59 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-06-05 16:09:42 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:08:12 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-04-06 13:04:05 +02:00
|
|
|
%define py3version %(pkg-config python3 --modversion)
|
2019-04-06 09:44:05 +02:00
|
|
|
%define support_fltk 1
|
2019-04-06 13:04:05 +02:00
|
|
|
%bcond_with python
|
2019-04-07 10:00:32 +02:00
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%bcond_without java
|
|
|
|
%else
|
|
|
|
%bcond_with java
|
|
|
|
%endif
|
|
|
|
|
2019-04-06 09:44:05 +02:00
|
|
|
%define maj 6
|
|
|
|
%define min 0
|
2008-10-06 16:39:59 +02:00
|
|
|
|
2007-01-16 00:08:12 +01:00
|
|
|
Name: csound
|
2019-04-06 09:44:05 +02:00
|
|
|
Version: 6.12.2
|
|
|
|
Release: 0
|
|
|
|
Summary: Computer Sound Synthesis and Composition Program
|
2019-06-06 11:19:41 +02:00
|
|
|
License: GPL-2.0-or-later AND BSD-3-Clause AND PostgreSQL
|
2019-04-06 09:44:05 +02:00
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
|
|
|
Url: http://www.csounds.com
|
2019-06-06 11:19:41 +02:00
|
|
|
#Source: https://github.com/%%{name}/%%{name}/archive/%%{version}.tar.gz#/%%{name}-%%{version}.tar.gz
|
|
|
|
Source0: %{name}-%{version}-distibutable.tar.xz
|
2019-04-06 13:04:05 +02:00
|
|
|
Source1: README.SUSE
|
2019-06-05 16:26:03 +02:00
|
|
|
Source2: COPYING_gpl2+.txt
|
2019-06-06 11:19:41 +02:00
|
|
|
#Update and remove undistributable files from the sources and repack with this script
|
2019-06-06 11:26:16 +02:00
|
|
|
#Usage = sh pre_checkin.sh
|
2019-06-06 11:19:41 +02:00
|
|
|
Source3: pre_checkin.sh
|
2019-04-06 09:44:05 +02:00
|
|
|
# Default to using pulseaudio instead of portaudio
|
2019-04-06 13:04:05 +02:00
|
|
|
Patch2: csound-6.08-default-pulse.patch
|
2019-04-06 09:44:05 +02:00
|
|
|
# Use xdg-open to open a browser to view the manual
|
2019-04-06 13:04:05 +02:00
|
|
|
Patch4: csound-6.08-xdg-open.patch
|
|
|
|
Patch6: fluidsynth2.patch
|
2019-06-26 10:09:52 +02:00
|
|
|
Patch7: csound-rename-sndinfo.patch
|
2012-01-08 17:13:41 +01:00
|
|
|
BuildRequires: alsa-devel
|
|
|
|
BuildRequires: bison
|
2019-04-06 09:44:05 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: eigen3-devel
|
2012-01-08 17:13:41 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: fluidsynth-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: jack-devel
|
2019-04-07 10:00:32 +02:00
|
|
|
%if %{with java}
|
2019-04-06 13:04:05 +02:00
|
|
|
BuildRequires: java-devel-openjdk
|
2019-04-07 10:00:32 +02:00
|
|
|
%endif
|
2019-04-06 13:04:05 +02:00
|
|
|
BuildRequires: libboost_atomic-devel
|
|
|
|
BuildRequires: libboost_filesystem-devel
|
|
|
|
BuildRequires: libboost_locale-devel
|
|
|
|
BuildRequires: libboost_regex-devel
|
|
|
|
BuildRequires: libboost_thread-devel
|
2012-01-08 17:13:41 +01:00
|
|
|
BuildRequires: liblo-devel
|
|
|
|
BuildRequires: libsndfile-devel
|
2019-04-06 13:04:05 +02:00
|
|
|
BuildRequires: lua-devel
|
2012-01-08 17:13:41 +01:00
|
|
|
BuildRequires: portaudio-devel
|
|
|
|
BuildRequires: swig
|
2019-04-06 13:04:05 +02:00
|
|
|
%if %{with python}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
%endif
|
2007-01-23 01:13:25 +01:00
|
|
|
%if %support_fltk
|
2012-01-08 17:13:41 +01:00
|
|
|
BuildRequires: fltk-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: xorg-x11-devel
|
2007-01-23 01:13:25 +01:00
|
|
|
%endif
|
2019-04-06 13:04:05 +02:00
|
|
|
Recommends: %{name}-lang
|
2007-01-16 00:08:12 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
2019-04-06 09:44:05 +02:00
|
|
|
%global luaver %(lua -v | sed -r 's/Lua ([[:digit:]]+\\.[[:digit:]]+).*/\\1/')
|
2007-01-16 00:08:12 +01:00
|
|
|
%description
|
2019-06-11 09:39:25 +02:00
|
|
|
Csound is a software synthesis program. It is modular and
|
2007-01-16 00:08:12 +01:00
|
|
|
supports an unlimited amount of oscillators and filters.
|
|
|
|
|
2019-04-06 13:04:05 +02:00
|
|
|
%package -n libcsnd6-%{maj}_%{min}
|
2019-06-11 09:39:25 +02:00
|
|
|
Summary: Computer sound synthesis and composition library
|
2019-04-06 09:44:05 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2019-04-06 13:04:05 +02:00
|
|
|
%description -n libcsnd6-%{maj}_%{min}
|
2019-06-11 09:39:25 +02:00
|
|
|
Library for csound use.
|
|
|
|
Csound is a software synthesis program supporting oscillators and
|
|
|
|
filters.
|
2019-04-06 09:44:05 +02:00
|
|
|
|
2019-04-06 13:04:05 +02:00
|
|
|
%package -n libcsound64-%{maj}_%{min}
|
2019-06-11 09:39:25 +02:00
|
|
|
Summary: Computer sound synthesis and composition library
|
2019-04-06 09:44:05 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2019-04-06 13:04:05 +02:00
|
|
|
%description -n libcsound64-%{maj}_%{min}
|
2019-04-06 09:44:05 +02:00
|
|
|
Library for csound use
|
2019-06-11 09:39:25 +02:00
|
|
|
Csound is a software synthesis program supporting oscillators and
|
|
|
|
filters.
|
2019-04-06 09:44:05 +02:00
|
|
|
|
2019-04-06 13:04:05 +02:00
|
|
|
%package java-bindings
|
2019-06-11 09:39:25 +02:00
|
|
|
Summary: Java bindings for the Csound sound synthesis and composition library
|
2019-04-06 09:44:05 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2019-04-06 13:04:05 +02:00
|
|
|
%description java-bindings
|
2019-06-11 09:39:25 +02:00
|
|
|
Java bindings for csound use.
|
|
|
|
Csound is a software synthesis program supporting oscillators and
|
|
|
|
filters.
|
2019-04-06 09:44:05 +02:00
|
|
|
|
|
|
|
%package plugins
|
2019-06-11 09:39:25 +02:00
|
|
|
Summary: Plugins for csound
|
2019-04-06 09:44:05 +02:00
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
|
|
|
|
%description plugins
|
|
|
|
Plugins for csound
|
|
|
|
|
2012-01-09 02:01:55 +01:00
|
|
|
%package devel
|
2019-04-07 10:00:32 +02:00
|
|
|
Summary: Development files for Csound
|
2017-02-11 16:49:21 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-07-01 14:23:09 +02:00
|
|
|
%if %{with java}
|
2019-04-06 09:44:05 +02:00
|
|
|
Requires: lib_jcsound6 = %{version}
|
2019-07-01 14:23:09 +02:00
|
|
|
%endif
|
2019-04-06 13:04:05 +02:00
|
|
|
Requires: libcsnd6-%{maj}_%{min} = %{version}
|
|
|
|
Requires: libcsound64-%{maj}_%{min} = %{version}
|
2012-01-09 02:01:55 +01:00
|
|
|
|
|
|
|
%description devel
|
2019-04-07 10:00:32 +02:00
|
|
|
Development files for Csound, a sound synthesis program.
|
2012-01-09 02:01:55 +01:00
|
|
|
|
2019-04-06 13:04:05 +02:00
|
|
|
%lang_package
|
|
|
|
|
2007-01-16 00:08:12 +01:00
|
|
|
%prep
|
2019-04-06 09:44:05 +02:00
|
|
|
%setup -q
|
2019-06-26 10:09:52 +02:00
|
|
|
%autopatch -p1
|
2012-01-08 17:13:41 +01:00
|
|
|
# remove __DATE__ from source files, causes unnecessary rebuilds
|
2019-04-06 09:44:05 +02:00
|
|
|
sed -i 's:__DATE__:"":' Engine/musmon.c include/version.h Top/main.c
|
2012-01-08 17:13:41 +01:00
|
|
|
# copy readme
|
2019-06-05 16:26:03 +02:00
|
|
|
cp %{SOURCE1} %{SOURCE2} .
|
2019-06-05 16:09:42 +02:00
|
|
|
#These source files are undistributable
|
2019-06-06 11:19:41 +02:00
|
|
|
#rm -f Opcodes/scansyn*
|
|
|
|
head -n 28 util/SDIF/sdif.c > COPYING.PostgreSQL
|
2007-01-16 00:08:12 +01:00
|
|
|
|
|
|
|
%build
|
2019-04-06 09:44:05 +02:00
|
|
|
# Needed to link libbuchla.so
|
|
|
|
export CFLAGS="%{optflags} -lm"
|
|
|
|
export CXXFLAGS="%{optflags} -std=c++11"
|
|
|
|
|
2019-04-06 13:04:05 +02:00
|
|
|
%cmake \
|
2019-06-05 16:09:42 +02:00
|
|
|
-DBUILD_SCANSYN_OPCODES=OFF \
|
2019-04-06 13:04:05 +02:00
|
|
|
%if %{with python}
|
|
|
|
-DPYTHON_LIBRARY="%{_libdir}/libpython$(pkg-config python3 --modversion)$(python3-config --abiflags).so" \
|
|
|
|
-DPYTHON_INCLUDE_DIR="%{_includedir}/python$(pkg-config python3 --modversion)$(python3-config --abiflags)" \
|
|
|
|
%endif
|
2019-04-06 09:44:05 +02:00
|
|
|
-DNEED_PORTTIME:BOOL=OFF \
|
|
|
|
-DRPM_LUAVER:STRING=%{luaver} \
|
2012-01-08 17:13:41 +01:00
|
|
|
%if %{_lib} == "lib64"
|
2019-04-06 09:44:05 +02:00
|
|
|
-DUSE_LIB64:BOOL=ON
|
2007-01-23 01:13:25 +01:00
|
|
|
%else
|
2019-04-06 09:44:05 +02:00
|
|
|
-DUSE_LIB64:BOOL=OFF
|
2007-01-23 01:13:25 +01:00
|
|
|
%endif
|
2019-04-06 09:44:05 +02:00
|
|
|
|
|
|
|
make %{_smp_mflags}
|
2007-01-16 00:08:12 +01:00
|
|
|
|
|
|
|
%install
|
2019-04-06 09:44:05 +02:00
|
|
|
%cmake_install
|
2019-04-06 13:04:05 +02:00
|
|
|
#python bindings are wip
|
|
|
|
rm -rf %{buildroot}root
|
2019-04-06 09:44:05 +02:00
|
|
|
|
2012-01-08 17:13:41 +01:00
|
|
|
%fdupes -s %{buildroot}
|
2019-04-06 13:04:05 +02:00
|
|
|
%find_lang %{name}%{maj}
|
2007-01-16 00:08:12 +01:00
|
|
|
|
2019-04-06 13:04:05 +02:00
|
|
|
%post -n libcsnd6-%{maj}_%{min} -p /sbin/ldconfig
|
|
|
|
%postun -n libcsnd6-%{maj}_%{min} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libcsound64-%{maj}_%{min} -p /sbin/ldconfig
|
|
|
|
%postun -n libcsound64-%{maj}_%{min} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post java-bindings -p /sbin/ldconfig
|
|
|
|
%postun java-bindings -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc AUTHORS README.md README.SUSE Release_Notes
|
2019-06-06 11:19:41 +02:00
|
|
|
%license COPYING OOps/LICENCE.random COPYING_gpl2+.txt COPYING.PostgreSQL
|
2007-01-16 00:08:12 +01:00
|
|
|
%{_bindir}/*
|
2019-04-06 13:04:05 +02:00
|
|
|
|
|
|
|
%files -n libcsnd6-%{maj}_%{min}
|
|
|
|
%{_libdir}/libcsnd6.so.%{maj}.%{min}
|
|
|
|
|
|
|
|
%files -n libcsound64-%{maj}_%{min}
|
|
|
|
%{_libdir}/libcsound64.so.%{maj}.%{min}
|
|
|
|
|
2019-04-07 10:00:32 +02:00
|
|
|
%if %{with java}
|
2019-04-06 13:04:05 +02:00
|
|
|
%files java-bindings
|
|
|
|
%{_libdir}/lib_jcsound6.so
|
|
|
|
%{_libdir}/csnd6.jar
|
2019-04-07 10:00:32 +02:00
|
|
|
%endif
|
2019-04-06 13:04:05 +02:00
|
|
|
|
|
|
|
%files plugins
|
2012-01-08 17:13:41 +01:00
|
|
|
%{_libdir}/csound/
|
2007-01-16 00:08:12 +01:00
|
|
|
|
2012-01-09 02:01:55 +01:00
|
|
|
%files devel
|
|
|
|
%{_includedir}/csound/
|
2019-04-06 13:04:05 +02:00
|
|
|
%{_libdir}/libcs*.so
|
|
|
|
%{_datadir}/cmake/Csound/
|
|
|
|
|
|
|
|
%files lang -f %{name}%{maj}.lang
|
|
|
|
%defattr(-,root,root)
|
2019-04-07 10:00:32 +02:00
|
|
|
|
2007-03-28 02:19:53 +02:00
|
|
|
%changelog
|