java-xom/java-xom.spec

75 lines
2.1 KiB
RPMSpec
Raw Normal View History

%define javahome %{_jvmdir}/jdk
%define with_test 0
Name: java-xom
Version: 1.3.5
Release: 1mamba
Summary: XML Pull Parser
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.xom.nu/
Source0: http://www.cafeconleche.org/XOM/xom-%{version}.tar.gz
License: LGPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
Requires: javapackages
Requires: xalan-j2
Requires: xerces-j2
#Requires: xml-commons-apis
%description
XOM is a new XML object model. It is an open source (LGPL), tree-based API for processing XML with Java that strives for correctness, simplicity, and performance, in that order XOM is designed to be easy to learn and easy to use. It works very straight-forwardly, and has a very shallow learning curve. Assuming you're already familiar with XML you should be able to get up and running with XOM very quickly
%prep
%setup -q -n XOM
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}
install -m 644 xom-%{version}.jar \
%{buildroot}%{_javadir}/xom-%{version}.jar
(
cd %{buildroot}%{_javadir}
for jar in *-%{version}.jar; do
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
done
)
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/xom-%{version}.jar
%{_javadir}/xom.jar
%doc LICENSE.txt lgpl.txt
%changelog
* Tue Aug 16 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.5-1mamba
- update to 1.3.5
* Thu Mar 24 2011 gil <puntogil@libero.it> 1.2.1-3mamba
- rebuilt with java-gcj-compat support
* Fri Nov 26 2010 gil <puntogil@libero.it> 1.2.1-2mamba
- rebuilt devel
* Sat Apr 18 2009 gil <puntogil@libero.it> 1.2.1-1mamba
- update to 1.2.1
* Wed Mar 11 2009 gil <puntogil@libero.it> 1.0-3mamba
- rebuilt
* Sun Mar 08 2009 gil <puntogil@libero.it> 1.0-2mamba
- added java-dom4j java-tagsoup support
- added demo pakage
* Sun Mar 01 2009 gil <puntogil@libero.it> 1.0-1mamba
- package created by autospec