From 3b45b1e3d78597b4e22836c7d40ba0d9ef1115df Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 10 Dec 2008 03:25:52 +0000 Subject: [PATCH 1/4] Initialize branch F-10 for xjparse --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..dc32377 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-10 From 70217261ee1871aac59108e61e7caf3481e8c219 Mon Sep 17 00:00:00 2001 From: Brennan Ashton Date: Wed, 10 Dec 2008 04:36:07 +0000 Subject: [PATCH 2/4] - Initial CVS Import --- .cvsignore | 1 + import.log | 1 + sources | 1 + xjparse.sh | 8 +++++++ xjparse.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 75 insertions(+) create mode 100644 import.log create mode 100644 xjparse.sh create mode 100644 xjparse.spec diff --git a/.cvsignore b/.cvsignore index e69de29..9891709 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +xjparse-src-1.0.zip diff --git a/import.log b/import.log new file mode 100644 index 0000000..9fea6e8 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +xjparse-1_0-3_fc10:F-10:xjparse-1.0-3.fc10.src.rpm:1228883667 diff --git a/sources b/sources index e69de29..620d8cf 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8722e59eb5b7b1d1adebd8f39b8f93db xjparse-src-1.0.zip diff --git a/xjparse.sh b/xjparse.sh new file mode 100644 index 0000000..6bb0f54 --- /dev/null +++ b/xjparse.sh @@ -0,0 +1,8 @@ +#!/bin/bash +. /usr/share/java-utils/java-functions + +MAIN_CLASS=com.nwalsh.parsers.xjparse + +set_classpath "xjparse xml-commons-resolver" + +run "$@" diff --git a/xjparse.spec b/xjparse.spec new file mode 100644 index 0000000..631e63e --- /dev/null +++ b/xjparse.spec @@ -0,0 +1,64 @@ +Name: xjparse +Version: 1.0 +Release: 3%{?dist} +Summary: Wrapper for the Xerces XML Schema validator +Group: Applications/Text +License: ASL 2.0 +URL: http://nwalsh.com/java/xjparse +Source0: http://nwalsh.com/java/xjparse/xjparse-src-%{version}.zip +Source1: xjparse.sh +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: java-devel +BuildRequires: jpackage-utils +BuildRequires: ant +BuildRequires: xml-commons-resolver + +Requires: jpackage-utils +Requires: java +Requires: xml-commons-resolver + +%description +The xjparse tool is a simple command-line wrapper for the Xerces XML Schema +validator. It accepts several options, notably one which specifies the set +of schemas to be used during validation. + +%prep +%setup -qc +find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \; + +%build +export CLASSPATH=$(build-classpath xml-commons-resolver) +ant -f build.xml jar -verbose + +%install +rm -rf $RPM_BUILD_ROOT + +mkdir -p $RPM_BUILD_ROOT%{_javadir} +cp -p build/xjparse.jar \ +$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar + +install -dm 755 $RPM_BUILD_ROOT%{_bindir} +install -pm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/xjparse + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{_javadir}/%{name}-%{version}.jar +%{_javadir}/%{name}.jar +%{_bindir}/xjparse + +%changelog +* Thu Dec 04 2008 Brennan Ashton 1.0-3 +- Added system link for just name +- Added wrapper script + +* Tue Nov 25 2008 Brennan Ashton 1.0-2 +- Now noarch +- Fixed discription line length + +* Sun Nov 23 2008 Brennan Ashton 1.0-1 +- Created spec file From 3e3a953ff5288e791bff8fa16b173a93c1c1886e Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:33:42 +0000 Subject: [PATCH 3/4] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5cd06b9..0668dbc 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ # Makefile for source rpm: xjparse -# $Id$ +# $Id: Makefile,v 1.1 2008/12/10 03:25:50 kevin Exp $ NAME := xjparse SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 103401b3de5c490e26cec8f7f2df8f8b83c6f397 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 15:54:01 +0000 Subject: [PATCH 4/4] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - import.log | 1 - 4 files changed, 23 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 0668dbc..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: xjparse -# $Id: Makefile,v 1.1 2008/12/10 03:25:50 kevin Exp $ -NAME := xjparse -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index dc32377..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-10 diff --git a/import.log b/import.log deleted file mode 100644 index 9fea6e8..0000000 --- a/import.log +++ /dev/null @@ -1 +0,0 @@ -xjparse-1_0-3_fc10:F-10:xjparse-1.0-3.fc10.src.rpm:1228883667