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
|
|
|
#
|
2017-02-11 16:49:21 +01:00
|
|
|
# Copyright (c) 2017 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.
|
|
|
|
|
2007-01-16 00:08:12 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-01-08 17:13:41 +01:00
|
|
|
%define support_fltk 0
|
2008-10-06 16:39:59 +02:00
|
|
|
|
2007-01-16 00:08:12 +01:00
|
|
|
Name: csound
|
2012-01-08 17:13:41 +01:00
|
|
|
BuildRequires: alsa-devel
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: fluidsynth-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: jack-devel
|
|
|
|
BuildRequires: liblo-devel
|
|
|
|
BuildRequires: libsndfile-devel
|
|
|
|
BuildRequires: portaudio-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: scons
|
|
|
|
BuildRequires: swig
|
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
|
2012-11-06 19:16:03 +01:00
|
|
|
Version: 5.18.02
|
2012-01-08 17:13:41 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Computer Sound Synthesis and Composition Program
|
2012-11-06 19:16:03 +01:00
|
|
|
License: GFDL-1.2 and LGPL-2.1+ and MIT
|
2007-01-16 00:08:12 +01:00
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
2012-02-27 14:14:19 +01:00
|
|
|
Url: http://www.csounds.com
|
2012-01-08 17:13:41 +01:00
|
|
|
Source: Csound%{version}.tar.gz
|
2007-01-16 00:08:12 +01:00
|
|
|
Source1: README.SuSE
|
2012-01-08 17:13:41 +01:00
|
|
|
Patch3: %{name}-strncat-fix.patch
|
2007-01-16 00:08:12 +01:00
|
|
|
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.
|
|
|
|
|
2012-01-09 02:01:55 +01:00
|
|
|
%package devel
|
2017-02-11 16:49:21 +01:00
|
|
|
Summary: Development files for Csound, a sound synthesis program
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-01-09 02:01:55 +01:00
|
|
|
Requires: %{name} = %{version}
|
2012-01-09 02:02:34 +01:00
|
|
|
Provides: %{name}-devel-static = %{version}
|
2012-01-09 02:01:55 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for Csound.
|
|
|
|
|
2007-01-16 00:08:12 +01:00
|
|
|
%prep
|
2007-06-11 23:17:41 +02:00
|
|
|
%setup -q -n Csound%{version}
|
2008-10-06 16:39:59 +02:00
|
|
|
%patch3
|
2012-01-08 17:13:41 +01:00
|
|
|
# remove __DATE__ from source files, causes unnecessary rebuilds
|
|
|
|
sed -i 's:__DATE__:"":' Engine/musmon.c frontends/CsoundVST/CsoundVstFltk.cpp Top/main.c
|
|
|
|
# copy readme
|
2007-01-23 01:13:25 +01:00
|
|
|
cp %{SOURCE1} .
|
|
|
|
# fix encoding
|
2012-01-08 17:13:41 +01:00
|
|
|
iconv -f latin1 -t utf8 readme-csound5.txt > README
|
2007-06-11 23:17:41 +02:00
|
|
|
test -f custom.py || cp custom.py.mkg custom.py
|
2007-01-16 00:08:12 +01:00
|
|
|
|
|
|
|
%build
|
2012-01-08 17:13:41 +01:00
|
|
|
%if %{_lib} == "lib64"
|
2007-01-23 01:13:25 +01:00
|
|
|
args="Word64=1"
|
|
|
|
%else
|
|
|
|
args=""
|
|
|
|
%endif
|
2009-07-17 18:02:07 +02:00
|
|
|
scons prefix=%{_prefix} buildRelease=1 $args \
|
2012-01-08 17:13:41 +01:00
|
|
|
customCCFLAGS="%{optflags} -fno-strict-aliasing" \
|
|
|
|
customCXXFLAGS="%{optflags} -fno-strict-aliasing"
|
2007-01-16 00:08:12 +01:00
|
|
|
|
|
|
|
%install
|
2012-01-08 17:13:41 +01:00
|
|
|
%if %{_lib} == "lib64"
|
2007-01-23 01:13:25 +01:00
|
|
|
args="--word64"
|
|
|
|
%else
|
|
|
|
args=""
|
|
|
|
%endif
|
2012-01-08 17:13:41 +01:00
|
|
|
./install.py --prefix=%{_prefix} --instdir=%{buildroot} $args
|
2017-01-16 22:04:46 +01:00
|
|
|
rm -f %{buildroot}%{_prefix}/csound5-*.md5sums %{buildroot}%{_bindir}/uninstall-csound5
|
2012-01-08 17:13:41 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/csound
|
2007-01-23 01:13:25 +01:00
|
|
|
# rename conflicting binary names
|
2012-01-08 17:13:41 +01:00
|
|
|
mv %{buildroot}%{_bindir}/sndinfo %{buildroot}%{_bindir}/csndinfo
|
|
|
|
mv %{buildroot}%{_bindir}/extract %{buildroot}%{_bindir}/csound-extract
|
|
|
|
%fdupes -s %{buildroot}
|
|
|
|
%find_lang %{name}5
|
2007-01-16 00:08:12 +01:00
|
|
|
|
2012-01-08 17:13:41 +01:00
|
|
|
%files -f %{name}5.lang
|
2007-01-16 00:08:12 +01:00
|
|
|
%defattr(-,root,root)
|
2012-01-08 17:13:41 +01:00
|
|
|
%doc AUTHORS COPYING ChangeLog README README.SuSE
|
2007-01-16 00:08:12 +01:00
|
|
|
%{_bindir}/*
|
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
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/csound/
|
|
|
|
%{_libdir}/libcsound.a
|
|
|
|
|
2007-03-28 02:19:53 +02:00
|
|
|
%changelog
|