forked from pool/csound
Accepting request 1161423 from home:AndreasStieger:branches:multimedia:apps
rename extract to csound-extract to avoid name conflict with libextractor (boo#45347) OBS-URL: https://build.opensuse.org/request/show/1161423 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/csound?expand=0&rev=58
This commit is contained in:
parent
ff4631ec97
commit
cf463a4d42
16
csound-rename-extract.patch
Normal file
16
csound-rename-extract.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
References: https://github.com/csound/csound/issues/985
|
||||||
|
https://bugzilla.opensuse.org/show_bug.cgi?id=45347
|
||||||
|
|
||||||
|
Index: csound-6.18.1/util1/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- csound-6.18.1.orig/util1/CMakeLists.txt
|
||||||
|
+++ csound-6.18.1/util1/CMakeLists.txt
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
#extra utilities
|
||||||
|
|
||||||
|
make_utility(scsort sortex/smain.c)
|
||||||
|
-make_utility(extract sortex/xmain.c)
|
||||||
|
+make_utility(csound-extract sortex/xmain.c)
|
||||||
|
|
||||||
|
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG OR MSVC)
|
||||||
|
make_utility(cs csd_util/cs.c)
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 21 21:09:19 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||||
|
|
||||||
|
- renamed extract to csound-extract to avoid name conflict with
|
||||||
|
libextractor, again (boo#45347), add csound-rename-extract.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 26 19:27:59 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
|
Wed Apr 26 19:27:59 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
51
csound.spec
51
csound.spec
@ -2,6 +2,7 @@
|
|||||||
# spec file for package csound
|
# spec file for package csound
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
|
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,17 +19,15 @@
|
|||||||
|
|
||||||
%define py3version %(pkg-config python3 --modversion)
|
%define py3version %(pkg-config python3 --modversion)
|
||||||
%define support_fltk 1
|
%define support_fltk 1
|
||||||
%bcond_with python
|
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1500
|
%if 0%{?suse_version} > 1500
|
||||||
%bcond_with java
|
%bcond_with java
|
||||||
%else
|
%else
|
||||||
%bcond_with java
|
%bcond_with java
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define maj 6
|
%define maj 6
|
||||||
%define min 0
|
%define min 0
|
||||||
|
%global luaver %(lua -v | sed -r 's/Lua ([[:digit:]]+\\.[[:digit:]]+).*/\\1/')
|
||||||
|
%bcond_with python
|
||||||
Name: csound
|
Name: csound
|
||||||
Version: 6.18.1
|
Version: 6.18.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -37,7 +36,6 @@ License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
|||||||
Group: Productivity/Multimedia/Sound/Utilities
|
Group: Productivity/Multimedia/Sound/Utilities
|
||||||
URL: http://www.csounds.com
|
URL: http://www.csounds.com
|
||||||
Source0: https://github.com/csound/csound/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/csound/csound/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
#Source0: %{name}-%{version}.tar.xz
|
|
||||||
Source1: README.SUSE
|
Source1: README.SUSE
|
||||||
Source2: COPYING_gpl2+.txt
|
Source2: COPYING_gpl2+.txt
|
||||||
# Default to using pulseaudio instead of portaudio
|
# Default to using pulseaudio instead of portaudio
|
||||||
@ -45,6 +43,7 @@ Patch2: csound-6.08-default-pulse.patch
|
|||||||
# Use xdg-open to open a browser to view the manual
|
# Use xdg-open to open a browser to view the manual
|
||||||
Patch4: csound-6.08-xdg-open.patch
|
Patch4: csound-6.08-xdg-open.patch
|
||||||
Patch5: csound-rename-sndinfo.patch
|
Patch5: csound-rename-sndinfo.patch
|
||||||
|
Patch6: csound-rename-extract.patch
|
||||||
BuildRequires: alsa-devel
|
BuildRequires: alsa-devel
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -55,9 +54,6 @@ BuildRequires: flex
|
|||||||
BuildRequires: fluidsynth-devel
|
BuildRequires: fluidsynth-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: jack-devel
|
BuildRequires: jack-devel
|
||||||
%if %{with java}
|
|
||||||
BuildRequires: java-devel-openjdk
|
|
||||||
%endif
|
|
||||||
BuildRequires: libboost_atomic-devel
|
BuildRequires: libboost_atomic-devel
|
||||||
BuildRequires: libboost_filesystem-devel
|
BuildRequires: libboost_filesystem-devel
|
||||||
BuildRequires: libboost_locale-devel
|
BuildRequires: libboost_locale-devel
|
||||||
@ -68,17 +64,18 @@ BuildRequires: libsndfile-devel
|
|||||||
BuildRequires: lua-devel
|
BuildRequires: lua-devel
|
||||||
BuildRequires: portaudio-devel
|
BuildRequires: portaudio-devel
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
|
Recommends: %{name}-lang
|
||||||
|
%if %{with java}
|
||||||
|
BuildRequires: java-devel-openjdk
|
||||||
|
%endif
|
||||||
%if %{with python}
|
%if %{with python}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
%endif
|
%endif
|
||||||
%if %support_fltk
|
%if %{support_fltk}
|
||||||
BuildRequires: fltk-devel
|
BuildRequires: fltk-devel
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
%endif
|
%endif
|
||||||
Recommends: %{name}-lang
|
|
||||||
|
|
||||||
%global luaver %(lua -v | sed -r 's/Lua ([[:digit:]]+\\.[[:digit:]]+).*/\\1/')
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Csound is a software synthesis program. It is modular and
|
Csound is a software synthesis program. It is modular and
|
||||||
@ -86,6 +83,7 @@ supports an unlimited amount of oscillators and filters.
|
|||||||
|
|
||||||
%package -n libcsnd6-%{maj}_%{min}
|
%package -n libcsnd6-%{maj}_%{min}
|
||||||
Summary: Computer sound synthesis and composition library
|
Summary: Computer sound synthesis and composition library
|
||||||
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libcsnd6-%{maj}_%{min}
|
%description -n libcsnd6-%{maj}_%{min}
|
||||||
@ -95,6 +93,7 @@ filters.
|
|||||||
|
|
||||||
%package -n libcsound64-%{maj}_%{min}
|
%package -n libcsound64-%{maj}_%{min}
|
||||||
Summary: Computer sound synthesis and composition library
|
Summary: Computer sound synthesis and composition library
|
||||||
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libcsound64-%{maj}_%{min}
|
%description -n libcsound64-%{maj}_%{min}
|
||||||
@ -104,6 +103,7 @@ filters.
|
|||||||
|
|
||||||
%package java-bindings
|
%package java-bindings
|
||||||
Summary: Java bindings for the Csound sound synthesis and composition library
|
Summary: Java bindings for the Csound sound synthesis and composition library
|
||||||
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description java-bindings
|
%description java-bindings
|
||||||
@ -113,6 +113,7 @@ filters.
|
|||||||
|
|
||||||
%package plugins
|
%package plugins
|
||||||
Summary: Plugins for csound
|
Summary: Plugins for csound
|
||||||
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||||
Group: Productivity/Multimedia/Other
|
Group: Productivity/Multimedia/Other
|
||||||
|
|
||||||
%description plugins
|
%description plugins
|
||||||
@ -120,6 +121,7 @@ Plugins for csound
|
|||||||
|
|
||||||
%package -n python3-csound
|
%package -n python3-csound
|
||||||
Summary: Csound opcodes for python
|
Summary: Csound opcodes for python
|
||||||
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||||
Group: Productivity/Multimedia/Other
|
Group: Productivity/Multimedia/Other
|
||||||
|
|
||||||
%description -n python3-csound
|
%description -n python3-csound
|
||||||
@ -136,12 +138,13 @@ HRTF datafiles and Soundfont for csound
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for Csound
|
Summary: Development files for Csound
|
||||||
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: libcsnd6-%{maj}_%{min} = %{version}
|
||||||
|
Requires: libcsound64-%{maj}_%{min} = %{version}
|
||||||
%if %{with java}
|
%if %{with java}
|
||||||
Requires: %{name}-java-bindings = %{version}
|
Requires: %{name}-java-bindings = %{version}
|
||||||
%endif
|
%endif
|
||||||
Requires: libcsnd6-%{maj}_%{min} = %{version}
|
|
||||||
Requires: libcsound64-%{maj}_%{min} = %{version}
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Development files for Csound, a sound synthesis program.
|
Development files for Csound, a sound synthesis program.
|
||||||
@ -188,39 +191,41 @@ cp -v OOps/README.md README.OOps
|
|||||||
%fdupes -s %{buildroot}
|
%fdupes -s %{buildroot}
|
||||||
%find_lang %{name}%{maj}
|
%find_lang %{name}%{maj}
|
||||||
|
|
||||||
%post -n libcsnd6-%{maj}_%{min} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libcsnd6-%{maj}_%{min}
|
||||||
%postun -n libcsnd6-%{maj}_%{min} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libcsound64-%{maj}_%{min}
|
||||||
|
%ldconfig_scriptlets java-bindings
|
||||||
%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
|
%files
|
||||||
%doc AUTHORS README.md README.SUSE Release_Notes README.OOps
|
%doc AUTHORS README.md README.SUSE Release_Notes README.OOps
|
||||||
%license COPYING COPYING_gpl2+.txt COPYING.PostgreSQL
|
%license COPYING COPYING_gpl2+.txt COPYING.PostgreSQL
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
%{_bindir}/csound-extract
|
||||||
|
|
||||||
%files -n libcsnd6-%{maj}_%{min}
|
%files -n libcsnd6-%{maj}_%{min}
|
||||||
|
%license COPYING COPYING_gpl2+.txt COPYING.PostgreSQL
|
||||||
%{_libdir}/libcsnd6.so.%{maj}.%{min}
|
%{_libdir}/libcsnd6.so.%{maj}.%{min}
|
||||||
|
|
||||||
%files -n libcsound64-%{maj}_%{min}
|
%files -n libcsound64-%{maj}_%{min}
|
||||||
|
%license COPYING COPYING_gpl2+.txt COPYING.PostgreSQL
|
||||||
%{_libdir}/libcsound64.so.%{maj}.%{min}
|
%{_libdir}/libcsound64.so.%{maj}.%{min}
|
||||||
|
|
||||||
%if %{with java}
|
%if %{with java}
|
||||||
%files java-bindings
|
%files java-bindings
|
||||||
|
%license COPYING COPYING_gpl2+.txt COPYING.PostgreSQL
|
||||||
%{_libdir}/lib_jcsound6.so
|
%{_libdir}/lib_jcsound6.so
|
||||||
%{_libdir}/csnd6.jar
|
%{_libdir}/csnd6.jar
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files plugins
|
%files plugins
|
||||||
|
%license COPYING COPYING_gpl2+.txt COPYING.PostgreSQL
|
||||||
%{_libdir}/csound/
|
%{_libdir}/csound/
|
||||||
|
|
||||||
%files samples
|
%files samples
|
||||||
|
%license COPYING COPYING_gpl2+.txt COPYING.PostgreSQL
|
||||||
%{_datadir}/samples/
|
%{_datadir}/samples/
|
||||||
|
|
||||||
%files -n python3-csound
|
%files -n python3-csound
|
||||||
|
%license COPYING COPYING_gpl2+.txt COPYING.PostgreSQL
|
||||||
%if 0%{?suse_version} > 1500
|
%if 0%{?suse_version} > 1500
|
||||||
%{python_sitearch}/ctcsound.py
|
%{python_sitearch}/ctcsound.py
|
||||||
%else
|
%else
|
||||||
@ -228,10 +233,12 @@ cp -v OOps/README.md README.OOps
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
%license COPYING COPYING_gpl2+.txt COPYING.PostgreSQL
|
||||||
%{_includedir}/csound/
|
%{_includedir}/csound/
|
||||||
%{_libdir}/libcs*.so
|
%{_libdir}/libcs*.so
|
||||||
%{_datadir}/cmake/Csound/
|
%{_datadir}/cmake/Csound/
|
||||||
|
|
||||||
%files lang -f %{name}%{maj}.lang
|
%files lang -f %{name}%{maj}.lang
|
||||||
|
%license COPYING COPYING_gpl2+.txt COPYING.PostgreSQL
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user