A new user interface for you!

File psychosynth.spec of Package psychosynth

# spec file for package psychosynth
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

%define         soname 0
Name:           psychosynth
Version:        0.3.0
Release:        0
Summary:        Synthesizer inspired by Reactable
License:        GPL-3.0+
Group:          Productivity/Multimedia/Sound/Mixers
Url:            http://www.psychosynth.com/
Source:         ftp://ftp.gnu.org/gnu/psychosynth/%{name}-%{version}.tar.gz
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0:         %{name}-desktop.patch
# PATCH-FIX-OPENSUSE -- on openSUSE some names of directories and includes are different
Patch1:         psychosynth-build-paths.patch
# PATCH-FIX-UPSTREAM psychosynth-missing-dso.patch -- Adding missing DSO commands needed
Patch2:         psychosynth-missing-dso.patch
BuildRequires:  alsa-devel
BuildRequires:  boost-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  jack-devel
BuildRequires:  libOIS-devel
BuildRequires:  libOgreMain-devel
BuildRequires:  libcegui-devel
BuildRequires:  liblo-devel
BuildRequires:  libsamplerate-devel
BuildRequires:  libsndfile-devel
BuildRequires:  libvorbis-devel
BuildRequires:  soundtouch-devel
BuildRequires:  pkgconfig(libxml-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

A free software synthesizer inspired by the ideas of the Reactable.

%package -n     libpsynth0
Summary:        Library for PsychoSynth
Group:          Productivity/Multimedia/Sound/Mixers

%description -n libpsynth0
This package contains libraries for PsychoSynth.

%package -n     libpsynth-devel
Summary:        Development files for PsychoSynth
Group:          Development/Libraries/Other
Requires:       libpsynth0 = %{version}

%description -n libpsynth-devel
This package contains development files for PsychoSynth.

%setup -q
%if 0%{?suse_version} > 1320
%patch2 -p1

#autoreconf -fi
export LDFLAGS="-lpthread"
## we disable build of psynth3d since it is broken and need to be ported to cegui 0.8+
%configure --disable-static \

make %{?_smp_mflags}

rm -rf %{buildroot}%{_datadir}/pixmaps/%{name}.xpm

## remove GUI parts
rm -rf %{buildroot}%{_datadir}/applications/psynth3d.desktop \

%fdupes %{buildroot}%{_includedir}/psynth

%post -n   libpsynth%{soname} -p /sbin/ldconfig

%postun -n libpsynth%{soname} -p /sbin/ldconfig


%files -n libpsynth0

%files -n libpsynth-devel
%exclude %{_libdir}/libpsynth*.la