repackaged using binary distribution [release 1.2-8mamba;Sat Feb 03 2024]

This commit is contained in:
Silvan Calarco 2024-02-03 17:01:07 +01:00
parent da900f426a
commit 21d5db7747
4 changed files with 13 additions and 128 deletions

View File

@ -1,21 +0,0 @@
#!/bin/sh
#
# xml-commons-resolver resolver script
# JPackage Project (http://www.jpackage.org/)
# $Id: xml-commons-resolver-resolver.sh,v 1.1.2.1 2004/03/03 15:01:33 fche Exp $
# Source functions library
. /usr/share/java-utils/java-functions
# Configuration
MAIN_CLASS=org.apache.xml.resolver.apps.resolver
BASE_JARS="xml-commons-resolver.jar xml-commons-apis.jar xerces-j2.jar"
# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"

View File

@ -1,21 +0,0 @@
#!/bin/sh
#
# xml-commons-resolver xparse script
# JPackage Project (http://www.jpackage.org/)
# $Id: xml-commons-resolver-xparse.sh,v 1.1.2.1 2004/03/03 15:01:33 fche Exp $
# Source functions library
. /usr/share/java-utils/java-functions
# Configuration
MAIN_CLASS=org.apache.xml.resolver.apps.xparse
BASE_JARS="xml-commons-resolver.jar xml-commons-apis.jar xerces-j2.jar"
# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"

View File

@ -1,21 +0,0 @@
#!/bin/sh
#
# xml-commons-resolver xread script
# JPackage Project (http://www.jpackage.org/)
# $Id: xml-commons-resolver-xread.sh,v 1.1.2.1 2004/03/03 15:01:33 fche Exp $
# Source functions library
. /usr/share/java-utils/java-functions
# Configuration
MAIN_CLASS=org.apache.xml.resolver.apps.xread
BASE_JARS="xml-commons-resolver.jar xml-commons-apis.jar xerces-j2.jar"
# Set parameters
set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS
# Let's start
run "$@"

View File

@ -1,35 +1,21 @@
%define apis_version 1.3.04
%define repodir %{_javadir}/repository.jboss.com/apache-xml-commons/%{apis_version}-brew
%define repodirlib %{repodir}/lib
%define repodirsrc %{repodir}/src
#%define javahome /usr/lib/jvm/jdk-gcj
Name: xml-commons-resolver Name: xml-commons-resolver
Version: 1.2 Version: 1.2
Release: 7mamba Release: 8mamba
Summary: Resolver subproject of xml-commons. Summary: Resolver subproject of xml-commons.
Group: Applications/Publishing Group: Applications/Publishing
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: gil <puntogil@libero.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://xml.apache.org/commons/ URL: https://xerces.apache.org/xml-commons/
Source0: http://apache.fis.uniroma2.it/xml/commons/xml-commons-resolver-%{version}.tar.gz Source0: https://dlcdn.apache.org//xerces/xml-commons/binaries/xml-commons-resolver-%{version}.tar.gz
Source1: xml-commons-resolver-resolver.sh
Source2: xml-commons-resolver-xread.sh
Source3: xml-commons-resolver-xparse.sh
License: Apache Software License 2.0 License: Apache Software License 2.0
BuildRequires: apache-ant ## AUTOBUILDREQ-BEGIN
BuildRequires: coreutils ## AUTOBUILDREQ-END
BuildRequires: jpackage-utils BuildRequires: javapackages
BuildRequires: java-gcj-compat
BuildRequires: xml-commons-apis
Requires: coreutils Requires: coreutils
Requires: jpackage-utils Requires: javapackages
%if "%{stage1}" != "1"
Requires: xerces-j2 Requires: xerces-j2
Requires: xml-commons-apis Requires: xml-commons-apis
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
Resolver subproject of xml-commons. Resolver subproject of xml-commons.
@ -41,36 +27,16 @@ Group: Documentation
%description javadoc %description javadoc
Javadoc for %{name} Javadoc for %{name}
%package repolib
Group: Development/Libraries/Java
Summary: Artifacts to be uploaded to a repository library
%description repolib
Resolver subproject of xml-commons.
This package contains artifacts to be uploaded to a repository library.
This package is not meant to be installed but so its contents
can be extracted through rpm2cpio
%prep %prep
%setup -q %setup -q
# remove all binary libs and prebuilt javadocs
find . -name "*.jar" -exec rm -f {} \;
rm -rf docs
%build %build
perl -p -i -e 's|call Resolver|call resolver|g' resolver.xml
perl -p -i -e 's|classname="org.apache.xml.resolver.Catalog"|fork="yes" classname="org.apache.xml.resolver.apps.resolver"|g' resolver.xml
perl -p -i -e 's|org.apache.xml.resolver.Catalog|org.apache.xml.resolver.apps.resolver|g' src/manifest.resolver
export JAVA_HOME=%java_home
ant -f resolver.xml jar javadocs
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir} mkdir -p %{buildroot}%{_javadir}
cp build/resolver.jar %{buildroot}%{_javadir}/xml-commons-resolver-%{version}.jar cp resolver.jar %{buildroot}%{_javadir}/xml-commons-resolver-%{version}.jar
( (
pushd %{buildroot}%{_javadir} pushd %{buildroot}%{_javadir}
@ -81,31 +47,14 @@ cp build/resolver.jar %{buildroot}%{_javadir}/xml-commons-resolver-%{version}.ja
) )
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version} mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr build/apidocs/resolver/* %{buildroot}%{_javadocdir}/%{name}-%{version} cp -pr apidocs/resolver/* %{buildroot}%{_javadocdir}/%{name}-%{version}
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{S:1} %{buildroot}%{_bindir}/xml-resolver
install -m 755 %{S:2} %{buildroot}%{_bindir}/xml-xread
install -m 755 %{S:3} %{buildroot}%{_bindir}/xml-xparse
mkdir -p %{buildroot}%{repodir}
mkdir -p %{buildroot}%{repodirlib}
mkdir -p %{buildroot}%{repodirsrc}
install -pm 644 %{SOURCE0} %{buildroot}%{repodirsrc}
cp -p %{buildroot}%{_javadir}/xml-commons-resolver-%{version}.jar %{buildroot}%{repodirlib}/resolver.jar
# gcj support
#%{_bindir}/aot-compile-rpm
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/xml-resolver
%attr(0755,root,root) %{_bindir}/xml-xparse
%attr(0755,root,root) %{_bindir}/xml-xread
%{_javadir}/xml-commons-resolver-%{version}.jar %{_javadir}/xml-commons-resolver-%{version}.jar
%{_javadir}/xml-commons-resolver.jar %{_javadir}/xml-commons-resolver.jar
%doc KEYS LICENSE.resolver.txt %doc KEYS LICENSE.resolver.txt
@ -114,11 +63,10 @@ cp -p %{buildroot}%{_javadir}/xml-commons-resolver-%{version}.jar %{buildroot}%{
%defattr(-,root,root) %defattr(-,root,root)
%doc %{_javadocdir}/%{name}-%{version} %doc %{_javadocdir}/%{name}-%{version}
%files repolib
%defattr(-,root,root)
%{repodir}
%changelog %changelog
* Sat Feb 03 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-8mamba
- repackaged using binary distribution
* Wed Mar 23 2011 gil <puntogil@libero.it> 1.2-7mamba * Wed Mar 23 2011 gil <puntogil@libero.it> 1.2-7mamba
- rebuilt with java-gcj-compat support - rebuilt with java-gcj-compat support