]>
Commit | Line | Data |
---|---|---|
40842614 | 1 | |
2 | %define major 2 | |
3 | %define minor 2 | |
4 | %define micro 0 | |
5 | %define ver %{major}_%{minor} | |
6 | ||
7 | Summary: XSLT processor for Java | |
8 | Summary(pl): Procesor XSLT napisany w Javie | |
9 | Name: xalan-j | |
10 | Version: %{major}.%{minor} | |
2bba51c6 | 11 | Release: 3 |
40842614 | 12 | License: Apache Software License |
13 | Group: Applications/Publishing/XML/Java | |
40842614 | 14 | URL: http://xml.apache.org/xalan-j |
15 | Source0: http://xml.apache.org/xalan-j/dist/%{name}_%{ver}-src.tar.gz | |
16 | Patch0: xalan-build.patch | |
17 | BuildRequires: jdk | |
a8576464 | 18 | BuildRequires: xerces-j >= 1.4.4-2 |
40842614 | 19 | Requires: jre |
a8576464 | 20 | Requires: xerces-j >= 1.4.4-2 |
40842614 | 21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
a8576464 | 24 | %define _javaclassdir %{_libdir}/java/ |
40842614 | 25 | |
26 | %description | |
27 | XSLT processor for Java. | |
28 | ||
29 | %description -l pl | |
30 | Procesor XSLT napisany w Javie. | |
31 | ||
32 | %prep | |
33 | %setup -q -n xalan-j_%{major}_%{minor}_%{micro} | |
34 | %patch0 -p1 | |
35 | ||
40842614 | 36 | mv build.sh build.sh.dos |
37 | sed 's/ | |
38 | $//' < build.sh.dos > build.sh | |
a8576464 | 39 | |
40 | %build | |
41 | JAVA_HOME=%{_libdir}/java-sdk | |
42 | export JAVA_HOME | |
43 | ||
44 | ANT_OPTS=-O | |
45 | export ANT_OPTS | |
2bba51c6 | 46 | |
40842614 | 47 | sh build.sh docs |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | install -d $RPM_BUILD_ROOT%{_javaclassdir} | |
52 | ||
2bba51c6 | 53 | install bin/xml-apis.jar $RPM_BUILD_ROOT%{_javaclassdir} |
40842614 | 54 | install build/xalan.jar $RPM_BUILD_ROOT%{_javaclassdir} |
55 | ||
56 | gzip -9nf readme.html License | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc {readme.html,License}.gz build/docs/* | |
2bba51c6 | 64 | %{_javaclassdir}/*.jar |