LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File psychosynth.spec of Package psychosynth (Project games)

#
# 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

%description
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.

%prep
%setup -q
%patch0
%patch1
%if 0%{?suse_version} > 1320
%patch2 -p1
%endif

%build
export SUSE_ASNEEDED=0
#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 \
           --disable-psynth3d

make %{?_smp_mflags}

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

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

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

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

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

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
#%%{_bindir}/psynth3d
%{_bindir}/psynth-cli
%{_datadir}/%{name}/
%{_mandir}/man1/*
#%%{_datadir}/applications/psynth3d.desktop
%{_datadir}/pixmaps/%{name}.png

%files -n libpsynth0
%defattr(-,root,root)
%{_libdir}/libpsynth*.so.0*

%files -n libpsynth-devel
%defattr(-,root,root)
%{_includedir}/psynth/
%{_libdir}/libpsynth*.so
%exclude %{_libdir}/libpsynth*.la
%{_libdir}/pkgconfig/libpsynth.pc

%changelog