File arts.spec of Package arts

# spec file for package arts
# Copyright (c) 2013 SUSE LINUX Products 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

Name:           arts
BuildRequires:  alsa-devel
BuildRequires:  audiofile-devel
BuildRequires:  automake
BuildRequires:  glib2-devel
BuildRequires:  jack-devel
BuildRequires:  libdrm-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libvorbis-devel
BuildRequires:  qt3-devel
BuildRequires:  readline-devel
BuildRequires:  update-desktop-files
Obsoletes:      kdelibs3-artsd
Provides:       kdelibs3-artsd
# bug437293
%ifarch ppc64
Obsoletes:      arts-64bit
Summary:        Modular Software Synthesizer
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Players
PreReq:         permissions
Version:        1.5.10
Release:        0
Source0:        %{name}-%{version}.tar.bz2
Source1:        artswrapper.7.gz
Source2:        baselibs.conf
Patch2:         no-informational-messages.diff
Patch4:         resmgr-oss.diff
Patch5:         arts-vorbis-fix.dif
Patch7:         fortify_source.patch
Patch8:         arts-start-on-demand.diff
Patch9:         avoid_la_files.diff
Patch10:        arts-allautomakes.diff
Patch11:        arts-glibc27.diff
Patch12:        arts-acinclude.patch
Patch13:        arts-aarch64.diff
Patch14:        arts-automake_add_missing.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

A modular software synthesizer that generates realtime audio streams,
includes midi support, is easily extendable, and uses CORBA for
separation of GUI and synthesis.

%package devel
# usefiles /opt/kde3/bin/artsc-config /opt/kde3/bin/mcopidl
Summary:        Include Files and Libraries mandatory for Development.
Group:          Development/Libraries/Other
Provides:       kdelibs3:/opt/kde3/include/artsc/artsc.h
Requires:       alsa-devel
Requires:       arts = %version
Requires:       audiofile-devel
Requires:       glib2-devel
Requires:       jack-devel
Requires:       libogg-devel
Requires:       libstdc++-devel
Requires:       libvorbis-devel
Requires:       qt3-devel

%description devel
A modular software synthesizer that generates realtime audio streams,
supports MIDI, is easily extendable, and uses CORBA for separation of
the GUI and synthesis.

%package gmcop
# usesubdirs gmcop
Summary:        A Modular Software Synthesizer
Group:          Productivity/Multimedia/Sound/Players

%description gmcop
A modular software synthesizer that generates real-time audio streams,
supports midi, is easily extendable, and uses CORBA for separation of
GUI and synthesis.

%setup -q
%if %suse_version < 1010
%patch10 -p1
%patch12 -p1
%patch13 -p1

# no unsermake because of build dependencies hell
sed -i 's|1.5|xxx|g' admin/
make -f admin/Makefile.common cvs
FLAGS="--with-alsa --disable-rpath"
%ifarch s390 alpha
   FLAGS="--without-alsa "
%if %suse_version < 1030
export PKG_CONFIG_PATH=/opt/gnome/%_lib/pkgconfig/
%ifnarch armv4l
    --enable-final \
    $FLAGS \
    --enable-threading  \
    --prefix=/opt/kde3 \
    --with-qt-dir=/usr/lib/qt3 \
    --libdir=/opt/kde3/%_lib \
    --with-qt-libraries=/usr/lib/qt3/%_lib --disable-debug
%ifarch %ix86
# I trust in arts runtime checking ...
echo "#define HAVE_X86_SSE 1" >> config.h
#make -C flow/gsl gslconfig.h
make %{?_smp_mflags}

%ifarch x86_64 s390x
mkdir -p $RPM_BUILD_ROOT/opt/kde3/lib/
ln -sf ../lib64/mcop $RPM_BUILD_ROOT/opt/kde3/lib/mcop
mkdir -p -m 755 $RPM_BUILD_ROOT/%_mandir/man7
cp %SOURCE1 $RPM_BUILD_ROOT/%_mandir/man7/

# Create /etc/ - duplicating kdelibs3.conf, which is not here
mkdir -p $RPM_BUILD_ROOT/etc/
cat > $RPM_BUILD_ROOT/etc/ <<EOF
%if "%{_lib}" != "lib"

%set_permissions /opt/kde3/bin/artswrapper

%postun -p /sbin/ldconfig

%post gmcop -p /sbin/ldconfig

%postun gmcop
%verify_permissions -e /opt/kde3/bin/artswrapper

%dir /opt/kde3
%dir /opt/kde3/bin
%verify(not mode) /opt/kde3/bin/artswrapper
%dir /opt/kde3/%_lib
# these need to be in the base package for lt_dlopen()
%ifarch x86_64 s390x
%config /etc/

%files gmcop

%files devel
%dir /opt/kde3/include

openSUSE Build Service is sponsored by