2 %define idmetaversion %(. ./IDMETA; echo $VERSION|tr -d '\n')
4 Version: %{idmetaversion}
6 Summary: Z39.50 client toolkit for Java
8 Group: Applications/Internet
10 URL: http://www.indexdata.com/yaz4j
11 Source0: yaz4j-%{version}.tar.gz
12 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
14 BuildRequires: libyaz5-devel
15 BuildRequires: redhat-rpm-config
16 BuildRequires: maven3-indexdata
22 yaz4j is a toolkit for Java which includes a wrapper for the ZOOM API of YAZ.
23 This allows developers to write Z39.50/SRU clients in Java. yaz4j supports
24 both search and scan. See the javadoc for details.
26 %package -n yaz4j-tomcat6
27 Summary: yaz4j tomcat6 integration via symlink
28 Requires: yaz4j = %{version}
30 Group: Applications/Internet
32 %description -n yaz4j-tomcat6
41 %post -n yaz4j-tomcat6
42 ln -sf %{_datadir}/java/yaz4j.jar /usr/share/tomcat6/lib
44 %preun -n yaz4j-tomcat6
46 rm -f /usr/share/tomcat6/lib/yaz4j.jar
56 rm -rf %{RPM_BUILD_ROOT}
57 mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/java
58 cp any/target/yaz4j.jar ${RPM_BUILD_ROOT}/%{_datadir}/java
59 mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}
60 cp unix/target/libyaz4j.so ${RPM_BUILD_ROOT}/%{_libdir}
63 rm -rf %{RPM_BUILD_ROOT}
66 %defattr(-,root,root,-)
67 %{_datadir}/java/yaz4j.jar
71 %files -n yaz4j-tomcat6