xmlbasedsrs/xmlbasedsrs.spec

changeset 244
c81553da0489
parent 62
53785d38f0e4
child 248
cee99faf0afd
     1.1 --- a/xmlbasedsrs/xmlbasedsrs.spec	Mon Jan 18 19:42:06 2010 +0100
     1.2 +++ b/xmlbasedsrs/xmlbasedsrs.spec	Mon May 17 20:26:46 2010 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4  ##
     1.5  ##  xmlbasedsrs.spec -- OpenPKG RPM Package Specification
     1.6 -##  Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com>
     1.7 +##  Copyright (c) 2010 Michael Schloh von Bennewitz <michael@schloh.com>
     1.8  ##
     1.9  ##  Permission to use, copy, modify, and distribute this software for
    1.10  ##  any purpose with or without fee is hereby granted, provided that
    1.11 @@ -27,12 +27,12 @@
    1.12  URL:          http://xmlbasedsrs.tigris.org/
    1.13  Vendor:       Tigris
    1.14  Packager:     Michael Schloh von Bennewitz
    1.15 -Distribution: MSvB Recherche Production
    1.16 +Distribution: Michael Schloh von Bennewitz
    1.17  Class:        EVAL
    1.18  Group:        SGML
    1.19  License:      GPL
    1.20  Version:      0.1
    1.21 -Release:      20090106
    1.22 +Release:      20100512
    1.23  
    1.24  #   list of sources
    1.25  Source0:      http://xmlbasedsrs.tigris.org/files/documents/673/3179/xmlbasedsrs-%{version}.tar.gz
    1.26 @@ -63,16 +63,19 @@
    1.27      #   unpack sources
    1.28      %setup -q -n xmlbasedsrs
    1.29  
    1.30 +    #   rename projplan doc from defunct
    1.31 +    mv xsl/mrproject.xsl xsl/planner.xsl
    1.32 +
    1.33      #   create a utility to generate new SRS from template
    1.34      ( echo "#! /bin/sh"
    1.35 -      echo "mkdir newsrs"
    1.36 -      echo "( cd newsrs || exit -1"
    1.37 +      echo "mkdir srsnew"
    1.38 +      echo "( cd srsnew || exit -1"
    1.39        echo "  ln -s %{l_prefix}/share/sgml/xmlbasedsrs-xml/dtd/srs.dtd"
    1.40        echo "  cp %{l_prefix}/share/sgml/xmlbasedsrs-xml/xml/filesToDiff.xml ."
    1.41        echo "  cp %{l_prefix}/share/sgml/xmlbasedsrs-xml/xml/srs.xml ."
    1.42        echo ") || echo 'Failed.'"
    1.43 -    ) >newsrs_tmpl
    1.44 -    chmod +x newsrs_tmpl
    1.45 +    ) >newsrs
    1.46 +    chmod +x newsrs
    1.47  
    1.48      #   correct hard coded variable text
    1.49      %{l_shtool} subst \
    1.50 @@ -82,6 +85,14 @@
    1.51          -e 's;^\(@XSL_FILES\)\ *=\ *\((.*\)"intro",\ *\(.*\);\1 = \2\3;' \
    1.52          -e 's;^\(\$SRS_ROOT\)\ *=\ *"/home/lapsystems/Projects/xmlbasedsrs";\1 = "%{l_prefix}/share/sgml/xmlbasedsrs-xml";;' \
    1.53          bin/gsrs
    1.54 +    %{l_shtool} subst \
    1.55 +        -e 's;mrproject;planner;g' \
    1.56 +        -e 's;MrProject;ProjPlan;g' \
    1.57 +        xsl/imp_standard.xsl \
    1.58 +        bin/gsrs
    1.59 +    %{l_shtool} subst \
    1.60 +        -e 's;\(<file>\).*\(filesToDiff.xml\);\1\2;' \
    1.61 +        xml/filesToDiff.xml
    1.62  
    1.63  #    #   lump nonfunctional and functional requirements together
    1.64  #    %{l_shtool} subst \
    1.65 @@ -108,7 +119,7 @@
    1.66      #   install xsltproc(1) wrapper
    1.67      %{l_shtool} install -m 755 \
    1.68          bin/gsrs \
    1.69 -        newsrs_tmpl \
    1.70 +        newsrs \
    1.71          $RPM_BUILD_ROOT%{l_prefix}/bin/
    1.72  
    1.73      #   clean sources

mercurial