]> git.pld-linux.org Git - packages/beecrypt.git/blame - beecrypt.spec
- use jdk for supported platforms; otherwise gcc-java
[packages/beecrypt.git] / beecrypt.spec
CommitLineData
d97ff880 1#
4d383701 2# WARNING: despite unchanged SONAME, the RSA ABI (and API) has changed since 3.x!
5bdc9e19 3#
d97ff880 4# Conditional build:
32db796d 5%bcond_without java # build with Java support
5bdc9e19 6%bcond_with javac # use javac instead of gcj
9c971131 7%bcond_without python # don't build python module
7fbed49d 8%bcond_without doc # don't build documentation
01129d60 9%bcond_without static_libs # don't build static libraries
d97ff880 10#
91407a9e 11Summary: The BeeCrypt Cryptography Library
5293cd2f 12Summary(pl): Biblioteka kryptograficzna BeeCrypt
91407a9e 13Name: beecrypt
5bdc9e19 14Version: 4.1.2
d198d7e0 15Release: 6
22964bea 16Epoch: 2
91407a9e 17License: LGPL
d97ff880 18Group: Libraries
049b6d8b 19Source0: http://dl.sourceforge.net/beecrypt/%{name}-%{version}.tar.gz
5bdc9e19 20# Source0-md5: 820d26437843ab0a6a8a5151a73a657c
6f800bf2 21Patch0: %{name}-opt.patch
1b30549c 22Patch1: %{name}-lib64_fix.patch
c0fd553b 23Patch2: %{name}-ac_python.patch
63fbc33d 24URL: http://sourceforge.net/projects/beecrypt/
e7d47e5c 25BuildRequires: autoconf >= 2.50
d97ff880 26BuildRequires: automake
7fbed49d 27%if %{with doc}
d48e1138 28BuildRequires: doxygen
7fbed49d 29%endif
32db796d 30%if %{with java} && !%{with javac}
2f43e48b
AM
31%ifarch i586 i686 athlon pentium3 pentium4 %{x8664}
32BuildRequires: jdk
33%else
9c12ea62 34BuildRequires: gcc-java
2f43e48b
AM
35BuildRequires: libgcj-devel
36%endif
5bdc9e19 37%endif
7fbed49d 38%if %{with doc}
d77df8a9 39BuildRequires: ghostscript
2c40516b 40BuildRequires: graphviz
7fbed49d 41%endif
32db796d 42%if %{with java} && %{with javac}
5bdc9e19
JB
43BuildRequires: jdk
44%endif
d97ff880 45BuildRequires: libtool
c0fd553b 46%if %{with python}
47BuildRequires: python-devel
48BuildRequires: python-modules
49%endif
442e4fde 50BuildRequires: rpmbuild(macros) >= 1.213
7fbed49d 51%if %{with doc}
d77df8a9
JB
52BuildRequires: tetex-dvips
53BuildRequires: tetex-format-latex
54BuildRequires: tetex-latex-dstroke
1349ca4d 55# note: this is incorrect place, it should be somewhere in tetex packages
56BuildRequires: tetex-metafont
7fbed49d 57%endif
63fbc33d 58BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
91407a9e 59
049b6d8b 60%define specflags_alpha -mno-explicit-relocs
19d4c14b 61
91407a9e 62%description
63BeeCrypt is an open source cryptography library that contains highly
64optimized C and assembler implementations of many well-known
65algorithms including Blowfish, MD5, SHA-1, Diffie-Hellman, and
66ElGamal.
67
68%description -l pl
69