Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:thomas-schraitle
msv
msv.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File msv.spec of Package msv
# # spec file for package msv # # 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 # usedforbuild aaa_base acl attr audit-libs autoconf automake bash bind-libs bind-utils binutils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db diffutils e2fsprogs file filesystem fillup findutils flex gawk gcc gdbm gdbm-devel gettext gettext-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libattr libcom_err libgcc libnscd libstdc++ libtool libxcrypt libzio m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch perl permissions popt procinfo procps psmisc pwdutils rcs readline rpm sed strace sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel Name: msv License: Other, BSD Group: Productivity/Publishing/XML Summary: Validator for DTD, RELAX NG, TREX, W3C XML Schema Part 1 and others Requires: jre1.3.x Version: 20081113 Release: 3 URL: https://msv.dev.java.net/ Source0: https://msv.dev.java.net/servlets/ProjectDocumentList?folderID=101/msv.%{version}.zip Source2: %{name}.sh.in Source3: %{name}.xml.in BuildRoot: %{_tmppath}/%{name}-%{version}-build # BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: xerces-j2 BuildRequires: xml-commons-apis BuildRequires: xsdlib BuildRequires: isorelax BuildRequires: xml-commons-resolver BuildRequires: docbook_4 BuildRequires: docbook-xsl-stylesheets BuildRequires: sgml-skel BuildRequires: libxslt BuildRequires: ant ant-trax ant-junit # Requires: isorelax Requires: xerces-j2 xml-commons-apis xsdlib BuildArchitectures: noarch %description The Sun Multi-Schema XML Validator is a Java tool to validate XML documents against several kinds of XML schemata. It supports DTD, RELAX Namespace, RELAX Core, RELAX NG, TREX, and a subset of W3C XML Schema Part 1. %package javadoc Group: Development/Libraries/Java Summary: Javadoc for %{name} License: The Apache Software License %description javadoc Javadoc for %{name} %define MSV_HOME %{_datadir}/%{name} %prep %setup -q -n %{name}-%{version} XML_IN=%{S:3} XML=${XML_IN%%.in} # Replace placeholder strings: %{__cat} %{S:2} | sed s=@MSV_HOME@=%{_datadir}/%{name}= > msv.sh %{__cat} ${XML_IN} | sed s=@VERSION@=%{version}= > ${XML} %build # We use the XML catalog mechanism here, therfore point to # the canonical URI: DB=http://docbook.sourceforge.net/release/xsl/current/ # XML_IN=%{S:3} XML=${XML_IN%%.in} # Build HTML and Manpage from DocBook source xsltproc --nonet $DB/manpages/docbook.xsl ${XML} xsltproc --nonet --output %{name}.html $DB/html/docbook.xsl ${XML} %install [ -e %buildroot ] || %{__mkdir} %buildroot # Create directories: %{__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%{MSV_HOME} %{__install} -m 755 -d $RPM_BUILD_ROOT%{_javadir} %{__install} -m 755 -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} # Install Javadoc %{__cp} -a javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} # 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 # Copy the relevant jar files: # xsdlib.jar and relaxngDatatype.jar are available in the xsdlib package for i in xmlParserAPIs.jar msv.jar; do %{__install} -m 644 $i $RPM_BUILD_ROOT%{_javadir} done # Link dependend jar files: for i in msv.jar relaxngDatatype.jar xerces-j2.jar xmlParserAPIs.jar xsdlib.jar ; do pushd . cd $RPM_BUILD_ROOT%{MSV_HOME} %{__ln_s} ../java/$i . popd done %files %defattr(-, root, root) %doc examples contrib %doc *.html *.txt *.gif %{_prefix}/bin/* %{_datadir}/%{name} %{_mandir}/man1/%{name}.* %{_javadir}/*.jar %files javadoc %defattr(-, root, root) %{_javadocdir}/%{name}-%{version}
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