[Jpackage-commits] dist/xmlresume/devel .cvsignore, 1.1, 1.2 sources, 1.1, 1.2 xmlresume, NONE, 1.1 xmlresume-docbook-xsl.patch, NONE, 1.1 xmlresume.spec, NONE, 1.1

David Walluck david at ryu.zarb.org
Sun Dec 12 10:58:21 CET 2010


Update of /home/projects/jpackage/cvs/dist/xmlresume/devel
In directory ryu.zarb.org:/tmp/cvs-serv16113/devel

Modified Files:
	.cvsignore sources 
Added Files:
	xmlresume xmlresume-docbook-xsl.patch xmlresume.spec 
Log Message:
- initial import

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/xmlresume/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	12 Dec 2010 09:03:22 -0000	1.1
--- .cvsignore	12 Dec 2010 09:58:18 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ xmlresume-cvs.tar.bz2

--- NEW FILE: xmlresume-docbook-xsl.patch ---
--- resume/src/doc/manual/xsl/html-multiple.xsl~	2005-01-21 02:19:58.867760764 -0500
+++ resume/src/doc/manual/xsl/html-multiple.xsl	2005-01-21 02:20:09.278453707 -0500
@@ -52,11 +52,10 @@
   <xsl:template name="header.navigation">
     <xsl:param name="prev" select="/foo"/>
     <xsl:param name="next" select="/foo"/>
+    <xsl:param name="suppress.pageTitle" select="0"/>
     <xsl:variable name="home" select="/*[1]"/>
     <xsl:variable name="up" select="parent::*"/>
 
-    <xsl:param name="suppress.pageTitle" select="0"/>
-
     <xsl:if test="$suppress.pageTitle = '0'">
       <h1 class="pageTitle">
         <a href="{$xmlresume.index.href}">

--- NEW FILE: xmlresume ---
#!/bin/sh
# 
# xmlresume script
# JPackage Project <http://www.jpackage.org/>
# $Id$

# Source functions library
. /usr/share/java-utils/java-functions

# Source system prefs
if [ -f /etc/xmlresume.conf ] ; then 
  . /etc/xmlresume.conf
fi

# Source user prefs
if [ -f $HOME/.xmlresumerc ] ; then 
  . $HOME/.xmlresumerc
fi

if [ -z "$XMLRESUME_RESUME" ] ; then
  XMLRESUME_RESUME=`pwd`/resume
fi

if [ -z "$XMLRESUME_COUNTRY" ] ; then 
  XMLRESUME_COUNTRY=us
fi

if [ -z "$XMLRESUME_PAPERSIZE" ] ; then
  if [ "x$XMLRESUME_COUNTRY" = xus ] ; then
    XMLRESUME_PAPERSIZE=letter
  else
    XMLRESUME_PAPERSIZE=a4
  fi
fi

if [ ! -f ${XMLRESUME_RESUME}.xml ] ; then
  echo Cannot find file \`$XMLRESUME_RESUME\' >&2
  exit 1
fi

if [ ! -f /usr/share/xmlresume/xsl/output/${XMLRESUME_COUNTRY}-html.xsl \
  -o ! -f /usr/share/xmlresume/xsl/output/${XMLRESUME_COUNTRY}-text.xsl ] ; then
  echo Country \`$XMLRESUME_COUNTRY\' not supported >&2
  exit 1
fi

if [ ! -f /usr/share/xmlresume/xsl/output/${XMLRESUME_COUNTRY}-${XMLRESUME_PAPERSIZE}.xsl ] ; then
  echo Paper size \`$XMLRESUME_PAPERSIZE\' not supported for country \`$XMLRESUME_COUNTRY\' >&2
  exit 1
fi

if [ -z "$XMLRESUME_QUIET" ] ; then
  echo Running \`$0\' with the following settings:
  echo
  echo '    * 'XMLRESUME_RESUME=$XMLRESUME_RESUME
  echo '    * 'XMLRESUME_COUNTRY=$XMLRESUME_COUNTRY
  echo '    * 'XMLRESUME_PAPERSIZE=$XMLRESUME_PAPERSIZE
  echo '    * 'XMLRESUME_FILTER=$XMLRESUME_FILTER
  echo
fi

export CLASSPATH=$(build-classpath xerces-j2 xalan-j2 xalan-j2-serializer fop avalon-logkit avalon-framework batik xmlresume-filter)

set_javacmd

$JAVACMD org.apache.xalan.xslt.Process -in ${XMLRESUME_RESUME}.xml -xsl http://xmlresume.sourceforge.net/xsl/output/${XMLRESUME_COUNTRY}-html.xsl -out ${XMLRESUME_RESUME}.html
$JAVACMD org.apache.xalan.xslt.Process -in ${XMLRESUME_RESUME}.xml -xsl http://xmlresume.sourceforge.net/xsl/output/${XMLRESUME_COUNTRY}-text.xsl -out ${XMLRESUME_RESUME}.txt
$JAVACMD org.apache.xalan.xslt.Process -in ${XMLRESUME_RESUME}.xml -xsl http://xmlresume.sourceforge.net/xsl/output/${XMLRESUME_COUNTRY}-${XMLRESUME_PAPERSIZE}.xsl -out ${XMLRESUME_RESUME}.fo
$JAVACMD org.apache.fop.apps.Fop -fo ${XMLRESUME_RESUME}.fo -pdf ${XMLRESUME_RESUME}.pdf

if [ -n "$XMLRESUME_FILTER" ] ; then
  $JAVACMD net.sourceforge.xmlresume.filter.Filter -in ${XMLRESUME_RESUME}.xml -out ${XMLRESUME_RESUME}-filtered.xml $XMLRESUME_FILTER
fi

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/xmlresume/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	12 Dec 2010 09:03:22 -0000	1.1
--- sources	12 Dec 2010 09:58:18 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ df88461b32f78d30277b84f1a2444089  xmlresume-cvs.tar.bz2

--- NEW FILE: xmlresume.spec ---
%define aname                resume
%define cvsversion        1_5_1
%define section                free

%define docbook_xsl %{_datadir}/sgml/docbook/xsl-stylesheets

Summary:        XML Resume Library
Name:           xmlresume
Version:        1.5.1
Release:        3%{?dist}
Epoch:          0
License:        BSD
Group:          Development/Java
URL:            http://xmlresume.sourceforge.net/
# cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/xmlresume login
# cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/xmlresume -z3 co -release-1_5_1 resume
Source0:        xmlresume-cvs.tar.bz2
Source1:        %{name}
Patch0:         %{name}-docbook-xsl.patch
Requires:       ant >= 0:1.6
Requires:       avalon-framework
Requires:       avalon-logkit
Requires:       batik
Requires:       fop
Requires:       jpackage-utils >= 0:1.5
Requires:       xalan-j2
Requires:       xerces-j2
BuildRequires:  jpackage-utils >= 0:1.5
BuildRequires:  saxon
BuildRequires:  %{docbook_xsl}
BuildRequires:  lynx
BuildArch:      noarch
BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root

%description
The XML Resume Library is an XML and XSL based system for marking 
up, adding metadata to, and formatting resumes and curricula vitae.

It consists of these components:

    * An XML Document Type Definition (DTD) for describing resumes
    * Three XSL stylesheets to transform an XML resume into:
          o Web-ready HTML,
          o Print-ready PDF, or
          o Plain, unformatted text
          o RTF transforms (requires third-party software)
    * A targeting filter that allows you to focus your resumes to a
      particular employer without manually editing your source resume
      file.

%package demo
Summary:        Examples for %{name}
Group:          Development/Documentation
Requires:       %{name} >= %{epoch}:%{version}-%{release}

%description demo
Demos for %{name}.

%package manual
Summary:        Manual for %{name}
Group:          Development/Documentation

%description manual
Manual for %{name}.

%prep
%setup -q -n %{aname}
%patch0 -p1 -b .sav0

%build
export CLASSPATH=$(%{_bindir}/build-classpath xalan-j2)
export OPT_JAR_LIST=:
%{ant} -Ddoc.manual.docbook-xsl.dir=%{docbook_xsl} -Dsaxon.home=%{_javadir} release

%install
%__rm -rf %{buildroot}

pushd %{aname}-%{cvsversion}

# jar
%{__mkdir_p} %{buildroot}%{_javadir}
%{__cp} -p java/xmlresume-filter.jar %{buildroot}%{_javadir}/%{name}-filter-%{version}.jar
%{__ln_s} %{name}-filter-%{version}.jar %{buildroot}%{_javadir}/%{name}-filter.jar

# data
%{__mkdir_p} %{buildroot}%{_datadir}/%{name}
%{__cp} -pr css dtd examples xsl %{buildroot}%{_datadir}/%{name}

# scripts
%{__mkdir_p} %{buildroot}%{_bindir}
%{__install} -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}

# docs
%__cp -pr doc/manual manual || :
%__rm -rf doc/manual
# FIXME
%{__ln_s} %{_docdir}/%{name}-manual-%{version} doc/manual

popd

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc README %{aname}-%{cvsversion}/doc/*
%attr(0755,root,root) %{_bindir}/%{name}
%{_javadir}/%{name}-filter.jar
%{_javadir}/%{name}-filter-%{version}.jar
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/css
%{_datadir}/%{name}/dtd
%{_datadir}/%{name}/xsl

%files demo
%defattr(0644,root,root,0755)
%{_datadir}/%{name}/examples

%files manual
%defattr(0644,root,root,0755)
%doc %{aname}-%{cvsversion}/manual/*

%changelog
* Sat Aug  6 2005 Ville Skyttä <scop at jpackage.org> - 0:1.5.1-2jpp
- Use a more common, unversioned docbook XSL dir.
- Add missing build dependency on lynx.

* Thu Jan 20 2005 David Walluck <david at jpackage.org> 0:1.5.1-1jpp
- 1.5.1




More information about the JPackage-commits mailing list