Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:thomas-schraitle
onvdl
onvdl.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File onvdl.spec of Package onvdl
# # spec file for package onvdl # # Copyright (c) 2008 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: onvdl License: BSD 3-Clause Vendor: SyncRO <http://www.oxygenxml.com> Group: Productivity/Publishing/XML Summary: Implementation of Namespace-based Validation Dispatching Language (NVDL) Requires: jre1.3.x Version: 20070517 Release: 3 URL: http://www.oxygenxml.com/onvdl.html Source0: %{name}-%{version}.zip #Source1: %{name}.xml.in Source2: %{name}.sh.in #Patch0: BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: unzip bzip2 xerces-j2 log4j Requires: xerces-j2 log4j # PreReq: xerces-j2 xalan-j2 xerces-j2-xml-apis log4j BuildArchitectures: noarch Packager: Thomas Schraitle <thomas DOT schraitle AT suse DOT de> # openSUSE 11.0 comes with Saxon 6.5.x again %if %suse_version >= 1100 Requires: saxon BuildRequires: saxon %endif %if %suse_version > 1020 BuildRequires: xerces-j2-xml-apis Requires: xerces-j2-xml-apis %else BuildRequires: xml-commons-apis Requires: xml-commons-apis %endif %description oNVDL is a NVDL implementation on top of Jing, a validator for RELAX NG and other schema languages. Authors -------- SyncRO %package doc Group: Development/Libraries/Python Summary: Documentation for %{name} License: BSD 3-Clause %description doc API documentation for %{name} %define ONVDL_HOME %{_datadir}/%{name} %prep %setup -n oNVDL #-q -n %{name}-%{version} #%patch0 cat %{S:2} | sed s=@ONVDL_HOME@=%{ONVDL_HOME}= > %{name}.sh #mv %{S:1} %{S:1}.bak #XML_IN=%{S:1} #XML=${XML_IN%%.in} #cat %{S:1} | sed s=@ONVDL_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 directories: install -m 755 -d $RPM_BUILD_ROOT%{_prefix}/bin/ install -m 755 -d $RPM_BUILD_ROOT%{_javadir} install -m 755 -d $RPM_BUILD_ROOT%{ONVDL_HOME} install -m 755 -d $RPM_BUILD_ROOT%{_mandir}/man1/ install -m 755 -d $RPM_BUILD_ROOT%{_defaultdocdir}/%{name} # Shell script: install -m 755 %{name}.sh $RPM_BUILD_ROOT%{_prefix}/bin/%{name} #install -m 644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 # Install jars but not xerces and xml-apis: install -m 644 bin/onvdl.jar $RPM_BUILD_ROOT%{_javadir} install -m 644 bin/isorelax.jar $RPM_BUILD_ROOT%{_javadir} %if %suse_version < 1100 install -m 644 bin/saxon.jar $RPM_BUILD_ROOT%{ONVDL_HOME}/saxon-6.jar %endif pushd . cd $RPM_BUILD_ROOT%{ONVDL_HOME} ln -s ../java/onvdl.jar . ln -s ../java/xerces-j2.jar . ln -s ../java/xerces-j2-xml-apis.jar . ln -s ../java/log4j.jar . %if %suse_version >= 1100 ln -s ../java/saxon.jar . %endif popd # Install the documenation: %{__cp} -a doc sample xslt src.zip $RPM_BUILD_ROOT%{_defaultdocdir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) #%doc doc sample xslt readme.html # Do we need that too? (Licensing issues) # %doc src.zip %{_prefix}/bin/* %{_datadir}/%{name} %{_javadir}/*.jar #%{_mandir}/man1/%{name}.* %files doc %defattr(-,root,root) %{_defaultdocdir}/%{name} %changelog
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