xml-commons-apis/xml-commons-apis.spec

121 lines
3.5 KiB
RPMSpec

Name: xml-commons-apis
Version: 1.4.01
Release: 4mamba
Summary: APIs for DOM, SAX, and JAXP
Group: Applications/Publishing
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://xerces.apache.org/xml-commons/
Source0: https://dlcdn.apache.org//xerces/xml-commons/binaries/xml-commons-external-%{version}-bin.tar.gz
License: Apache License 2.0, W3C, Public Domain
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
Requires: javapackages
%description
%{name} is designed to organize and have common packaging for the various externally-defined standard interfaces for XML. This includes the DOM, SAX, and JAXP.
%package manual
Summary: Manual for %{name}
Group: Documentation
%description manual
%{name} is designed to organize and have common packaging for the various externally-defined standard interfaces for XML. This includes the DOM, SAX, and JAXP.
Manual for %{name}.
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation
%description javadoc
%{name} is designed to organize and have common packaging for the various externally-defined standard interfaces for XML. This includes the DOM, SAX, and JAXP.
Javadoc for %{name}.
%prep
%setup -q -n xml-commons-external-%{version}
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}
install -pm 644 xml-apis.jar \
%{buildroot}%{_javadir}/%{name}-%{version}.jar
install -pm 644 xml-apis-ext.jar \
%{buildroot}%{_javadir}/%{name}-ext-%{version}.jar
(
pushd %{buildroot}%{_javadir}
for jar in %{name}-%{version}.jar; do
ln -sf ${jar} dom3-${jar}
done
popd
)
(
pushd %{buildroot}%{_javadir}
for jar in *-%{version}.jar; do
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
done
popd
)
ln -sf %{name}.jar %{buildroot}%{_javadir}/jaxp13.jar
ln -sf %{name}.jar %{buildroot}%{_javadir}/jaxp.jar
ln -sf %{name}.jar %{buildroot}%{_javadir}/xml-commons-jaxp-1.3-apis.jar
mkdir -p %{buildroot}%{_javadocdir}/xml-commons-apis-%{version}
cp -pr docs/javadoc/* %{buildroot}%{_javadocdir}/xml-commons-apis-%{version}
ln -s xml-commons-apis-%{version} %{buildroot}%{_javadocdir}/xml-commons-apis
rm -rf docs/javadoc
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/dom3-xml-commons-apis-%{version}.jar
%{_javadir}/dom3-xml-commons-apis.jar
%{_javadir}/jaxp.jar
%{_javadir}/jaxp13.jar
%{_javadir}/xml-commons-apis-%{version}.jar
%{_javadir}/xml-commons-apis-ext-%{version}.jar
%{_javadir}/xml-commons-apis-ext.jar
%{_javadir}/xml-commons-apis.jar
%{_javadir}/xml-commons-jaxp-1.3-apis.jar
%doc LICENSE* NOTICE README*
%files manual
%defattr(-,root,root)
%doc docs/*
%files javadoc
%defattr(-,root,root)
%{_javadocdir}/*
%changelog
* Sat Feb 03 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.01-4mamba
- rebuilt from binary distribution
* Wed Mar 23 2011 gil <puntogil@libero.it> 1.4.01-3mamba
- rebuilt with java-openjdk support
* Wed Dec 22 2010 gil <puntogil@libero.it> 1.4.01-2mamba
- add OSGi manifest (eclipe,)
* Tue Aug 24 2010 gil <puntogil@libero.it> 1.4.01-1mamba
- update to 1.4.01
* Sun Jan 10 2010 gil <puntogil@libero.it> 1.3.04-2mamba
- added new sub package repolib
* Thu Feb 26 2009 gil <puntogil@libero.it> 1.3.04-1mamba
- rebuilt for compatibility with previous releases
* Mon Dec 22 2008 gil <puntogil@libero.it> 1.3.04svn-1mamba
- package created by autospec