This commit is contained in:
parent
e5d7025c88
commit
c23c7aacd7
@ -29,11 +29,11 @@ License: Apache-2.0
|
|||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Url: http://xml.apache.org/xerces2-j/
|
Url: http://xml.apache.org/xerces2-j/
|
||||||
Source0: http://www.eu.apache.org/dist/xerces/j/source/Xerces-J-src.%{version}.tar.gz
|
Source0: http://www.eu.apache.org/dist/xerces/j/source/Xerces-J-src.%{version}.tar.gz
|
||||||
Source2: http://www.eu.apache.org/dist/xerces/j/source/Xerces-J-tools.%{version}.tar.gz
|
Source1: http://www.eu.apache.org/dist/xerces/j/source/Xerces-J-tools.%{version}.tar.gz
|
||||||
Source3: %{name}-version.sh
|
Source2: %{name}-version.sh
|
||||||
Source4: %{name}-version.1
|
Source3: %{name}-version.1
|
||||||
Source5: %{name}-constants.sh
|
Source4: %{name}-constants.sh
|
||||||
Source6: %{name}-constants.1
|
Source5: %{name}-constants.1
|
||||||
Provides: jaxp_parser_impl
|
Provides: jaxp_parser_impl
|
||||||
PreReq: update-alternatives /bin/ln
|
PreReq: update-alternatives /bin/ln
|
||||||
# some build requirements removed to enable jpackage bootstrap. this is
|
# some build requirements removed to enable jpackage bootstrap. this is
|
||||||
@ -166,16 +166,11 @@ This package contains the APIs subproject of xml-commons.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n xerces-%{cvs_version}
|
%setup -q -n xerces-%{cvs_version}
|
||||||
%setup -q -T -a 2 -D -n xerces-%{cvs_version}
|
%setup -q -T -a 1 -D -n xerces-%{cvs_version}
|
||||||
%setup -T -D -n xerces-%{cvs_version}
|
%setup -T -D -n xerces-%{cvs_version}
|
||||||
|
|
||||||
# Copy the custom ant tasks into place
|
echo 'javac.target=1.5' > build.properties
|
||||||
mkdir -p tools/org/apache/xerces/util
|
echo 'javac.source=1.5' >> build.properties
|
||||||
mkdir -p tools/bin
|
|
||||||
|
|
||||||
# Make sure upstream hasn't sneaked in any jars we don't know about
|
|
||||||
#find -name '*.class' -exec rm -f '{}' \;
|
|
||||||
#find -name '*.jar' -exec rm -f '{}' \;
|
|
||||||
|
|
||||||
sed -i 's/\r//' LICENSE README NOTICE build.sh
|
sed -i 's/\r//' LICENSE README NOTICE build.sh
|
||||||
|
|
||||||
@ -198,8 +193,12 @@ cp -p build/xml-apis.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}-xml-api
|
|||||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||||
# scripts
|
# scripts
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
||||||
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}-version
|
cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}-version
|
||||||
cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}-constants
|
cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/%{name}-constants
|
||||||
|
# mans
|
||||||
|
install -d -m 755 %{buildroot}%{_mandir}/man1
|
||||||
|
install -p -m 644 %{SOURCE3} %{buildroot}%{_mandir}/man1
|
||||||
|
install -p -m 644 %{SOURCE5} %{buildroot}%{_mandir}/man1
|
||||||
# demo
|
# demo
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||||
cp -p build/xercesSamples.jar \
|
cp -p build/xercesSamples.jar \
|
||||||
@ -247,7 +246,7 @@ ln -s %{_sysconfdir}/alternatives \
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
%doc LICENSE README ISSUES STATUS TODO
|
%doc LICENSE README
|
||||||
%{_javadir}/%{name}-%{version}.jar
|
%{_javadir}/%{name}-%{version}.jar
|
||||||
%{_javadir}/%{name}.jar
|
%{_javadir}/%{name}.jar
|
||||||
%ghost %{_javadir}/jaxp_parser_impl.jar
|
%ghost %{_javadir}/jaxp_parser_impl.jar
|
||||||
@ -271,5 +270,6 @@ ln -s %{_sysconfdir}/alternatives \
|
|||||||
%files scripts
|
%files scripts
|
||||||
%defattr(0755,root,root,0755)
|
%defattr(0755,root,root,0755)
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
/usr/share/man/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user