- R: jpackage-utils for %{_javadir}; cosmetics/cleanups
[packages/asm.git] / asm.spec
CommitLineData
1e19ed12 1%include /usr/lib/rpm/macros.java
68568c54 2Summary: A code manipulation tool to implement adaptable systems
daeaf472 3Summary(pl.UTF-8): Narzędzie do obróbki kodu do implementowania systemów adaptacyjnych
68568c54
ER
4Name: asm
5Version: 1.5.3
6Release: 0.1
7License: BSD-style
8Group: Development/Languages/Java
68568c54
ER
9Source0: http://download.forge.objectweb.org/asm/%{name}-%{version}.tar.gz
10# Source0-md5: f110714252dc20243dec751df659e415
11Source1: http://asm.objectweb.org/current/%{name}-eng.pdf
12# Source1-md5: 5f17bfac3563feb108793575f74ce27c
13Source2: http://asm.objectweb.org/doc/faq.html
14# Source2-md5: 556c0df057bced41517491784d556acc
ce7c24f4 15URL: http://asm.objectweb.org/
2bf12a67 16BuildRequires: ant
1e19ed12 17BuildRequires: jpackage-utils
68568c54 18BuildRequires: objectweb-anttask
1e19ed12
ER
19BuildRequires: rpm-javaprov
20BuildRequires: rpmbuild(macros) >= 1.300
33e879a3 21Requires: jpackage-utils
68568c54
ER
22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26ASM is a code manipulation tool to implement adaptable systems.
27
f4a8ecef
JR
28%description -l pl.UTF-8
29ASM to narzędzie do obróbki kodu do implementowania systemów
ce7c24f4
JB
30adaptacyjnych.
31
32%package javadoc
68568c54 33Summary: Javadoc for %{name}
daeaf472 34Summary(pl.UTF-8): Dokumentacja javadoc dla pakietu %{name}
68568c54 35Group: Documentation
1e19ed12 36Requires: jpackage-utils
68568c54 37
ce7c24f4 38%description javadoc
68568c54
ER
39Javadoc for %{name}.
40
f4a8ecef 41%description javadoc -l pl.UTF-8
ce7c24f4
JB
42Dokumentacja javadoc dla pakietu %{name}.
43
68568c54
ER
44%prep
45%setup -q
1e19ed12 46find -name '*.jar' | xargs rm -vf
68568c54
ER
47install -m 644 %{SOURCE1} .
48install -m 644 %{SOURCE2} .
49
50%build
1e19ed12
ER
51%ant jar jdoc \
52 -Dobjectweb.ant.tasks.path=$(build-classpath objectweb-anttask)
68568c54
ER
53
54%install
55rm -rf $RPM_BUILD_ROOT
56
57# jars
1e19ed12
ER
58install -d $RPM_BUILD_ROOT%{_javadir}
59for a in output/dist/lib/*.jar; do
60 jar=${a##*/}
61 cp -a output/dist/lib/$jar $RPM_BUILD_ROOT%{_javadir}/$jar
d7ccbf3a 62 ln -s $jar $RPM_BUILD_ROOT%{_javadir}/${jar%%-%{version}.jar}.jar
ce7c24f4 63done
68568c54
ER
64
65# javadoc
ce7c24f4 66install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
68568c54 67cp -pr output/dist/doc/javadoc/user/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
1e19ed12 68ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
68568c54
ER
69
70%clean
71rm -rf $RPM_BUILD_ROOT
72
73%post javadoc
1e19ed12 74ln -sf %{name}-%{version} %{_javadocdir}/%{name}
68568c54
ER
75
76%files
77%defattr(644,root,root,755)
78%doc README.txt faq.html asm-eng.pdf
1e19ed12 79%{_javadir}/*.jar
68568c54
ER
80
81%files javadoc
82%defattr(644,root,root,755)
1e19ed12
ER
83%{_javadocdir}/%{name}-%{version}
84%ghost %{_javadocdir}/%{name}
This page took 0.044006 seconds and 4 git commands to generate.