Hi Lenny!
A new version of noteedit is released. I have adapted the
spec file and the patch I sent you. It requires a new version
of libtse3 whose spec file I included as well.
General question to building tse3:
I have tried again to use the %configure macro but it fails:
libtoolize: `/usr/share/aclocal/libtool.m4' is serial 40, less than 42 in `aclocal.m4'
To remain compatible, you should update your `aclocal.m4' by running aclocal.
I suspect libtool is not current enough ? I tried to run aclocal
before running the %configure script but that doesn't help :-(
In this case it seems that automake does not work well togehter
with libtool.
Later I get the following error:
ltconfig: unrecognized option `--build=i586-mandrake-linux-gnu'
Try `ltconfig --help' for more information.
The problem seems to be the libtoolize program which starts
just before the ./configure. Any ideas what to do to get
%configure running again ? The archives for the packages are
available from the URLs in the spec files.
One note: By comparing the created ltconfig with the original
ltconfig I found out that the original one was created with
libtool 1.3c (current cooker 1.3.3). From the diffs:
--- ltconfig Mon Jul 10 12:09:15 2000
+++ ../../ltconfig Mon Aug 28 23:38:17 2000
@@ -179,10 +169,10 @@
# Constants:
PROGRAM=ltconfig
PACKAGE=libtool
-VERSION=1.3c
-TIMESTAMP=" (1.662 2000/01/13 00:52:59)"
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS
1>&5'
+VERSION=1.3.3
+TIMESTAMP=" (1.385.2.181 1999/07/02 15:49:11)"
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5'
+ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5'
rm="rm -f"
help="Try \`$progname --help' for more information."
To me it seems that the 1.3c ltconfig is newer than the one from cooker ?
Best regards,
Reinhard Katzmann
--
E-Mail: [EMAIL PROTECTED]
Current Projects: Linux-Installation Mandrake 7.1 (99% finished)
Improvements of Driver for Tevion Tablet
Java-DB and -Interface for Pincity (95 % finished)
GnuPG Public Key available on request.
Name: tse3
Summary: a portable open source 'sequencer engine' written in C++
Version: 0.0.8
Release: 1mdk
Copyright: GPL
Group: Multimedia
Source: %{name}-%{PACKAGE_VERSION}.tar.gz
#Patch: %{name}-%{version}.patch.bz2
URL: http://tse3.sourceforge.net
BuildRoot: /var/tmp/%{name}-%version
Prefix: /usr
#Requires: qt >= 2.1
%description
TSE3 is a portable open source 'sequencer engine' written in C++. It
provides programmers with rich and powerful sequencing capabilities.
It is a 'sequencer engine' becuase it provides the actual driving force
elements of a sequencer but provides no form of interface.
TSE3 is a mature library based on a lot of experience. Versions of TSE
have been in use for a number of years. Whilst not providing the user
interface, it provides a lot of assistance to a UI, attempting to provide
as much functionality as possible in as generic a manner as possible.
TSE3 is a product of Trax Software, written by Pete Goodliffe.
%prep
%setup -q
#%patch -p1 -b .orig
%build
# does not work for some reason :-(
#aclocal
#%%configure
./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib
--libexecdir=/usr/libexec --localstatedir=/usr/var --sharedstatedir=/usr/com
--mandir=/usr/man --infodir=/usr/info
#patch -p1 -b .orig
make
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%files
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO doc
%defattr(444,root,root,755)
%{_bindir}/tse3*
%{_includedir}/tse3/*
%{_libdir}/libtse3*
%{_mandir}/*
%changelog
* Mon Jul 31 2000 Reinhard Katzmann <[EMAIL PROTECTED]> 0.0.7-1mdk
- First mdk release
Name: noteedit
Summary: Note Setting Editor for Linux
Version: 1.8.5
Release: 1mdk
Copyright: GPL
Group: Multimedia
Source: %{name}-%{PACKAGE_VERSION}.tgz
Source1: %{name}.html
Patch: %{name}-%{version}.patch
#Patch: %{name}-resourcedir.patch.bz2
URL: http://rnvs.informatik.tu-chemnitz.de/~ja/noteedit/noteedit.html
BuildRoot: /var/tmp/%{name}-%version
Requires: qt2 >= 2.1, tse3 >= 0.0.8, musixtex >= T98, pmx >= 2.20
BuildRequires: qt2-devel, tse3
Conflicts: kmid
%description
Noteedit is a note setting editor with the following properties:
* insertion/deletion/modification of notes, rests, dotted notes, slured
* notes, clefs, time signatures and key signatures on different staffs;
* building chords;
* playing on /dev/sequencer (if correctly configured) whereby:
o giving each staff a different voice;
o giving each staff a different channel;
o highlighting the played notes;
o muting staffs;
o setting MIDI tempo;
* lyrics;
* export MusiXTeX;
* export PMX;
* export MIDI;
* import MIDI;
* read from MIDI keyboard
* saving an restoring the files. The fileformat is similarily to the
format of the music publication program (MUP). So you if you are a MUP
user you have the possibility to convert the files into MIDI and
Postscript. But this is no longer necessary because noteedit can export
MusiXTeX and MIDI.
%prep
%setup -q
%patch -p1 -b .orig
aclocal
export QTDIR=/usr/lib/qt2
%configure
%build
make CXXFLAGS="%optflags -g -fexceptions" NOTE_EDIT_HOME=%{_datadir}/noteedit/resources
%install
rm -rf $RPM_BUILD_ROOT
# no make install :-(
##%%makeinstall
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/menu
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/mini
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/noteedit/resources
cp noteedit $RPM_BUILD_ROOT/%{_bindir}
/usr/bin/convert resources/noicon.ppm -geometry 16x16 resources/noicon-mini.ppm
cp resources/noicon.ppm $RPM_BUILD_ROOT/%{_datadir}/icons
cp resources/noicon-mini.ppm $RPM_BUILD_ROOT/%{_datadir}/icons/mini/noicon.ppm
cp -Rd resources $RPM_BUILD_ROOT/%{_datadir}/noteedit/resources
# (fg) Menu entry
cat >$RPM_BUILD_ROOT/%{_libdir}/menu/%{name} <<EOF
?package(noteedit): command="/usr/bin/noteedit" icon="noicon.xpm" needs="X11" \
section="Multimedia/Sound" title="NoteEdit" longtitle="Note Setting Editor"
EOF
mkdir -p %buildroot/etc/profile.d/
cat >%buildroot/etc/profile.d/noteedit.sh <<EOF
export NOTE_EDIT_HOME=%{_datadir}/noteedit/resources
EOF
cat >%buildroot/etc/profile.d/noteedit.csh <<EOF
setenv NOTE_EDIT_HOME %{_datadir}/noteedit/resources
EOF
chmod +x %buildroot/etc/profile.d/*sh
%clean
rm -rf $RPM_BUILD_ROOT
%files
%doc LICENSE* README example* sixteen*
%defattr(444,root,root,755)
%attr(555,-,-) %{_bindir}/noteedit
%attr(555,-,-) /etc/profile.d/*sh
%{_libdir}/menu/*
%{_datadir}/icons/*
%{_datadir}/noteedit/*
%changelog
* Tue Aug 28 2000 Reinhard Katzmann <[EMAIL PROTECTED]> 1.8.5-1mdk
- Update to 1.8.5
- new tse3 requires for this release
- make scripts executable (dummy me)
* Tue Aug 14 2000 Reinhard Katzmann <[EMAIL PROTECTED]> 1.8.0-1mdk
- Update to 1.8.0
- Adapted patch file
- Added suggestion from Chmouel for noteedit.(c)sh scripts
* Tue Jul 31 2000 Reinhard Katzmann <[EMAIL PROTECTED]> 1.7.5-1mdk
- First mandrake release
- Added menu entry and icons for menu
- Added patch for improved compilation
--- noteedit-1.8.5/configure.in~ Mon Jul 24 16:38:54 2000
+++ noteedit-1.8.5/configure.in Sat Aug 12 16:53:49 2000
@@ -1,3 +1,4 @@
+AM_PROG_LIBTOOL
AC_INIT(mainframewidget.cpp)
stdlibdirs="/lib /usr/lib /usr/local/lib /usr/X11/lib /usr/X11R6/lib /usr/lib/qt2/lib
/usr/lib/qt/lib"
--- noteedit-1.8.5/Makefile.in~ Mon Aug 14 21:02:11 2000
+++ noteedit-1.8.5/Makefile.in Mon Aug 14 22:40:00 2000
@@ -24,87 +24,87 @@
$(TSE3OBJS) \
multistaff.moc.o timeedit.o timeedit.moc.o timesig.o transpainter.o main.o
-CXXFLAGS = $(DEVELFLAGS) $(KMIDLININCLUDE) $(QTINCDIR) $(X11INCLUDE) $(TSE3INCLUDE)
-LDFLAGS = $(QTLIBDIR) $(KMIDLIBDIR) $(X11LIB) $(TSE3LIBS)
+MYCXXFLAGS = $(DEVELFLAGS) $(KMIDLININCLUDE) $(QTINCDIR) $(X11INCLUDE) $(TSE3INCLUDE)
+MYLDFLAGS = $(QTLIBDIR) $(KMIDLIBDIR) $(X11LIB) $(TSE3LIBS)
CXX = g++
.SUFFIXES : .moc.cpp
noteedit: $(OBJS)
- $(CXX) -o noteedit $(OBJS) $(LDFLAGS)
+ $(CXX) -o noteedit $(OBJS) $(LDFLAGS) $(MYLDFLAGS)
mainframewidget.moc.o: mainframewidget.h
rm -f mainframewidget.moc.cpp
$(MOC) mainframewidget.h > mainframewidget.moc.cpp
- $(CXX) $(CXXFLAGS) -c mainframewidget.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c mainframewidget.moc.cpp
midimapper.moc.o: midimapper.h
rm -f midimapper.moc.cpp
$(MOC) midimapper.h > midimapper.moc.cpp
- $(CXX) $(CXXFLAGS) -c midimapper.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c midimapper.moc.cpp
mexportdialog.moc.o: mexportdialog.h
rm -f mexportdialog.moc.cpp
$(MOC) mexportdialog.h > mexportdialog.moc.cpp
- $(CXX) $(CXXFLAGS) -c mexportdialog.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c mexportdialog.moc.cpp
pmxexportdialog.moc.o: pmxexportdialog.h
rm -f pmxexportdialog.moc.cpp
$(MOC) pmxexportdialog.h > pmxexportdialog.moc.cpp
- $(CXX) $(CXXFLAGS) -c pmxexportdialog.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c pmxexportdialog.moc.cpp
keyoffs.moc.o: keyoffs.h
rm -f keyoffs.moc.cpp
$(MOC) keyoffs.h > keyoffs.moc.cpp
- $(CXX) $(CXXFLAGS) -c keyoffs.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c keyoffs.moc.cpp
scaleedit.moc.o: scaleedit.h
rm -f scaleedit.moc.cpp
$(MOC) scaleedit.h > scaleedit.moc.cpp
- $(CXX) $(CXXFLAGS) -c scaleedit.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c scaleedit.moc.cpp
voldialog.moc.o: voldialog.h
rm -f voldialog.moc.cpp
$(MOC) voldialog.h > voldialog.moc.cpp
- $(CXX) $(CXXFLAGS) -c voldialog.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c voldialog.moc.cpp
lyricsdialog.moc.o: lyricsdialog.h
rm -f lyricsdialog.moc.cpp
$(MOC) lyricsdialog.h > lyricsdialog.moc.cpp
- $(CXX) $(CXXFLAGS) -c lyricsdialog.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c lyricsdialog.moc.cpp
staffpropdialog.moc.o: staffpropdialog.h
rm -f staffpropdialog.moc.cpp
$(MOC) staffpropdialog.h > staffpropdialog.moc.cpp
- $(CXX) $(CXXFLAGS) -c staffpropdialog.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c staffpropdialog.moc.cpp
voicedialog.moc.o: voicedialog.h
rm -f voicedialog.moc.cpp
$(MOC) voicedialog.h > voicedialog.moc.cpp
- $(CXX) $(CXXFLAGS) -c voicedialog.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c voicedialog.moc.cpp
generaldialog.moc.o: generaldialog.h
rm -f generaldialog.moc.cpp
$(MOC) generaldialog.h > generaldialog.moc.cpp
- $(CXX) $(CXXFLAGS) -c generaldialog.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c generaldialog.moc.cpp
filterdialog.moc.o: filterdialog.h
rm -f filterdialog.moc.cpp
$(MOC) filterdialog.h > filterdialog.moc.cpp
- $(CXX) $(CXXFLAGS) -c filterdialog.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c filterdialog.moc.cpp
metronomdialog.moc.o: metronomdialog.h
rm -f metronomdialog.moc.cpp
$(MOC) metronomdialog.h > metronomdialog.moc.cpp
- $(CXX) $(CXXFLAGS) -c metronomdialog.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c metronomdialog.moc.cpp
smallestitemdialog.moc.o: smallestitemdialog.h
rm -f smallestitemdialog.moc.cpp
$(MOC) smallestitemdialog.h > smallestitemdialog.moc.cpp
- $(CXX) $(CXXFLAGS) -c smallestitemdialog.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c smallestitemdialog.moc.cpp
timeedit.moc.o: timeedit.h
rm -f timeedit.moc.cpp
$(MOC) timeedit.h > timeedit.moc.cpp
- $(CXX) $(CXXFLAGS) -c timeedit.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c timeedit.moc.cpp
clefdialog.moc.o: clefdialog.h
rm -f clefdialog.moc.cpp
$(MOC) clefdialog.h > clefdialog.moc.cpp
- $(CXX) $(CXXFLAGS) -c clefdialog.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c clefdialog.moc.cpp
multistaff.moc.o: multistaff.h
rm -f multistaff.moc.cpp
$(MOC) multistaff.h > multistaff.moc.cpp
- $(CXX) $(CXXFLAGS) -c multistaff.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c multistaff.moc.cpp
tse3handler.moc.o: tse3handler.h
rm -f tse3handler.moc.cpp
$(MOC) tse3handler.h > tse3handler.moc.cpp
- $(CXX) $(CXXFLAGS) -c tse3handler.moc.cpp
+ $(CXX) $(CXXFLAGS) $(MYCXXFLAGS) -c tse3handler.moc.cpp
depend:
makedepend *.cpp
@@ -117,3 +117,6 @@
clean:
rm -f $(OBJS) *.moc.cpp core *.bak confdefs.h config.cache config.log
pmxsave.log musixexport.log notesave.log libtse3.so.0 libtse3_OSS.so.0
libtse3_utilities.so.0
+
+%.o: %.cpp
+ $(CXX) $(MYCXXFLAGS) $(CXXFLAGS) $(MYCXXFLAGS) -c $<
PGP signature