-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobjectweb-anttask.spec
More file actions
62 lines (52 loc) · 1.51 KB
/
objectweb-anttask.spec
File metadata and controls
62 lines (52 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
%{?use_default_jdk:%use_default_jdk 8}
Summary: ObjectWeb Ant task
Summary(pl.UTF-8): Zadanie Anta ObjectWeb
Name: objectweb-anttask
Version: 1.3.2
Release: 3
License: LGPL
Group: Development/Languages/Java
Source0: http://download.forge.objectweb.org/monolog/ow_util_ant_tasks_%{version}.zip
# Source0-md5: cd602bf75a0feab480fa97739955b84e
Patch0: %{name}-ant.patch
URL: http://forge.objectweb.org/projects/monolog/
%buildrequires_jdk
BuildRequires: ant >= 1.7
BuildRequires: jpackage-utils
BuildRequires: rpm-javaprov
BuildRequires: rpmbuild(macros) >= 2.058
BuildRequires: unzip
BuildRequires: xalan-j
Requires: ant >= 1.7
# for dependency component
Suggests: asm2 >= 2.1
#Provides: owanttask
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
ObjectWeb Ant task.
%description -l pl.UTF-8
Zadanie Anta ObjectWeb.
%prep
%setup -c -q -n %{name}
%patch -P0 -p1
find output -name '*.class' | xargs rm -f
rm externals/ant.jar
%build
export JAVA_HOME="%{java_home}"
# use bundled asm-2.1 for build to avoid loop (asm2 BR: objectweb-anttask)
required_jars="xalan"
export CLASSPATH="$(build-classpath $required_jars):externals/asm-2.1.jar"
%ant jar \
-Dbuild.compiler=modern
%install
rm -rf $RPM_BUILD_ROOT
# jars
install -d $RPM_BUILD_ROOT%{_javadir}
install output/lib/ow_util_ant_tasks.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -sf %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%{_javadir}/*.jar