Reply-To: 
Hi!

I've upload RPMS for pmx (Linux i586) and source RPM for
those who want to compile it for themselves. Two versions
will be built, the default one with f2c and the other one
with g77. If you prefer only one, just change the .spec-file.
I've included it with this mail again, as I made severel
changes to it. Have fun!

Best regards,

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

Current Projects: Linux-Installation RH6.1 (90% 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
Patch: pmx-2.20.patch
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}
mv pmxab.for pmxab.f
dos2unix -o pmxab.f
mv scor2prt.for scor2prt.f
dos2unix -o scor2prt.f
%patch -p1 -b .orig

%build
# 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 ref220.tex
dos2unix -o rtsg.pmx
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 pmx220* ref220* 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