Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
103401b3de dist-git conversion 2010-07-29 15:54:01 +00:00
Bill Nottingham
3e3a953ff5 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:33:42 +00:00
Brennan Ashton
70217261ee - Initial CVS Import 2008-12-10 04:36:07 +00:00
3b45b1e3d7 Initialize branch F-10 for xjparse 2008-12-10 03:25:52 +00:00
6 changed files with 74 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
xjparse-src-1.0.zip

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: xjparse
# $Id$
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
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)

View file

@ -0,0 +1 @@
8722e59eb5b7b1d1adebd8f39b8f93db xjparse-src-1.0.zip

8
xjparse.sh Normal file
View file

@ -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 "$@"

64
xjparse.spec Normal file
View file

@ -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 <bashton at, brennanashton.com> 1.0-3
- Added system link for just name
- Added wrapper script
* Tue Nov 25 2008 Brennan Ashton <bashton at, brennanashton.com> 1.0-2
- Now noarch
- Fixed discription line length
* Sun Nov 23 2008 Brennan Ashton <bashton at, brennanashton.com> 1.0-1
- Created spec file