From 82c68fbc018e3837edfd3bec6422355963cbe65d86e522c1b034bbe6a5fa46bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 29 Sep 2016 11:23:44 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-pool2?expand=0&rev=6 --- apache-commons-pool2.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apache-commons-pool2.spec b/apache-commons-pool2.spec index 69814d7..7722e23 100644 --- a/apache-commons-pool2.spec +++ b/apache-commons-pool2.spec @@ -66,12 +66,13 @@ find . -name "*.jar" -exec rm -f {} \; %patch0 %build +export CLASSPATH=$(build-classpath cglib) ant -Djava.io.tmpdir=. clean dist %install # jars install -d -m 755 %{buildroot}%{_javadir} -install -m 644 dist/%{short_name}-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar +install -m 644 dist/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|apache-||g"`; done) (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) # javadoc