617dd687f9f52b3d8727c9a039764e0c8f20946c
[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:  jpackage-utils >= 0:1.5
14 BuildRequires:  rpmbuild(macros) >= 1.300
15 BuildRequires:  ant
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 This package provides standardized, efficient versions of utility
21 classes commonly encountered in concurrent Java programming. This code
22 consists of implementations of ideas that have been around for ages,
23 and is merely intended to save you the trouble of coding them.
24 Discussions of the rationale and applications of several of these
25 classes can be found in the second edition of Concurrent Programming
26 in Java.
27
28 %package javadoc
29 Summary:        Javadoc for %{name}
30 Group:          Documentation
31
32 %description javadoc
33 Javadoc for %{name}.
34
35 %prep
36 %setup -c -q
37 mkdir -p src/EDU/oswego/cs/dl/util
38 mv concurrent src/EDU/oswego/cs/dl/util
39 cp %{SOURCE1} build.xml
40
41 %build
42 %ant \
43   -Dversion=%{version} \
44   -Dj2se.apiurl=%{_javadocdir}/java \
45   jar javadoc
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{_javadir}
50 install %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/
51 ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
52 install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
53 cp -pr docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
54 ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %post javadoc
60 rm -f %{_javadocdir}/%{name}
61 ln -s %{name}-%{version} %{_javadocdir}/%{name}
62
63 %files
64 %defattr(644,root,root,755)
65 %{_javadir}/*.jar
66
67 %files javadoc
68 %defattr(644,root,root,755)
69 %doc %{_javadocdir}/%{name}-%{version}
70 %ghost %doc %{_javadocdir}/%{name}
This page took 0.302274 seconds and 2 git commands to generate.