Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1572070
 поиск   регистрация   авторизация 
 
Группа :: Система/Серверы
Пакет: arts

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

%undefine __libtoolize
%define qtdir /usr/lib/qt3
%add_findprov_lib_path %_libdir/kde3

%define build_gmcop 1
%define unstable 0
%def_disable static
%if_enabled static
%define buildstatic 1
%else
%define buildstatic 0
%endif

Name: arts
Version: 1.3.2
Release: alt0.0.M24
Serial: 1

Source: %name-%version.tar.bz2
#Source: arts-1.1.94.tar.bz2

# RH

Patch1: arts-1.2.0-glib2.patch
Patch2: arts-1.1.4-debug.patch

# SuSE

Patch22: arts-vorbis-fix.dif

# ALT

Patch100: arts-1.0.1-mcop_home.patch
Patch101: arts-1.0.2-tmpdir.patch
Patch102: arts-1.2.2-flags.patch
Patch103: arts-1.1.4-no_ltdl.patch
Patch104: arts-1.1.4-la2so.patch
Patch105: arts-1.2.3-glib-ldflags.patch
Patch106: arts-1.2.3-detect-esd.patch

Group: System/Servers
Summary: aRts (analog realtime synthesizer) - the KDE sound system
License: ARTISTIC BSD GPL_V2 LGPL_V2 QPL_V1.0

Requires: lib%name = %serial:%version-%release
Conflicts: lib%name-devel-static < %serial:%version-%release
Conflicts: kdemultimedia-arts <= 3.1.4-alt2 kdemultimedia-noatun <= 3.1.4-alt2

# Automatically added by buildreq on Thu Apr 08 2004 (-bi)

#BuildRequires: XFree86-devel XFree86-libs esound-devel fontconfig freetype2 gcc-c++ gcc-g77 glib2-devel libalsa-devel libaudio-devel libaudiofile-devel libjpeg-devel libmad-devel libogg-devel libpng-devel libqt3-devel libstdc++-devel libvorbis-devel pkgconfig zlib-devel

BuildRequires: XFree86-devel XFree86-libs fontconfig freetype2 gcc-c++
BuildRequires: glib2-devel libalsa-devel libaudio-devel libaudiofile-devel
BuildRequires: libjpeg-devel libmad-devel libogg-devel libpng-devel
BuildRequires: libstdc++-devel libvorbis-devel pkgconfig zlib-devel
#BuildRequires: jackit-devel
BuildRequires: libqt3-devel-cxx = %__gcc_version_base libqt3-devel > 3.0
# hack against apt
BuildRequires: libqt3-qsa > 3.0 libqt3-qsa-devel > 3.0

%description
aRts is a short form for "analog realtime synthesizer". The idea of the whole
thing is to create/process sound using small modules which do certain tasks.
These may be create a waveform (oscillators), play samples, filter data, add
signals, perform effects like delay/flanger/chorus, or output the data to the
soundcard.

%package -n lib%name
Group: Graphical desktop/KDE
Summary: The libraries for arts

%description -n lib%name
Libraries needed for arts.

%package -n lib%name-devel
Group: Development/C++
Summary: Development files for arts
Requires: lib%name = %serial:%version-%release libalsa-devel
#
%description -n lib%name-devel
Development files for arts.

%package -n lib%name-devel-static
Group: Development/KDE and QT
Summary: Static libraries for arts
Requires: lib%name-devel = %serial:%version-%release
#
Provides: kdelibs-sound-devel-static = %serial:%version-%release
Obsoletes: kdelibs-sound-devel-static
#
%description -n lib%name-devel-static
Static libraries for arts.

%package -n lib%name-qtmcop
Group: Graphical desktop/KDE
Summary: Qt specific arts sound stuff
Requires: lib%name = %serial:%version-%release
Requires: %{get_dep libqt3}
Provides: kdelibs-sound = %serial:%version-%release
Obsoletes: kdelibs-sound <= %serial:%version-%release
Provides: lib%name-qt = %serial:%version-%release
Obsoletes: lib%name-qt <= %serial:%version-%release
#
%description -n lib%name-qtmcop
Libraries for sound support for Qt library

%package -n lib%name-qtmcop-devel
Group: Development/KDE and QT
Summary: Development files for arts and Qt
Requires: lib%name = %serial:%version-%release
Requires: lib%name-devel = %serial:%version-%release
Requires: lib%name-qt = %serial:%version-%release
Requires: libqt3-devel
Provides: kdelibs-sound-devel = %serial:%version-%release
Obsoletes: kdelibs-sound-devel <= %serial:%version-%release
Provides: lib%name-qt-devel = %serial:%version-%release
Obsoletes: lib%name-qt-devel <= %serial:%version-%release
#
%description -n lib%name-qtmcop-devel
Development files for sound support for Qt library

%package -n lib%name-qtmcop-devel-static
Group: Development/KDE and QT
Summary: Static libraries for development with arts and Qt
Requires: lib%name-qt-devel = %serial:%version-%release
#Requires: libqt3-devel-static
Provides: kdelibs-sound-devel-static = %serial:%version-%release
Obsoletes: kdelibs-sound-devel-static <= %serial:%version-%release
Provides: lib%name-qt-devel-static = %serial:%version-%release
Obsoletes: lib%name-qt-devel-static <= %serial:%version-%release
#
%description -n lib%name-qtmcop-devel-static
Static libraries for sound support for Qt library

%package -n lib%name-gmcop
Group: System/Libraries
Summary: Glib specific art sound stuff
Requires: lib%name = %serial:%version-%release
#
%description -n lib%name-gmcop
Libraries for sound support for Glib library

%package -n lib%name-gmcop-devel
Group: Development/C++
Summary: Development files for arts and Glib
Requires: lib%name = %serial:%version-%release lib%name-gmcop = %serial:%version-%release
#
%description -n lib%name-gmcop-devel
Development files for sound support for Glib library

%package -n lib%name-gmcop-devel-static
Group: Development/C++
Summary: Static libraries for development with arts and Glib
Requires: lib%name-gmcop-devel = %serial:%version-%release
Requires: glib2-devel-static
#
%description -n lib%name-gmcop-devel-static
Static libraries for sound support for Glib library


%prep
%setup -q -n %name-%version
#%%setup -q -n %name-1.1.94
###%patch1 -p1
%patch2 -p1
#
#%patch22 -p0
#
#%patch100 -p1
%patch101 -p1
%patch102 -p1
#%patch103 -p1
%patch104 -p1
%patch105 -p1
#%patch106 -p1

# Workaround for legacy auto* tools

#[ -x /usr/bin/autoconf_2.5? ] && ln -s /usr/bin/autoconf-2.5? autoconf
#[ -x /usr/bin/autoheader_2.5? ] && ln -s /usr/bin/autoheader-2.5? autoheader
#[ -x /usr/bin/aclocal-1.6 ] && ln -s /usr/bin/aclocal-1.5 aclocal
#[ -x /usr/bin/automake-1.6 ] && ln -s /usr/bin/automake-1.5 automake
export PATH=`pwd`:$PATH
# End workaround

subst "s/\.la/.so/g" admin/acinclude.m4.in
for f in `find -type f -name \*.mcopclass`
do
   subst 's/\(Library=.*\)\.la$/\1.so/' "$f"
done

make -f admin/Makefile.common cvs

%build
rm -rf %buildroot
export PATH=`pwd`:$PATH
export QTDIR=%qtdir
export FLAGS="$RPM_OPT_FLAGS -I/usr/include/Xft2"
export LDFLAGS="-L%buildroot/%_libdir"
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
%if !%build_gmcop
export DO_NOT_COMPILE=gmcop
%endif

%configure \
                   --enable-final \
           --disable-debug \
%if %unstable
           --enable-debug=full \
%endif
                   --enable-shared \
   %{subst_enable static} \
                   --enable-fast-install=yes \
                   --disable-embedded \
                   --disable-palmtop \
                   --disable-rpath \
                   --enable-mitshm \
                   --enable-arts-gsl \
                   --disable-libfam \
                   --enable-pcre \
                   --with-gnu-ld \
                   --with-pic \
                   --with-xinerama \
                   --with-distribution="%distribution %_target_cpu" \
                   --with-alsa \
                   --with-ipv6-lookup=auto \
                   --x-includes=/usr/X11R6/include \
                   --x-libraries=/usr/X11R6/%_lib \
   --program-transform-name=""


%make_build

%install
export PATH=`pwd`:$PATH
%make_build DESTDIR=$RPM_BUILD_ROOT install

chmod a+x $RPM_BUILD_ROOT%_libdir/*

%post -n libarts
%post_ldconfig
%postun -n libarts
%postun_ldconfig

%post -n libarts-qtmcop
%post_ldconfig
%postun -n libarts-qtmcop
%postun_ldconfig

%post -n libarts-gmcop
%post_ldconfig
%postun -n libarts-gmcop
%postun_ldconfig


%files
%_bindir/artscat
%_bindir/artsd*
%_bindir/artsp*
%_bindir/artss*
%_bindir/artsw*
%_bindir/artsr*
#%_bindir/testdhandle

%files -n libarts
%_libdir/libartsc.so*
%_libdir/libartscbackend.so*
%_libdir/libartsdsp.so*
%_libdir/libartsdsp_st.so*
%_libdir/libartsflow.so*
%_libdir/libartsflow_idl.so*
%_libdir/libartswavplayobject.so*
%_libdir/libartsgslplayobject.so*
%_libdir/libkmedia2.so*
%_libdir/libkmedia2_idl.so*
%_libdir/libsoundserver_idl.so*
%_libdir/libmcop.so*
%_libdir/libmcop_mt.so*
%_libdir/libx11globalcomm.so*
#
%dir %_libdir/mcop/
%_libdir/mcop/*.mcopclass
%_libdir/mcop/*.mcoptype
#
%dir %_libdir/mcop/Arts
%_libdir/mcop/Arts/*.mcopclass

%files -n libarts-devel
%_bindir/artsc-config
%_bindir/mcopidl
#
%dir %_includedir/arts/
%_includedir/arts/gsl
%_includedir/arts/*.h
%exclude %_includedir/arts/*?iomanager.h

%_includedir/arts/*.idl
#
%dir %_includedir/artsc/
%_includedir/artsc/*.h

%files -n lib%name-qtmcop
%_libdir/libqtmcop.so*

%files -n lib%name-qtmcop-devel
%_includedir/arts/qiomanager.h

%if %build_gmcop
%files -n lib%name-gmcop
%_libdir/libgmcop.so*
%files -n lib%name-gmcop-devel
%_includedir/arts/giomanager.h
%endif

%if %buildstatic
%files -n libarts-devel-static
%_libdir/libartsc.a
%_libdir/libartscbackend.a
%_libdir/libartsdsp.a
%_libdir/libartsdsp_st.a
%_libdir/libartsflow.a
%_libdir/libartsflow_idl.a
%_libdir/libartswavplayobject.a
%_libdir/libartsgslplayobject.a
%_libdir/libkmedia2.a
%_libdir/libkmedia2_idl.a
%_libdir/libsoundserver_idl.a
%_libdir/libmcop.a
%_libdir/libmcop_mt.a
%_libdir/libx11globalcomm.a
%files -n lib%name-qtmcop-devel-static
%_libdir/libqtmcop.a
%files -n lib%name-gmcop-devel-static
%_libdir/libgmcop.a
%endif

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005