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