File arts.spec of Package arts

#
# spec file for package arts (Version 1.5.10)
#
# Copyright (c) 2010 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           arts
BuildRequires:  alsa-devel audiofile-devel glib2-devel jack-devel libjpeg-devel libvorbis-devel qt3-devel readline-devel update-desktop-files
%if %suse_version > 1000
BuildRequires:  libdrm-devel
%endif
License:        GPLv2+
Group:          Productivity/Multimedia/Sound/Players
Obsoletes:      kdelibs3-artsd
Provides:       kdelibs3-artsd
# bug437293
%ifarch ppc64
Obsoletes:      arts-64bit
%endif
#
Summary:        Modular Software Synthesizer
PreReq:         permissions
Version:        1.5.10
Release:        16
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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



Authors:
--------
    Stefan Westerfeld <stefan@space.twc.de>

%package devel
License:        GPLv2+
# 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:       qt3-devel arts = %version glib2-devel jack-devel libogg-devel libvorbis-devel audiofile-devel libstdc++-devel
Requires:       alsa-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.



Authors:
--------
    Stefan Westerfeld <stefan@space.twc.de>

%package gmcop
License:        GPLv2+
# 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.



Authors:
--------
    Stefan Westerfeld <stefan@space.twc.de>

%prep
%setup -q
%patch2
%if %suse_version < 1010
%patch4
%endif
%patch5
%patch7
%patch8
%patch9
%patch10 -p1
%patch11
%patch12 -p1
# no unsermake because of build dependencies hell
make -f admin/Makefile.common cvs

%build
FLAGS="--with-alsa --disable-rpath"
%ifarch s390 alpha
   FLAGS="--without-alsa "
%endif
%if %suse_version < 1030
export PKG_CONFIG_PATH=/opt/gnome/%_lib/pkgconfig/
%endif
CXXFLAGS="$CXXFLAGS $RPM_OPT_FLAGS -DNDEBUG" CFLAGS="$CXXFLAGS" ./configure \
%ifnarch armv4l
    --enable-final \
%endif
    $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
%endif
# broken automake ?
make -C flow/gsl gslconfig.h
# broken automake ?
make %{?jobs:-j%jobs}

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

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_ldconfig
%run_permissions

%postun
%run_ldconfig

%post gmcop
%run_ldconfig

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

%files
%defattr(-,root,root,755)
%doc COPYING.LIB COPYING
%dir /opt/kde3
%dir /opt/kde3/bin
/opt/kde3/bin/artscat
/opt/kde3/bin/arts[dpsr]*
%verify(not mode) /opt/kde3/bin/artswrapper
%dir /opt/kde3/%_lib
/opt/kde3/%_lib/libarts*.so.*
/opt/kde3/%_lib/libkmedia2*.so.*
/opt/kde3/%_lib/libmcop.so.*
/opt/kde3/%_lib/libmcop_mt.so.*
/opt/kde3/%_lib/libqtmcop.so.*
/opt/kde3/%_lib/libsoundserver_idl.so.*
/opt/kde3/%_lib/libx11globalcomm.so.*
# these need to be in the base package for lt_dlopen()
/opt/kde3/%_lib/*.so
/opt/kde3/%_lib/mcop
%ifarch x86_64 s390x
/opt/kde3/lib
%endif
%{_mandir}/man7/artswrapper.7.gz

%files gmcop
%defattr(-,root,root)
/opt/kde3/%_lib/libgmcop.so.*

%files devel
%defattr(-,root,root)
/opt/kde3/bin/artsc-config
/opt/kde3/bin/mcopidl
%dir /opt/kde3/include
/opt/kde3/include/*
/opt/kde3/%_lib/*.la

%changelog
openSUSE Build Service is sponsored by