]>
Commit | Line | Data |
---|---|---|
af3942f3 | 1 | # TODO: |
2 | # - build provider (see %%build section) | |
3 | # - javadoc | |
5d14f7aa | 4 | # - consider C: java-sun, see NOTE |
3e33cb51 | 5 | # NOTE: |
6 | # - it is possible to build it using java-sun, but sun's JRE provides better | |
7 | # implementation of JSSE. This package is a JSSE replacemnt for alternative | |
8 | # JREs, like java-gcj-compat. | |
9 | ||
af3942f3 | 10 | # |
11 | %define srcname jessie | |
12 | Summary: A free implementation of the JSSE | |
13 | Summary(pl.UTF-8): Wolna implementacja JSSE | |
14 | Name: java-jessie | |
15 | Version: 1.0.1 | |
3e33cb51 | 16 | Release: 2 |
af3942f3 | 17 | License: GPL v2 |
18 | Group: Libraries/Java | |
19 | Source0: http://syzygy.metastatic.org/jessie/jessie-%{version}.tar.gz | |
20 | # Source0-md5: c14db8483ca9fae428b8497659861ef0 | |
21 | URL: http://www.nongnu.org/jessie/ | |
22 | BuildRequires: ant | |
af3942f3 | 23 | BuildRequires: java-gnu-classpath |
24 | BuildRequires: java-gnu-crypto >= 2.0.1 | |
794d430f | 25 | BuildRequires: jdk |
af3942f3 | 26 | BuildRequires: jpackage-utils >= 0:1.6 |
27 | BuildRequires: rpm-javaprov | |
28 | BuildRequires: rpmbuild(macros) >= 1.300 | |
29 | Requires: jpackage-utils | |
5d14f7aa | 30 | Provides: java(jsse) = 1.4 |
af3942f3 | 31 | BuildArch: noarch |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %description | |
35 | Jessie is a free, clean-room implementation of the Java Secure Sockets | |
36 | Extension, the JSSE. It provides the core API for programming network | |
37 | sockets with the Secure Socket Layer (SSL), which creates an | |
38 | authenticated, unforgeable, and protected layer around network | |
39 | communications. Its goal is to be a drop-in package for free Java | |
40 | class libraries such as Classpath and its derivatives, and is being | |
41 | written to depend only on free software, and only with the API | |
42 | specification and the public protocol specifications. | |
43 | ||
44 | %prep | |
45 | %setup -q -n jessie-%{version} | |
46 | ||
47 | %build | |
48 | %ant clean | |
3e33cb51 | 49 | %ant jsse.jar |
af3942f3 | 50 | |
51 | # Does not build | |
52 | %if %{with provider} | |
3e33cb51 | 53 | %ant compile-provider |
af3942f3 | 54 | %endif |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | install -d $RPM_BUILD_ROOT%{_javadir} | |
59 | ||
60 | # jars | |
61 | cp -a jsse.jar $RPM_BUILD_ROOT%{_javadir}/jsse-%{version}.jar | |
62 | ln -s jsse-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/jsse.jar | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
69 | %doc AUTHORS FAQ NEWS README THANKS TODO | |
70 | %{_javadir}/*.jar |