Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:thomas-schraitle
jnvdl
jnvdl.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jnvdl.spec of Package jnvdl
# # spec file for package jnvdl # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: jnvdl License: Other, BSD Vendor: Petr Nálevka, Jirka Kosek Group: Productivity/Publishing/XML Summary: Implementation of Namespace-based Validation Dispatching Language (NVDL) Requires: jre1.3.x Version: 20071112 Release: 5 URL: http://sourceforge.net/projects/jnvdl/ Source0: %{name}-%{version}.tar.bz2 Source1: %{name}.xml.in Source2: %{name}.sh.in BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: unzip bzip2 docbook_4 docbook-xsl-stylesheets libxslt xsdlib msv xerces-j2 dos2unix BuildRequires: jpackage-utils Requires: xsdlib msv # openSUSE 11.0 comes with Saxon 6.5.x again # Jaxen appeared for the first time in 10.2, but I get expansion errors in 10.3, so... %if %suse_version >= 1100 Requires: saxon jaxen BuildRequires: saxon jaxen %endif BuildArchitectures: noarch %if %suse_version < 1020 BuildRequires: java2-devel-packages java-1_5_0-sun-devel xerces-j2 xml-commons-apis xml-commons-resolver %else BuildRequires: java-1_4_2-gcj-compat-devel ant-junit xml-commons-resolver %endif %description JNVDL is a Java-based implementation of the Namespace-based Validation Dispatching Language (NVDL) specification (see http://www.jtc1sc34.org/repository/0694.pdf) Authors -------- Petr Nálevka Jirka Kosek %define JNVDL_HOME %{_datadir}/%{name} %prep %setup -q #-q -n %{name}-%{version} # Remove orig files: for i in $(find -name "*.orig"); do %{__rm} "$i" done # Fix line endings for i in $(find example -type f) readme license; do dos2unix "$i" done #%{__cat} %{S:2} | sed s=@MSV_HOME@=%{_datadir}/%{name}= > %{name}.sh %{__mv} %{name}.sh %{name}.sh.in %{__cat} %{S:2} | sed s=@JNVDL_HOME@=%{JNVDL_HOME}= > %{name}.sh #mv %{S:1} %{S:1}.bak XML_IN=%{S:1} XML=${XML_IN%%.in} %{__cat} %{S:1} | sed s=@JNVDL_VERSION@=%{version}= > ${XML} %build XML_IN=%{S:1} XML=${XML_IN%%.in} # We use the XML catalog mechanism here: DB=http://docbook.sourceforge.net/release/xsl/current/ xmllint --valid --noout ${XML} xsltproc --nonet $DB/manpages/docbook.xsl ${XML} xsltproc --nonet --output %{name}.html $DB/html/docbook.xsl ${XML} %install #rm -rf $RPM_BUILD_ROOT # Create directory %{__install} -m 755 -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} %{__install} -m 755 -d $RPM_BUILD_ROOT%{_javadir} %{__install} -m 755 -d $RPM_BUILD_ROOT%{_mandir}/man1/ %{__install} -m 755 -d $RPM_BUILD_ROOT%{_prefix}/bin/ %{__install} -m 755 -d $RPM_BUILD_ROOT%{JNVDL_HOME} # Install script and manpage: %{__install} -m 755 %{name}.sh $RPM_BUILD_ROOT%{_prefix}/bin/%{name} %{__install} -m 644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 # Install jar files: %{__install} -m 644 jaxp-*.jar jnvdl*.jar xslt*.jar schematron*.jar \ $RPM_BUILD_ROOT%{_javadir} %if %suse_version < 1100 %{__install} -m 644 saxon.jar $RPM_BUILD_ROOT%{JNVDL_HOME} %endif # %if %suse_version < 1100 %{__install} -m 644 jaxen.jar $RPM_BUILD_ROOT%{JNVDL_HOME} %endif # Link dependend jar files: for i in isorelax.jar msv.jar xsdlib.jar relaxngDatatype.jar jaxp-*.jar jnvdl*.jar xslt*.jar schematron*.jar xerces-j2.jar; do pushd . cd $RPM_BUILD_ROOT%{JNVDL_HOME} %{__ln_s} ../java/$i . popd done # Link saxon.jar and jaxen.jar pushd . cd $RPM_BUILD_ROOT%{JNVDL_HOME} %if %suse_version >= 1100 %{__ln_s} ../java/saxon.jar . %endif %if %suse_version >= 1100 %{__ln_s} ../java/jaxen.jar . %endif popd %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc example readme license %{_prefix}/bin/* %{_datadir}/%{name} %{_mandir}/man1/%{name}.* %{_javadir}/*
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor