From b9526121fd0cd2a01b70dc8027e2c69b1aec4018 Mon Sep 17 00:00:00 2001 From: pawelz Date: Mon, 3 May 2010 13:43:03 +0000 Subject: [PATCH] - ant task definition Changed files: ant-yuicompressor.spec -> 1.5 antlib.xml -> 1.1 --- ant-yuicompressor.spec | 7 ++++++- antlib.xml | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 antlib.xml diff --git a/ant-yuicompressor.spec b/ant-yuicompressor.spec index 938c1c2..9222fdf 100644 --- a/ant-yuicompressor.spec +++ b/ant-yuicompressor.spec @@ -10,6 +10,7 @@ License: BSD Group: Development/Languages/Java Source0: http://github.com/n0ha/yui-compressor-ant-task/tarball/yui-compressor-ant-task-0.5/%{name}-%{version}.tar.gz # Source0-md5: 895d08ada70ec00d48b9b008a1054a8f +Source1: antlib.xml URL: http://github.com/n0ha/yui-compressor-ant-task/ BuildRequires: ant BuildRequires: jdk @@ -86,6 +87,10 @@ CLASSPATH=$(build-classpath $required_jars) %ant jar javadocs \ -Dbuild.sysclasspath=first +install -d net/noha/tools/ant/yuicompressor/tasks/ +cp -a %{SOURCE1} net/noha/tools/ant/yuicompressor/tasks/antlib.xml +%{jar} uf build/bin/yui-compressor-ant-task-%{version}.jar net/noha/tools/ant/yuicompressor/tasks/antlib.xml + %{jar} cf %{name}.src.jar -C src . %install @@ -93,7 +98,7 @@ rm -rf $RPM_BUILD_ROOT # ant task install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ant.d,%{_javadir}/ant} -cp -a build/bin/yui-compressor-ant-task-0.5.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{name}-%{version}.jar +cp -a build/bin/yui-compressor-ant-task-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{name}-%{version}.jar ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{name}.jar cp -a ant.conf $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/yuicompressor diff --git a/antlib.xml b/antlib.xml new file mode 100644 index 0000000..c2f5fd6 --- /dev/null +++ b/antlib.xml @@ -0,0 +1,6 @@ + + + + + -- 2.44.0