a92df650cb6721a7e61b65e94bb57781af2bf053
[packages/concurrent.git] / concurrent.spec
1 %include        /usr/lib/rpm/macros.java
2 Summary:        Utility classes for concurrent Java programming
3 Name:           concurrent
4 Version:        1.3.2
5 Release:        0.1
6 Epoch:          0
7 License:        Public domain
8 Source0:        http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/current/%{name}.tar.gz
9 # Source0-md5:  6a7898a403c3c400f271c6e9285ce9a2
10 Source1:        %{name}-ant.xml
11 Group:          Development/Languages/Java
12 URL:            http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/
13 BuildRequires:  ant
14 BuildRequires:  jpackage-utils >= 0:1.5
15 BuildRequires:  rpm-javaprov
16 BuildRequires:  rpmbuild(macros) >= 1.300
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 This package provides standardized, efficient versions of utility
22 classes commonly encountered in concurrent Java programming. This code
23 consists of implementations of ideas that have been around for ages,
24 and is merely intended to save you the trouble of coding them.
25 Discussions of the rationale and applications of several of these
26 classes can be found in the second edition of Concurrent Programming
27 in Java.
28
29 %package javadoc
30 Summary:        Javadoc for %{name}
31 Group:          Documentation
32 Requires:       jpackage-utils
33
34 %description javadoc
35 Javadoc for %{name}.
36
37 %prep
38 %setup -c -q
39 mkdir -p src/EDU/oswego/cs/dl/util
40 mv concurrent src/EDU/oswego/cs/dl/util
41 cp %{SOURCE1} build.xml
42
43 %build
44 %ant \
45   -Dversion=%{version} \
46   -Dj2se.apiurl=%{_javadocdir}/java \
47   jar javadoc
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{_javadir}
52 install %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/
53 ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
54 install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
55 cp -pr docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
56 ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post javadoc
62 rm -f %{_javadocdir}/%{name}
63 ln -s %{name}-%{version} %{_javadocdir}/%{name}
64
65 %files
66 %defattr(644,root,root,755)
67 %{_javadir}/*.jar
68
69 %files javadoc
70 %defattr(644,root,root,755)
71 %doc %{_javadocdir}/%{name}-%{version}
72 %ghost %doc %{_javadocdir}/%{name}
This page took 0.041827 seconds and 2 git commands to generate.