Hi Don & Others,

> All files necessary for running the DOS version in a WIN95 DOS window are
> contained in
> 
> http://www.gmd.de/Misc/Music/musixtex/software/pmx/pmx220.zip.  

Ok, I downloaded it and tried to build it, no problems seemed to occur
with g77 (except severel warnings as usual and the changes of call in
line 223/236), but f2c bailed out:
 g1etnote:
Error on line 1112 of pmxab.f: Statement order error: declaration after DATA
Warning on line 2853 of pmxab.f: local variable mgap never used
Warning on line 2853 of pmxab.f: local variable crdacc never used
Warning on line 2853 of pmxab.f: local variable relacc never used
Warning on line 2853 of pmxab.f: local variable nmidcrd never used
Warning on line 2853 of pmxab.f: local variable numchan never used
Warning on line 2853 of pmxab.f: local variable notmain never used

scor2prt was build with no problems.

I've included the spec file so you see, how the thing is being compiled.
A word of warning: I was unable to check the whole spec file, though
the only problems might be in the gcc compile process of the converted
pmxab.f file, so use it at your own risk, when you want to create RPMS.

Oh and while we're at it: Comments to the to be created and uploaded
RPMS/spec are welcome. The main changes are that I want to include
f2c binaries as they seem to be more stable and all DOS files are
converted to unix while building. A patch will have to be included
concerning the g77 files and the main difference to the original
zip file will be the removal of .exe files and the added pmx script.
 
> --Don Simons
> Chief scientist, Dr. Don's PC and Harpsichord Emporium

Best regards,

Reinhard Katzmann
-- 
E-Mail: [EMAIL PROTECTED]

Current Projects: Linux-Installation RH6.1/HW-IV (95% finished)
                  Java-DB and -Interface for Pincity
                  Bach & H�ndel Trio Sonatas
Summary: a Preprocessor for MusiXTeX
Name: pmx
Version: 2.20
Vendor: Don Simons ([EMAIL PROTECTED])
Release: 1
Source: pmx-2.20.tar.bz2
Copyright: GPL
Group: System Environment/Daemons
URL: http://www.gmd.de/Misc/Music
Packager: Reinhard Katzmann <[EMAIL PROTECTED]>
Requires: tetex >= 1.0, musixtex, musixtex-musixflx, f2c
Prefix: /usr
BuildRoot: /var/tmp/%{name}-%{version}-root
BuildRequires: dos2unix, f2c
#BuildRequires: gcc-g77 >= 2.95
%description
PMX is a preprocessor for MusiXTeX that produces nearly professional-looking 
scores and parts with far less effort than would be required using MusiXTeX 
alone.

PMX can help you typeset a musical score if you have a reasonably
up-to-date version of MusiXTeX. The goal of PMX is to facilitate 
the efficient production of scores and parts that have an almost
professional appearance.  It can do all the work involved in 
setting up \notes-\enotes groupings, selecting groups of notes to
be beamed, defining beam heights and slopes, spreading the entire
piece evenly over specified numbers of systems and pages, and
inserting extra spaces where needed to make room for accidentals,
flags, dots, and new clefs.

%prep
%setup -q -n %{name}-%{version}

%build
mv pmxab.for pmxab.f
mv scor2prt.for scor2prt.f
# Uncomment if you wish to build g77-binary
#g77 -O2 -Wall pmxab.f -o pmxab
#g77 -O2 -Wall scor2prt.f -o scor2prt
#mv pmxab pmxab-g77
#strip pmxab-g77
#mv scor2prt scor2prt-g77
#strip scor2prt-g77
dos2unix -o barsant.pmx
dos2unix -o most.pmx
dos2unix -o mwalmnd.pmx
dos2unix -o pmx.tex
dos2unix -o pmx220.tex
dos2unix -o pmxab.f
dos2unix -o ref220.tex
dos2unix -o rtsg.pmx
dos2unix -o scor2prt.f
f2c -C -Nn802 -Nx400 pmxab.f
gcc -O2 -Wall -lf2c pmxab.c -o pmxab
strip pmxab
f2c -C scor2prt.f
gcc -O2 -Wall -lf2c scor2prt.c -o scor2prt
strip scor2prt
./pmx barsant
./pmx most
./pmx mwalmnd
./pmx rtsg

%install
mkdir -p $RPM_BUILD_ROOT%{prefix}/bin
mkdir -p $RPM_BUILD_ROOT%{prefix}/doc
mkdir -p $RPM_BUILD_ROOT%{prefix}/share/texmf/tex/plain/misc
cp pmx pmxab scor2prt $RPM_BUILD_ROOT%{prefix}/bin
#cp pmxab-g77 scor2prt-g77 $RPM_BUILD_ROOT%{prefix}/bin
cp pmx.tex  $RPM_BUILD_ROOT%{prefix}/share/texmf/tex/plain/misc

%clean
rm -rf $RPM_BUILD_ROOT

%post
texhash

%postun
texhash

%files
%doc COPYING pmx210* ref210* barsant.ps barsant.pmx most.ps most.pmx
%doc mwalmnd.ps mwalmnd.pmx rtsg.ps rtsg.pmx readme
%{prefix}/bin
%{prefix}/share

Reply via email to