diff -r a306070c4f81 -r c81553da0489 xmlbasedsrs/xmlbasedsrs.spec --- a/xmlbasedsrs/xmlbasedsrs.spec Mon Jan 18 19:42:06 2010 +0100 +++ b/xmlbasedsrs/xmlbasedsrs.spec Mon May 17 20:26:46 2010 +0200 @@ -1,6 +1,6 @@ ## ## xmlbasedsrs.spec -- OpenPKG RPM Package Specification -## Copyright (c) 2009 Michael Schloh von Bennewitz +## Copyright (c) 2010 Michael Schloh von Bennewitz ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that @@ -27,12 +27,12 @@ URL: http://xmlbasedsrs.tigris.org/ Vendor: Tigris Packager: Michael Schloh von Bennewitz -Distribution: MSvB Recherche Production +Distribution: Michael Schloh von Bennewitz Class: EVAL Group: SGML License: GPL Version: 0.1 -Release: 20090106 +Release: 20100512 # list of sources Source0: http://xmlbasedsrs.tigris.org/files/documents/673/3179/xmlbasedsrs-%{version}.tar.gz @@ -63,16 +63,19 @@ # unpack sources %setup -q -n xmlbasedsrs + # rename projplan doc from defunct + mv xsl/mrproject.xsl xsl/planner.xsl + # create a utility to generate new SRS from template ( echo "#! /bin/sh" - echo "mkdir newsrs" - echo "( cd newsrs || exit -1" + echo "mkdir srsnew" + echo "( cd srsnew || exit -1" echo " ln -s %{l_prefix}/share/sgml/xmlbasedsrs-xml/dtd/srs.dtd" echo " cp %{l_prefix}/share/sgml/xmlbasedsrs-xml/xml/filesToDiff.xml ." echo " cp %{l_prefix}/share/sgml/xmlbasedsrs-xml/xml/srs.xml ." echo ") || echo 'Failed.'" - ) >newsrs_tmpl - chmod +x newsrs_tmpl + ) >newsrs + chmod +x newsrs # correct hard coded variable text %{l_shtool} subst \ @@ -82,6 +85,14 @@ -e 's;^\(@XSL_FILES\)\ *=\ *\((.*\)"intro",\ *\(.*\);\1 = \2\3;' \ -e 's;^\(\$SRS_ROOT\)\ *=\ *"/home/lapsystems/Projects/xmlbasedsrs";\1 = "%{l_prefix}/share/sgml/xmlbasedsrs-xml";;' \ bin/gsrs + %{l_shtool} subst \ + -e 's;mrproject;planner;g' \ + -e 's;MrProject;ProjPlan;g' \ + xsl/imp_standard.xsl \ + bin/gsrs + %{l_shtool} subst \ + -e 's;\(\).*\(filesToDiff.xml\);\1\2;' \ + xml/filesToDiff.xml # # lump nonfunctional and functional requirements together # %{l_shtool} subst \ @@ -108,7 +119,7 @@ # install xsltproc(1) wrapper %{l_shtool} install -m 755 \ bin/gsrs \ - newsrs_tmpl \ + newsrs \ $RPM_BUILD_ROOT%{l_prefix}/bin/ # clean sources