[CLAM] install CLAM on mandrake

David García Garzón dgarcia at iua.upf.edu
Sun Jul 16 16:54:30 PDT 2006


Some further work was needed on the spec file in order not to use the cvs but 
the tarballs on the web.

Try the spec file attached. I have not the means to test it. So be patient if 
I added some error.

Did you already installed all the dependencies for Mandriva? Where they can be 
found?


On Monday 17 July 2006 00:30, patricia belucchi wrote:
> thank you for your response!
> when I executed "rpmbuild -ba clam.spec", I received the following error:
> "...
> + cvs co -dCLAM-0.91.0 CLAM
> cvs checkout: No CVSROOT specified!  Please use the `-d' option
> cvs [checkout aborted]: or set the CVSROOT environment variable.
> error: Bad exit status from /var/tmp/rpm-tmp.67808 (%prep)
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.67808 (%prep) "
>
> Before that, I had tried with the notes, but I received the same error in
> the fourth step:
>  (Go to ~/rpmbuild/SOURCES and export CLAM and CLAM_X cvs as CLAM-X-X.X.X\)
> with the following command: "cvs export -d CLAM-0.91.0 -D now CLAM"
>
> What value must be setted to the CVSROOT?
> thanks,
> pat.
>
> 2006/7/16, David García Garzón <dgarcia at iua.upf.edu>:
> > We don't have any Mandriva box available so we didn't test it but the
> > dependencies shouldn't be that different from the ones in fedora. You can
> > use
> > the spec file at CLAM/scons/libs/CLAM.spec to build the rpms for your
> > platform.
> >
> > If you try that, please report any problems or success. If you need
> > further
> > directions on how to build the rpms, please ask for them. Anyway, some
> > internal consume notes on building rpm's are available here:
> > http://iua-share.upf.es/wikis/clam_draft/RpmBuildingSpike
> > They might be useful.
> >
> > On Sunday 16 July 2006 03:16, Patricia Belucchi wrote:
> > > where can I read about install CLAM on mandrake?
> > >
> > > Is it possbile to install CLAM on mandrake? because in the INSTALL file
> >
> > it
> >
> > > is not mentioned.
> > >
> > > I also tried to install it on AGNULA but the "scons" command was not
> > > found.
> > >
> > > thanks
> >
> > --
> > David García Garzón
> > (Work) dgarcia at iua dot upf anotherdot es
> > (Home) vokimon at telefonica adot net
> > http://www.iua.upf.edu/~dgarcia

-- 
David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
(Home) vokimon at telefonica adot net
http://www.iua.upf.edu/~dgarcia
-------------- next part --------------
Summary: CLAM - C++ Library for Audio and Music
Name: CLAM
Version: 0.91.0
Release: 3
License: GPL
Packager: CLAM Team <clam at iua.upf.edu>
URL: http://clam.iua.upf.edu
Group: System Environment/Libraries
Source0: http://clam.iua.upf.edu/download/src/CLAM-0.91.0.tar.gz
Source1: http://clam.iua.upf.edu/download/src/CLAM-Annotator-0.3.2.tar.gz
Source2: http://clam.iua.upf.edu/download/src/CLAM-NetworkEditor-0.3.1.tar.gz
Source3: http://clam.iua.upf.edu/download/src/CLAM-SMSTools-0.4.1.tar.gz
#Patch: eject-2.0.2-buildroot.patch
BuildRoot: /var/tmp/%{name}-buildroot
%description
CLAM is a framework to develop audio and music applications in C++.
It provides tools to perform advanced analysis, transformations and synthesis,
visualization for audio and music related objects, and other tools that are
useful to abstract target platform for most tasks in an audio applications
such as audio devices, file formats, threading...

%package devel
Summary: CLAM - C++ Library for Audio and Music - development files
Group: Development/Libraries
%description devel
CLAM is a framework to develop audio and music applications in C++.
It provides tools to perform advanced analysis, transformations and synthesis,
visualization for audio and music related objects, and other tools that are
useful to abstract target platform for most tasks in an audio applications
such as audio devices, file formats, threading...

This package includes the development files

%package applications
Summary: CLAM Applications
Group: Applications/Multimedia
Version: 0.91.0
%description applications
CLAM is a framework to develop audio and music applications in C++.
It provides tools to perform advanced analysis, transformations and synthesis,
visualization for audio and music related objects, and other tools that are
useful to abstract target platform for most tasks in an audio applications
such as audio devices, file formats, threading...

This package includes the flag ship applications:
- SMSTools: A sound authoring tool using spectral transfomations.
- NetworkEditor: A CLAM network patching tool to build audio and music processing cores for applications.
- Prototyper: An aplication builder that joins CLAM networks with QtDesigner interfaces.
- Annotator: An Annotation tool to extract, and edit information from the music.

%prep
#%setup
#%patch -p1 -b .buildroot
export CLAM=CLAM-0.91.0
export ANNOTATOR=CLAM-Annotator-0.3.2
export SMSTOOLS=CLAM-SMSTools-0.4.1
export NETWORKEDITOR=CLAM-NetworkEditor-0.3.1

cd $RPM_BUILD_DIR
rm -rf CLAM*

#export USECVS=true

# If you have not CVS acces uncomment the following lines
if [ "$USECVS"=="true" ]
then 
	cvs co -d$CLAM CLAM
	cvs co -d$ANNOTATOR CLAM_Annotator
	cvs co -d$SMSTOOLS CLAM_SMSTools
	cvs co -d$NETWORKEDITOR CLAM_NetworkEditor
else
	cd $RPM_SOURCE_DIR/
	wget http://clam.iua.upf.edu/download/src/$CLAM.tar.gz
	wget http://clam.iua.upf.edu/download/src/$ANNOTATOR.tar.gz
	wget http://clam.iua.upf.edu/download/src/$SMSTOOLS.tar.gz
	wget http://clam.iua.upf.edu/download/src/$NETWORKEDITOR.tar.gz
	cd ..
	tar xvfz $RPM_SOURCE_DIR/$CLAM.tar.gz
	tar xvfz $RPM_SOURCE_DIR/$ANNOTATOR.tar.gz
	tar xvfz $RPM_SOURCE_DIR/$SMSTOOLS.tar.gz
	tar xvfz $RPM_SOURCE_DIR/$NETWORKEDITOR.tar.gz
fi

%build
echo Testing whether NETWORKEDITOR is $NETWORKEDITOR
export CLAM=CLAM-0.91.0
export ANNOTATOR=CLAM-Annotator-0.3.2
export SMSTOOLS=CLAM-SMSTools-0.4.1
export NETWORKEDITOR=CLAM-NetworkEditor-0.3.1
export INSTALLDIR=$RPM_BUILD_ROOT/usr
export SCONSTOOLSDIR=$RPM_BUILD_DIR/$CLAM/scons/sconstools/
mkdir -p $INSTALLDIR
export QTDIR=/usr/lib/qt-3.3
cd $RPM_BUILD_DIR/$CLAM/scons/libs
scons configure xmlbackend=xmlpp with_osc_support=no release=1
scons prefix=$INSTALLDIR 
scons install prefix=$INSTALLDIR 

cd $RPM_BUILD_DIR/$NETWORKEDITOR
scons install_prefix=$INSTALLDIR clam_prefix=$INSTALLDIR clam_sconstools=$SCONSTOOLSDIR release=1

cd $RPM_BUILD_DIR/$SMSTOOLS
scons install_prefix=$INSTALLDIR clam_prefix=$INSTALLDIR clam_sconstools=$SCONSTOOLSDIR release=1

export QTDIR=/usr/lib/qt4

cd $RPM_BUILD_DIR/$ANNOTATOR/vmqt
scons install_prefix=$INSTALLDIR clam_prefix=$INSTALLDIR clam_sconstools=$SCONSTOOLSDIR release=1

cd $RPM_BUILD_DIR/$ANNOTATOR
scons install_prefix=$INSTALLDIR clam_prefix=$INSTALLDIR clam_sconstools=$SCONSTOOLSDIR clam_vmqt4_path=vmqt release=1

%install
export CLAM=CLAM-0.91.0
export ANNOTATOR=CLAM-Annotator-0.3.2
export SMSTOOLS=CLAM-SMSTools-0.4.1
export NETWORKEDITOR=CLAM-NetworkEditor-0.3.1
export INSTALLDIR=$RPM_BUILD_ROOT/usr
export SCONSTOOLSDIR=$RPM_BUILD_DIR/$CLAM/scons/sconstools/
export QTDIR=/usr/lib/qt-3.3
rm -rf $RPM_BUILD_ROOT
mkdir -p $INSTALLDIR
cd $RPM_BUILD_DIR/$CLAM/scons/libs
scons install
cd $RPM_BUILD_DIR/$SMSTOOLS
scons install
cd $RPM_BUILD_DIR/$NETWORKEDITOR
scons install
export QTDIR=/usr/lib/qt4
cd $RPM_BUILD_DIR/$ANNOTATOR
scons install
# TODO: install it properly on the scons
mkdir -p $RPM_BUILD_ROOT/usr/lib/qt-3.3/plugins/
mv $RPM_BUILD_ROOT/usr/bin/designer $RPM_BUILD_ROOT/usr/lib/qt-3.3/plugins/
rm -f $RPM_BUILD_ROOT/usr/lib/.sconsign
$SCONSTOOLSDIR/changeExampleDataPath.py $RPM_BUILD_ROOT/usr/share/smstools /usr/share/smstools
$SCONSTOOLSDIR/changeExampleDataPath.py $RPM_BUILD_ROOT/usr/share/networkeditor /usr/share/networkeditor

%clean
#rm -rf $RPM_BUILD_ROOT


%files
#%defattr(-,root,root)
#%doc README COPYING ChangeLog.txt
/usr/lib/*.so*
/usr/lib/pkgconfig

%files devel
/usr/include

%files applications
/usr/bin
/usr/share
/usr/lib/qt-3.3/plugins/designer/libCLAMWidgets.so

%changelog
* Mon May 21 2006 CLAM Team <clam at iua.upf.edu> 
- First try

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-users-clam-project.org/attachments/20060717/87be5183/attachment-0002.pgp>


More information about the clam-users mailing list