Name: java-backport-util-concurrent Version: 3.1 Release: 2mamba Summary: Backport of JSR-166 java.util.concurrent API Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://backport-jsr166.sourceforge.net/ Source: http://downloads.sourceforge.net/project/backport-jsr166/backport-jsr166/%{version}/backport-util-concurrent-%{version}-src.zip License: Creative Commons Public Domain BuildRequires: apache-ant BuildRequires: java-junit3 BuildRequires: jpackage-utils Requires: java-junit3 Requires: jpackage-utils BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Backport of JSR-166 java.util.concurrent API, first introduced in Java 5.0, to Java 1.4 and other releases. Based in most part on public-domain sources from JSR 166, and the dl.util.concurrent package. %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc Backport of JSR-166 java.util.concurrent API, first introduced in Java 5.0, to Java 1.4 and other releases. Based in most part on public-domain sources from JSR 166, and the dl.util.concurrent package. This package contains documentation for %{name}. %prep %setup -q -n backport-util-concurrent-%{version}-src for j in $(find . -name "*.jar"); do mv $j ${j}.no done for c in $(find . -name "*.class"); do rm -rf $c done rm -rf doc %build pushd external ln -sf $(build-classpath junit-3.8.2) junit.jar # ln -sf $(build-classpath ant-launcher) ant-launcher.jar popd mkdir -p doc export JAVA_HOME=%{_jvmdir}/jdk export ANT_HOME=%{_datadir}/ant export CLASSPATH ant \ -Djavadoc.executable=$JAVA_HOME/bin/javadoc \ dist %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} install -m 644 backport-util-concurrent-dist/backport-util-concurrent.jar \ %{buildroot}%{_javadir}/backport-util-concurrent-%{version}.jar ( cd %{buildroot}%{_javadir} for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` done ) mkdir -p %{buildroot}%{_javadocdir}/backport-util-concurrent-%{version} cp -pr backport-util-concurrent-dist/doc/* %{buildroot}%{_javadocdir}/backport-util-concurrent-%{version} ln -sf backport-util-concurrent-%{version} %{buildroot}%{_javadocdir}/backport-util-concurrent %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_javadir}/backport-util-concurrent-%{version}.jar %{_javadir}/backport-util-concurrent.jar %doc backport-util-concurrent-dist/{LEGAL,license.html,README.html} %files javadoc %defattr(-,root,root) %{_javadocdir}/backport-util-concurrent-%{version} %{_javadocdir}/backport-util-concurrent %changelog * Sun Nov 07 2010 gil 3.1-2mamba - rebuilt devel * Fri Apr 17 2009 gil 3.1-1mamba - package created by autospec