java-saxon8/java-saxon8.spec

97 lines
2.7 KiB
RPMSpec

%define pkgver %(echo %version | tr . -)
Name: java-saxon8
Version: 8.7.3
Release: 1mamba
Summary: Java XSLT processor
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://saxon.sourceforge.net
Source0: https://sourceforge.net/projects/saxon/files/Saxon-B/%{version}/saxonb%{pkgver}j.zip
License: MPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
Requires: javapackages
Provides: java-saxon8-dom
Obsoletes: java-saxon8-dom <= 8.7-3mamba
Provides: java-saxon8-jdom
Obsoletes: java-saxon8-jdom <= 8.7-3mamba
Provides: java-saxon8-sql
Obsoletes: java-saxon8-sql <= 8.7-3mamba
Provides: java-saxon8-xom
Obsoletes: java-saxon8-xom <= 8.7-3mamba
Provides: java-saxon8-xpath
Obsoletes: java-saxon8-xpath <= 8.7-3mamba
%description
The SAXON package is a collection of tools for processing XML documents.
%prep
%setup -q -c %{name}-%{version}
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}
install -pm 644 saxon8.jar \
%{buildroot}%{_javadir}/saxon8-%{version}.jar
install -pm 644 saxon8-xpath.jar \
%{buildroot}%{_javadir}/saxon8-xpath-%{version}.jar
install -pm 644 saxon8-dom.jar \
%{buildroot}%{_javadir}/saxon8-dom-%{version}.jar
install -pm 644 saxon8-jdom.jar \
%{buildroot}%{_javadir}/saxon8-jdom-%{version}.jar
install -pm 644 saxon8-xom.jar \
%{buildroot}%{_javadir}/saxon8-xom-%{version}.jar
install -pm 644 saxon8-sql.jar \
%{buildroot}%{_javadir}/saxon8-sql-%{version}.jar
(
cd %{buildroot}%{_javadir}
for jar in *-%{version}*; do
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
done
)
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/saxon8-%{version}.jar
%{_javadir}/saxon8.jar
%{_javadir}/saxon8-dom-%{version}.jar
%{_javadir}/saxon8-dom.jar
%{_javadir}/saxon8-jdom-%{version}.jar
%{_javadir}/saxon8-jdom.jar
%{_javadir}/saxon8-sql-%{version}.jar
%{_javadir}/saxon8-sql.jar
%{_javadir}/saxon8-xom-%{version}.jar
%{_javadir}/saxon8-xom.jar
%{_javadir}/saxon8-xpath-%{version}.jar
%{_javadir}/saxon8-xpath.jar
%changelog
* Fri Aug 19 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 8.7.3-1mamba
- update to 8.7.3
* Fri Aug 19 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 8.7-4mamba
- repackaged using upstream prebuild jars
* Thu Mar 24 2011 gil <puntogil@libero.it> 8.7-3mamba
- rebuilt with java-openjdk support
* Wed Nov 24 2010 gil <puntogil@libero.it> 8.7-2mamba
- rebuilt devel
* Wed Feb 25 2009 gil <puntogil@libero.it> 8.7-1mamba
- package created by autospec