[Clam-devel] Re: clam 0.98 src and suse packages
David García Garzón
dgarcia at iua.upf.edu
Fri Feb 23 12:32:22 PST 2007
I went somewhat further but not so much. I used a modified version of Tony's
spec file to build the package. I tried both, directly with rpmbuild and
mock.
The modifications where:
- commenting out the desktop entries related stuff which seems SuSe specific
- adjust the versions to mach svn revisions
- change the package version 0pa1 to 1
- adapt some package names to the fedora ones
alsa-devel ->_ alsa-lib-devel
jack-devel -> jack-audio-connection-kit-devel
qt3-devel -> qt-devel
mad-devel -> libmad-devel
Xerces-c-devel -> xerces-c-devel
te_latex -> none (right now just html doxygen)
ghostscript-library -> none (same reason)
Mesa-devel -> ??
- i disabled portaudio since the version in fedora 18 is not supported
I would like to have a common spec file so i don't know if there is some way
of using one or another depending on the target.
I also had to add livna repository to mock in order to get libmad working.
I launched it and... well... hope to get it build on monday :-(
On Friday 23 February 2007 18:46:24 Fernando Lopez-Lezcano wrote:
> On Fri, 2007-02-23 at 18:11 +0100, David García Garzón wrote:
> > At last the mock init worked. I don't know how long it has run but at
> > last i have a FC6 chroot and now i will try to build some packages with
> > it.
>
> If it took a really long time but finished then the reason might be that
> you are talking to a very slow fedora mirror. You could try editing the
> mock configuration files and explicitly pointing to a fedora mirror near
> you that has good bandwidth (that's where all the packages come from).
>
> > The setup i used is someway complex. I could not manage to run mock in
> > ubuntu but i run mock chrooting from ubuntu to my existing FC6 partition.
> > Being sda5 my fedora partition i did
> >
> > ubuntu$ sudo mount /dev /media/sda5/dev --bind
> > ubuntu$ sudo chroot /media/sda5
> > fedora# mount /proc
> > fedora# mount /sys
> > fedora# vim /etc/groups <- to add myuser to the mock group
> > fedora# su myuser
> > fedora$ mock -r fedora-4-i386-core init
> > .... some hours waiting
>
> Wow... yes, "somewhat complex" indeed... :-)
>
> -- Fernando
>
> > On Friday 23 February 2007 03:46:59 David García Garzón wrote:
> > > Ups... Sorry for not warning you about that. It seems that you don't
> > > have the latests changes (svn 9740) we did yesterday on
> > > NetworkEditor/SConstruct. Update your working copy and hopefully it
> > > will work (or i hope so...).
> > >
> > > Those changes makes moc use the $QTDIR/include when available
> > > and /usr/include/qt4 when not (Debian based). Before the changes, it
> > > used /usr/include/qt4 for any linux.
> > >
> > > After all the only -I that we needed is /usr/include which is not on
> > > the moc command line but it is the first one on the g++ commandline.
> > >
> > > The commit also removed a useless dependency on cppunit as suggested by
> > > Toni.
> > >
> > > On Dijous 22 Febrer 2007, Fernando Lopez-Lezcano wrote:
> > > > On Thu, 2007-02-22 at 13:54 -0800, Fernando Lopez-Lezcano wrote:
> > > > > On Thu, 2007-02-22 at 21:51 +0100, David García Garzón wrote:
> > > > > > On Thursday 22 February 2007 19:02:38 Fernando Lopez-Lezcano
wrote:
> > > > > > > On Thu, 2007-02-22 at 18:54 +0100, David García Garzón wrote:
> > > > > > > > We did a commit for the NetworkEditor to use the QTDIR when
> > > > > > > > available. In FedoraCore you should define QTDIR=/usr
> > > > > > >
> > > > > > > Do you also use QTINC? Because that seems to be part of the
> > > > > > > problem in this case (ie: includes are in /usr/include/Qt, not
> > > > > > > /usr/qt4/include)
> > > > > >
> > > > > > No. We tested it today in a FC6 and it works just by defining
> > > > > > QTDIR=/usr. Yes, at last we have a FC to test on!
> > > >
> > > > Good!
> > > >
> > > > > > Don't get messed with /usr/include/Qt. It is like
> > > > > > /usr/include/QtCore. I mean, in debian the same dir is at
> > > > > > /usr/include/qt4/Qt. You don't have to specify it anywhere.
> > > > > >
> > > > > > In summary: Annotator and NetworkEditor need QTDIR=/usr but CLAM
> > > > > > and SMSTools need QTDIR=/usr/lib/qt3.3 and that should be all.
> > > >
> > > > Should, but apparently is not :-(
> > > > I must be missing something trivial (this is for version 0.4.4, just
> > > > in case). I'm including the output of the build process just in case
> > > > somebody spots the problem.
> > > > The scons invocation is:
> > > >
> > > > scons install install_prefix=/var/tmp/scons-build/usr
> > > > clam_prefix=/usr
> > > >
> > > > and I am exporting QTDIR=/usr
> > > > It fails here:
> > > >
> > > > /usr/bin/moc-qt4 -I/usr/include/qt4 -o ...
> > > >
> > > > /usr/include/qt4 does not exist.
> > > >
> > > > If I add more '-I" statements to this last invocation (borrowed from
> > > > the previous invocation of gcc) I can make it eventually link without
> > > > errors...
-------------- next part --------------
# Copyright (c) 2007 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni at links2linux.de
# Packmangroup: Multimedia
# Packmanpackagename: clam
# Packman: Toni Graffy
# Packmandepends: alsa fltk jack ladspa libsndfile mad
# norootforbuild
%define _prefix /usr
%define CLAM_version 0.99.0~svn09745
%define NetworkEditor_version 0.4.4~svn09745
%define SMSTools_version 0.4.6~svn09745
%define Annotator_version 0.3.7~svn09745
Summary: CLAM - C++ Library for Audio and Music
Name: clam
Version: %{CLAM_version}
Release: 1
License: GPL
URL: http://clam.iua.upf.edu
Group: System/Libraries
Source0: CLAM-%{CLAM_version}.tar.gz
Source1: NetworkEditor-%{NetworkEditor_version}.tar.gz
Source2: SMSTools-%{SMSTools_version}.tar.gz
Source3: Annotator-%{Annotator_version}.tar.gz
#Patch0: %{name}-networkeditor-SConstruct.diff
#Patch1: %{name}-scons-libs-modconf-audioio.py.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
#BuildRequires: alsa-devel # SuSe
BuildRequires: alsa-lib-devel
BuildRequires: doxygen
BuildRequires: fftw-devel
BuildRequires: fltk-devel
BuildRequires: gcc-c++
#BuildRequires: ghostscript-library # SuSe
BuildRequires: graphviz
BuildRequires: id3lib-devel
#BuildRequires: jack-devel # SuSe
BuildRequires: jack-audio-connection-kit-devel
BuildRequires: ladspa
BuildRequires: libjpeg-devel
BuildRequires: libogg-devel
BuildRequires: libsndfile-devel
BuildRequires: libvorbis-devel
#BuildRequires: mad-devel # SuSe
BuildRequires: libmad-devel
#BuildRequires: Mesa-devel # SuSe
#BuildRequires: oscpack # Disabled
BuildRequires: pkgconfig
#BuildRequires: portaudio-devel
#BuildRequires: qt3-devel # SuSe
BuildRequires: qt-devel
#BuildRequires: update-desktop-files
#BuildRequires: te_latex
#BuildRequires: Xerces-c-devel # SuSe
BuildRequires: xerces-c-devel
BuildRequires: scons
Requires: alsa
Requires: fftw
Requires: fltk
Requires: jack
Requires: mad
#Requires: portaudio
#Requires: Xerces-c
%description
CLAM stands for C++ Library for Audio and Music and in Catalan means something
like a "continuous sound produced by a large number of people as to show
approval or disapproval of a given event" It is the best name we could find
after long discussions and it is certainly much better than its original name
(MTG-Classes).
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...
##########################################
##########################################
#debug_package
##########################################
##########################################
%package devel
Summary: CLAM - C++ Library for Audio and Music - development files
Group: Development/Libraries/C and C++
Version: %{CLAM_version}
Requires: %{name} = %{CLAM_version}
Requires: fftw-devel
Requires: fltk-devel
Requires: gcc-c++
Requires: id3lib-devel
Requires: jack-devel
Requires: ladspa
Requires: libogg-devel
Requires: libsndfile-devel
Requires: libvorbis-devel
Requires: mad-devel
Requires: pkgconfig
#Requires: portaudio-devel
Requires: qt3-devel
Requires: qt-devel
%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 contains the files needed to develop with the following libraries:
clam-core, clam-processing, clam-audioio, clam-vmfl and clam-vmqt.
##########################################
##########################################
%package doc
Summary: Contains the clam-framework documentation and some example programs
Group: Documentation/Other
Version: %{CLAM_version}
%description doc
This package contains the framework documentation and some example programs.
##########################################
##########################################
%package networkeditor
Summary: The Network Editor is the application for editing CLAM networks
Group: Productivity/Multimedia/Sound/Utilites
Version: %{NetworkEditor_version}
Requires: %{name} = %{CLAM_version}
%description networkeditor
CLAM Network Editor, prototyping tool for CLAM.
The CLAM Network Editor is a tool for editing CLAM processing networks.
Those processing networks can become the processing core of an audio
application by using the CLAM::NetworkPlayer class in such program, or by
using the CLAM Prototyper to link the network to a Qt Designer interface.
This packages provides both the Network Editor and the Prototyper.
It also provides a plugin for Qt Designer which adds widgets to display
several kinds of CLAM audio objects from a running network.
##########################################
##########################################
%package networkeditor-examples
Summary: Examples for the CLAM Network Editor
Group: Productivity/Multimedia/Sound/Utilites
Version: %{NetworkEditor_version}
Requires: %{name} = %{CLAM_version}
%description networkeditor-examples
This package provides examples of networks, some of them with their user
interface to be executed also by the Prototyper.
Those examples include, among others, some sinusoidal plus residual
modelling (SMS) transformations and tonal (chords, notes) analysis.
##########################################
##########################################
%package smstools
Summary: CLAM SMSTools, SMS based audio authoring tool
Group: Productivity/Multimedia/Sound/Utilites
Version: %{SMSTools_version}
Requires: %{name} = %{CLAM_version}
%description smstools
CLAM SMSTools, SMS based audio authoring tool.
SmsTools is an audio authoring application which allows to analyze the audio
using Spectral Model Synthesis (SMS) and perform pipelined transformations on
such representation.
SMS representation makes easy to perform quality effects such as gender change,
pitch shift, time streetch, morphing...
##########################################
##########################################
%package smstools-examples
Summary: Examples for CLAM SMSTools
Group: Productivity/Multimedia/Sound/Utilites
Version: %{SMSTools_version}
Requires: %{name} = %{CLAM_version}
%description smstools-examples
This package provides examples of smstools.
##########################################
##########################################
%package annotator
Summary: The CLAM Annotator - A tool that can be used to visualize, check and modify music information extracted from audio
Group: Productivity/Multimedia/Sound/Utilites
Version: %{Annotator_version}
Requires: %{name} = %{CLAM_version}
%description annotator
The CLAM Annotator is a tool that can be used to visualize, check and
modify music information extracted from audio: low level features, note
segmentation, chords, structure... The tool is intended to be useful for
the music information retrieval research whenever you need to:
* Supervise and correct the results of automated audio feature extraction
algorithms.
* Generate manually edited annotations of audio as training examples or ground
truth for those algorithms.
The CLAM Annotator is not tied to a fixed description scheme (the set of
attributes). You can define the working attribute set by providing an XML
description schema definition. A sample description scheme and an extractor
program are provided with the Annotator but you could implement your own
one with different algorithms and attributes. Also tools are provided to
select and join attributes from the output of several description sources.
Other key features are:
* Attribute types:
Free text, Enumeration, Bounded float, Bounded integer, Frame Division,
Segmentations (Sizeless, Gapless, Overlapless or Free), ...
* Several time segmentations can be defined at once
* Each segment can have its own attributes
* Auralization for the segmentations (click on the beggining)
* Auralization for the low-level descriptor (magnitude to freq)
##########################################
##########################################
%package annotator-examples
Summary: The CLAM Annotator - examples
Group: Productivity/Multimedia/Sound/Utilites
Version: %{Annotator_version}
Requires: %{name} = %{CLAM_version}
%description annotator-examples
This package contains example projects for CLAM Annotator to do.
##########################################
##########################################
%prep
%setup -q -n CLAM-%{CLAM_version} -a1 -a2 -a3
%build
%__install -dm 755 %{buildroot}%{_prefix}
# Setup for parallel builds
numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
if [ "$numprocs" = "0" ]; then
numprocs=1
fi
# needs further investigation :(
numprocs=1
#################
# build core-libs
#################
cd scons/libs
export QTDIR=/usr/lib/qt3
scons -j$numprocs configure \
prefix=%{buildroot}%{_prefix} \
release=1 \
double=0 \
xmlbackend=xercesc \
with_ladspa_support=1 \
with_osc_support=0 \
with_jack_support=1 \
with_fftw=1 \
with_nr_fft=1 \
with_sndfile=1 \
with_oggvorbis=1 \
with_mad=1 \
with_id3=1 \
with_alsa=1 \
with_portaudio=0 \
with_portmidi=1 \
scons -j$numprocs \
prefix=%{buildroot}%{_prefix}
scons -j$numprocs \
install \
prefix=%{buildroot}%{_prefix}
cd ../..
# and now doxygenate CLAM stuff
doxygen ./doxygen.cfg
#####################
# build NetworkEditor
#####################
cd NetworkEditor-%{NetworkEditor_version}
export QTDIR=/usr/lib/qt4
scons -j$numprocs \
install_prefix=%{buildroot}%{_prefix} \
clam_prefix=%{buildroot}%{_prefix} \
clam_sconstools=%{buildroot}%{_datadir}/%{name}/sconstools \
qt_plugins_install_path=/lib/qt4/plugins/designer \
release=1
cd ..
################
# build SMSTools
################
cd SMSTools-%{SMSTools_version}
export QTDIR=/usr/lib/qt3
scons -j$numprocs \
install_prefix=%{buildroot}%{_prefix} \
clam_prefix=%{buildroot}%{_prefix} \
clam_sconstools=%{buildroot}%{_datadir}/%{name}/sconstools \
release=1
cd ..
################
# build Annotator
################
cd Annotator-%{Annotator_version}
export QTDIR=/usr/lib/qt4
scons -C./vmqt \
install_prefix=%{buildroot}%{_prefix} \
clam_prefix=%{buildroot}%{_prefix} \
clam_sconstools=%{buildroot}%{_datadir}/%{name}/sconstools \
release=1
scons -j$numprocs \
install_prefix=%{buildroot}%{_prefix} \
clam_prefix=%{buildroot}%{_prefix} \
clam_sconstools=%{buildroot}%{_datadir}/%{name}/sconstools \
release=1
cd ..
%install
%__install -dm 755 %{buildroot}%{_datadir}/pixmaps
# Setup for parallel builds
numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
if [ "$numprocs" = "0" ]; then
numprocs=1
fi
################
# install NetworkEditor
################
cd NetworkEditor-%{NetworkEditor_version}
export QTDIR=/usr/lib/qt4
scons -j$numprocs \
install \
prefix=%{buildroot}%{_prefix}
# icon
%__install -m 644 resources/NetworkEditor-icon.png \
%{buildroot}%{_datadir}/pixmaps/%{name}-networkeditor.png
cd ..
##################
# install SMSTools
##################
cd SMSTools-%{SMSTools_version}
export QTDIR=/usr/lib/qt3
scons -j$numprocs \
install \
prefix=%{buildroot}%{_prefix}
# icon
%__install -m 644 resources/SMSTools-icon.png \
%{buildroot}%{_datadir}/pixmaps/%{name}-smstools.png
cd ..
###################
# install Annotator
###################
cd Annotator-%{Annotator_version}
export QTDIR=/usr/lib/qt4
scons -j$numprocs \
install \
prefix=%{buildroot}%{_prefix}
# icon
%__install -m 644 src/images/annotator-logo.png \
%{buildroot}%{_datadir}/pixmaps/%{name}-annotator.png
cd ..
##########################
# adjust path for examples
##########################
for i in annotator networkeditor smstools; do
%{buildroot}%{_datadir}/%{name}/sconstools/changeExampleDataPath.py \
%{buildroot}%{_datadir}/$1 \
%{_datadir}/$1
done
##############
# menu-entries
##############
#for i in Annotator NetworkEditor Prototyper SMSTools;do
# %__sed -i -e 's|/usr/share/pixmaps/||g' \
# %{buildroot}%{_datadir}/applications/$i.desktop
# %__sed -i -e 's|.xpm|.png|g' \
# %{buildroot}%{_datadir}/applications/$i.desktop
# %__sed -i -e 's|Application;||g' \
# %{buildroot}%{_datadir}/applications/$i.desktop
# %__sed -i -e 's|Audio;||g' \
# %{buildroot}%{_datadir}/applications/$i.desktop
#done
#%suse_update_desktop_file NetworkEditor AudioVideo Music
#%suse_update_desktop_file Prototyper AudioVideo Music
#%suse_update_desktop_file SMSTools AudioVideo Music
#%suse_update_desktop_file Annotator AudioVideo Music
%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc CHANGES INSTALL
%{_libdir}/libclam_*.so.*
%files devel
%defattr(-,root,root)
%doc CHANGES INSTALL
%dir %{_includedir}/CLAM
%{_includedir}/CLAM/*
%{_libdir}/libclam_*.so
%{_libdir}/pkgconfig/*
%{_datadir}/%{name}/sconstools/*.py*
%files doc
%defattr(-,root,root)
%doc CHANGES INSTALL
%doc doxygen/*
%files networkeditor
%defattr(-,root,root)
%doc NetworkEditor-%{NetworkEditor_version}/CHANGES
%doc NetworkEditor-%{NetworkEditor_version}/COPYING
%doc NetworkEditor-%{NetworkEditor_version}/INSTALL
%doc NetworkEditor-%{NetworkEditor_version}/README
%{_bindir}/NetworkEditor
%{_bindir}/Prototyper
%{_libdir}/qt4/plugins/designer/*
%{_mandir}/man1/NetworkEditor*
%{_mandir}/man1/Prototyper*
%dir %{_datadir}/networkeditor
%{_datadir}/networkeditor/NetworkEditor-icon.svg
%dir %{_datadir}/networkeditor/i18n
%{_datadir}/networkeditor/i18n/*.qm
%{_datadir}/mime/packages/clam-network.xml
%{_datadir}/mimelnk/application/vnd.clam.network.desktop
%{_datadir}/applications/NetworkEditor.desktop
%{_datadir}/applications/Prototyper.desktop
%{_datadir}/pixmaps/clam-networkeditor.png
%files networkeditor-examples
%defattr(-,root,root)
%dir %{_datadir}/networkeditor
%dir %{_datadir}/networkeditor/example-data
%{_datadir}/networkeditor/example-data/*
%files smstools
%defattr(-,root,root)
%doc SMSTools-%{SMSTools_version}/CHANGES
%doc SMSTools-%{SMSTools_version}/COPYING
%doc SMSTools-%{SMSTools_version}/INSTALL
%{_bindir}/SMSTools
%{_mandir}/man1/SMSTools*
%{_datadir}/applications/SMSTools.desktop
%{_datadir}/pixmaps/clam-smstools.png
%files smstools-examples
%defattr(-,root,root)
%dir %{_datadir}/smstools
%dir %{_datadir}/smstools/example-data
%{_datadir}/smstools/example-data/*
%files annotator
%defattr(-,root,root)
%doc Annotator-%{Annotator_version}/CHANGES
%doc Annotator-%{Annotator_version}/COPYING
%doc Annotator-%{Annotator_version}/INSTALL
%doc Annotator-%{Annotator_version}/README
%{_bindir}/Annotator
%{_bindir}/BocaClient
%{_bindir}/ChordExtractor
%{_bindir}/ClamExtractorExample
%dir %{_datadir}/annotator
%dir %{_datadir}/annotator/i18n
%{_datadir}/annotator/i18n/*.qm
%{_mandir}/man1/Annotator*
%{_mandir}/man1/ClamExtractorExample*
%{_datadir}/applications/Annotator.desktop
%{_datadir}/pixmaps/clam-annotator.png
%files annotator-examples
%defattr(-,root,root)
%dir %{_datadir}/annotator
%dir %{_datadir}/annotator/example-data
%{_datadir}/annotator/example-data/*
%changelog
* Wed Feb 14 2007 Toni Graffy <toni at links2linux.de> - 0.98.0-0.pm.1
- update to 0.98
* Wed Jan 31 2007 Toni Graffy <toni at links2linux.de> - 0.97.0-0.pm.1
- initial build 0.97.0
More information about the clam-devel
mailing list