%define pkgver %(echo %version | tr . _) Name: jgoodies-common Version: 1.2.1 Release: 1mamba Summary: Java JGoodies common library Group: System/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.jgoodies.com/ Source: http://www.jgoodies.com/download/libraries/common/jgoodies-common-%{pkgver}.zip License: BSD ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildRequires: jpackage-utils BuildRequires: apache-ant BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Java JGoodies common library. %package javadoc Summary: Javadoc documentation for %{name} Group: Documentation %description javadoc This package contains the Javadoc documentation for JGoodies Common. %prep %setup -q for j in $(find . -name "*.jar"); do mv $j $j.no done %build ant compile jar javadoc %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -p -d %{buildroot}%{_javadir} \ %{buildroot}%{_javadocdir}/%{name}-%{version} install -p -m 644 build/jgoodies-common.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar cp -pr build/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version} cd %{buildroot}%{_javadocdir} ln -s %{name}-%{version} %{name} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_javadir}/%{name}-%{version}.jar %{_javadir}/%{name}.jar %doc LICENSE.txt %files javadoc %defattr(-,root,root) %dir %{_javadocdir}/%{name} %dir %{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name}-%{version}/* %doc README.html %changelog * Wed Jan 15 2014 Silvan Calarco 1.2.1-1mamba - package created using the webbuild interface