Summary: Jade and SP -- parser and tools for SGML + DSSSL Name:jade Packager: rosalia@cygnus.com %define vermajor 1 %define verminor 2.1 %define version %{vermajor}.%{verminor} %define release 4 Version: %{version} Release: %{release} Prereq: sgml-common Requires: sgml-common Vendor: Cygnus Solutions Distribution: Cygnus UNSUPPORTED Internal SGML Tools # Source: ftp://ftp.jclark.com/pub/jade/jade%{vermajor}_%{verminor}.zip Source: jade.tgz Copyright: Copyright 1997 James Clark Group: Utilities/Text BuildRoot: /tmp/jaderoot %define sgmlbase /usr %description Jade (James' DSSSL Engine) is an implementation of the DSSSL style language. %prep %setup -c %build cd jade; ./configure --prefix=%{sgmlbase} --enable-static --enable-default-catalog=%{sgmlbase}/lib/sgml/CATALOG; make %install # NOTE: in installing I am also copying a bunch of .h files into # $(prefix)/include/sp/{generic,include,lib}. This is so that the # library API can be used. It's an ugly kludge, and the best way # would be for James Clark to tell us what the appropriate list of # files to be included is. mkdir -p $RPM_BUILD_ROOT%{sgmlbase} mkdir -p $RPM_BUILD_ROOT%{sgmlbase}/doc mkdir -p $RPM_BUILD_ROOT%{sgmlbase}/lib mkdir -p $RPM_BUILD_ROOT%{sgmlbase}/lib/sgml mkdir -p $RPM_BUILD_ROOT%{sgmlbase}/bin mkdir -p $RPM_BUILD_ROOT%{sgmlbase}/include mkdir -p $RPM_BUILD_ROOT%{sgmlbase}/include/sp mkdir -p $RPM_BUILD_ROOT%{sgmlbase}/include/sp/generic mkdir -p $RPM_BUILD_ROOT%{sgmlbase}/include/sp/include mkdir -p $RPM_BUILD_ROOT%{sgmlbase}/include/sp/lib cd jade; ./configure --prefix=%{sgmlbase} --enable-static --enable-default-catalog=%{sgmlbase}/lib/sgml/CATALOG; make install prefix=$RPM_BUILD_ROOT%{sgmlbase} mv $RPM_BUILD_ROOT%{sgmlbase}/bin/sx $RPM_BUILD_ROOT%{sgmlbase}/bin/sgml2xml install generic/*.h $RPM_BUILD_ROOT%{sgmlbase}/include/sp/generic/ install include/*.h $RPM_BUILD_ROOT%{sgmlbase}/include/sp/include/ install lib/*.h $RPM_BUILD_ROOT%{sgmlbase}/include/sp/lib/ # install jade/jade $RPM_BUILD_ROOT%{sgmlbase}/bin/jade strip $RPM_BUILD_ROOT%{sgmlbase}/bin/jade strip $RPM_BUILD_ROOT%{sgmlbase}/bin/nsgmls strip $RPM_BUILD_ROOT%{sgmlbase}/bin/spam strip $RPM_BUILD_ROOT%{sgmlbase}/bin/sgmlnorm strip $RPM_BUILD_ROOT%{sgmlbase}/bin/spent cp dsssl/catalog $RPM_BUILD_ROOT%{sgmlbase}/lib/sgml/dsssl.cat cp dsssl/dsssl.dtd dsssl/style-sheet.dtd dsssl/fot.dtd $RPM_BUILD_ROOT%{sgmlbase}/lib/sgml/ %post # since old-postun is run *after* new-post, we must always cycle. V=%{version}-%{release} %{sgmlbase}/bin/install-catalog --install dsssl --version $V %postun # since old-postun is run *after* new-post, we must always cycle. V=%{version}-%{release} %{sgmlbase}/bin/install-catalog --remove dsssl --version $V %files %attr(- root root) %doc jade/doc/ jade/jadedoc/ jade/dsssl/ jade/pubtext/ jade/unicode/ jade/README jade/COPYING jade/VERSION %attr(- root root) %{sgmlbase}/bin/* %attr(- root root) %{sgmlbase}/lib/* %attr(- root root) %{sgmlbase}/include/* # %attr(- root root) %{sgmlbase}/include/sp/* # %attr(- root root) %{sgmlbase}/include/sp/generic/* # %attr(- root root) %{sgmlbase}/include/sp/include/* # %attr(- root root) %{sgmlbase}/include/sp/lib/* # %attr(- root root) %{sgmlbase}/doc/*