packages java-xsddoc.spec
      Pages: < 1 >  DOWNLOAD      
Name:          java-xsddoc
Version:       1.0
Release:       2mamba
Summary:       a XML Schema documentation generator for W3C XML Schemas.
Group:         Development/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           http://xframe.sourceforge.net/xsddoc/index.html
# cvs -d:pserver:anonymous@...:/cvsroot/xframe login
# cvs -z3 -d:pserver:anonymous@...:/cvsroot/xframe co -P xsddoc
# tar czf xsddoc-1.0-src-svn.tar.gz xsddoc
Source0:       xsddoc-%{version}-src-svn.tar.gz
Source1:       http://repo1.maven.org/maven2/xsddoc/xsddoc/%{version}/xsddoc-%{version}.pom
Source2:       xsddoc-script
License:       LGPL
BuildRequires: apache-ant
BuildRequires: java-junit3
BuildRequires: jpackage-utils
BuildRequires: xalan-j2
BuildRequires: xerces-j2
BuildRequires: xml-commons-apis
Requires:      xalan-j2
Requires:      xerces-j2
Requires:      xml-commons-apis
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
XML related tools: xsddoc (documentation tool for W3C XML
Schema), xsddoc maven plugin, swing: JXTable (JTable with
frozen columns) 

The xsddoc subproject is a XML Schema documentation
generator for W3C XML Schemas.

%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}

%description javadoc
The xsddoc subproject is a XML Schema documentation
generator for W3C XML Schemas.

This package contains javadoc for %{name}.

%prep

%setup -q -n xsddoc

for j in $(find . -name "*.jar"); do 
       mv $j $j.no
done

for j in $(find . -name "CVS"); do 
       rm -rf $j
done

pushd lib
	ln -sf $(build-classpath xalan-j2) xalan-2.7.0.jar
	ln -sf $(build-classpath xercesImpl) xercesImpl.jar
	ln -sf $(build-classpath xerces-j2) xerces.jar
	ln -sf $(build-classpath xml-commons-apis) xml-apis.jar
popd
%build
export CLASSPATH=$(build-classpath xalan-j2 junit-3.8.2 \
	xerces-j2 xercesImpl xml-commons-apis ant ant/ant-trax)
ant \
	-Dbuild.number=1 \
	jar javadoc

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"


mkdir -p %{buildroot}%{_javadir}
mkdir -p %{buildroot}%{_datadir}/maven2/poms

install -pm 644 lib/xsddoc.jar \
  	%{buildroot}%{_javadir}/xsddoc-%{version}.jar
%add_to_maven_depmap xsddoc xsddoc %{version} JPP xsddoc
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP-xsddoc.pom

(	
	cd %{buildroot}%{_javadir}
	for jar in *-%{version}.jar; do 
		ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
	done
)

mkdir -p %{buildroot}%{_javadocdir}/xsddoc-%{version}
pushd doc/api
	for f in `find -name \*.html -o -name \*.css`; do
		sed -i 's/\r//g' $f;
	done
popd
cp -pr doc/api/* %{buildroot}%{_javadocdir}/xsddoc-%{version}

mkdir -p %{buildroot}%{_bindir}
install -m 755 %{SOURCE2} %{buildroot}%{_bindir}/xsddoc

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(-,root,root)
%{_bindir}/xsddoc
%{_javadir}/xsddoc-%{version}.jar
%{_javadir}/xsddoc.jar
%{_datadir}/maven2/poms
%{_mavendepmapfragdir}
%doc legal LICENSE.txt readme.txt

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/xsddoc-%{version}

%changelog
* Mon Dec 13 2010 gil <puntogil@...> 1.0-2mamba
- rebuilt devel

* Mon Jun 29 2009 gil <puntogil@...> 1.0-1mamba
- package created by autospec