2 # WARNING: despite unchanged SONAME, the RSA ABI (and API) has changed since 3.x!
5 %bcond_without javaglue # build with Java support
6 %bcond_with javac # use javac instead of gcj
7 %bcond_without python # don't build python module
9 Summary: The BeeCrypt Cryptography Library
10 Summary(pl): Biblioteka kryptograficzna BeeCrypt
17 Source0: http://heanet.dl.sourceforge.net/beecrypt/%{name}-%{version}.tar.gz
18 # Source0-md5: 820d26437843ab0a6a8a5151a73a657c
19 Patch0: %{name}-opt.patch
20 Patch1: %{name}-lib64_fix.patch
21 Patch2: %{name}-ac_python.patch
22 URL: http://sourceforge.net/projects/beecrypt/
23 BuildRequires: autoconf >= 2.50
24 BuildRequires: automake
25 BuildRequires: doxygen
26 %if %{with javaglue} && !%{with javac}
29 BuildRequires: ghostscript
30 BuildRequires: graphviz
31 %if %{with javaglue} && %{with javac}
34 BuildRequires: libtool
35 BuildRequires: libgcj-devel
37 BuildRequires: python-devel
38 BuildRequires: python-modules
40 BuildRequires: tetex-dvips
41 BuildRequires: tetex-format-latex
42 BuildRequires: tetex-latex-dstroke
43 # note: this is incorrect place, it should be somewhere in tetex packages
44 BuildRequires: tetex-metafont
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 %define specflags_alpha -mno-explicit-relocs
50 BeeCrypt is an open source cryptography library that contains highly
51 optimized C and assembler implementations of many well-known
52 algorithms including Blowfish, MD5, SHA-1, Diffie-Hellman, and
56 BeeCrypt jest open sourcow± bibliotek±, która zawiera wysoko
57 zoptymailzowane funkcje w C oraz assemblerze wielu algorytmów
58 szyfrowania m.in.: Blowfish, MD5, SHA-1, Diffie-Hellman oraz ElGamal.
61 Summary: The BeeCrypt Cryptography Library - development files
62 Summary(pl): Pliki dla programistów u¿ywaj±cych biblioteki BeeCrypt
63 Group: Development/Libraries
64 Requires: %{name} = %{epoch}:%{version}-%{release}
67 The BeeCrypt Cryptography Library - development files.
69 %description devel -l pl
70 Biblioteka kryptograficzna BeeCrypt - pliki dla programistów.
73 Summary: The BeeCrypt Cryptography Library - static library
74 Summary(pl): Biblioteka statyczna BeeCrypt
75 Group: Development/Libraries
76 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
79 The BeeCrypt Cryptography Library - static library.
81 %description static -l pl
82 Biblioteka statyczna BeeCrypt.
85 Summary: Development documentation for BeeCrypt
86 Summary(pl): Dokumentacja programisty dla biblioteki BeeCrypt
90 Development documentation for BeeCrypt.
92 %description doc -l pl
93 Dokumentacja programisty dla biblioteki BeeCrypt.
96 Summary: BeeCrypt Java glue library
97 Summary(pl): Biblioteka ³±cz±ca BeeCrypt z Jav±
99 Requires: %{name} = %{epoch}:%{version}-%{release}
102 BeeCrypt Java glue library.
104 %description java -l pl
105 Biblioteka ³±cz±ca BeeCrypt z Jav±.
108 Summary: Development files for BeeCrypt Java glue library
109 Summary(pl): Pliki programistyczne biblioteki ³±cz±cej Beecrypt z Jav±
110 Group: Development/Libraries
111 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
112 Requires: %{name}-java = %{epoch}:%{version}-%{release}
114 %description java-devel
115 Development files for BeeCrypt Java glue library.
117 %description java-devel -l pl
118 Pliki programistyczne biblioteki ³±cz±cej Beecrypt z Jav±.
121 Summary: BeeCrypt Java glue static library
122 Summary(pl): Statyczna biblioteka ³±cz±ca BeeCrypt z Jav±
123 Group: Development/Libraries
124 Requires: %{name}-java-devel = %{epoch}:%{version}-%{release}
126 %description java-static
127 BeeCrypt Java glue static library.
129 %description java-static -l pl
130 Statyczna biblioteka ³±cz±ca BeeCrypt z Jav±.
132 %package -n python-beecrypt
133 Summary: Python interface to BeeCrypt library
134 Summary(pl): Pythonowy interfejs do biblioteki BeeCrypt
135 Group: Development/Languages/Python
136 Requires: %{name} = %{epoch}:%{version}-%{release}
137 %pyrequires_eq python-libs
139 %description -n python-beecrypt
140 The python-beecrypt package contains a module which permits applications
141 written in the Python programming language to use the interface
142 supplied by BeeCrypt libraries.
144 %description -n python-beecrypt -l pl
145 Pakiet python-beecrypt zawiera modu³, który pozwala aplikacjom napisanym w
146 Pythonie na u¿ywanie interfejsu dostarczanego przez bibliotekê BeeCrytp.
154 # --with-cplusplus or building (even empty) *.cxx into libbeecrypt
155 # makes it (and thus rpm) depending on libstdc++ which is unacceptable
156 %{__perl} -pi -e 's/ cppglue\.cxx$//' Makefile.am
158 %{__perl} -pi -e 's/^GENERATE_LATEX .*/GENERATE_LATEX = NO/' Doxyfile.in
167 %{?with_javac:ac_cv_have_gcj=no} \
168 --without-cplusplus \
169 --with%{!?with_javaglue:out}-javaglue \
170 --with-cpu=%{_target_cpu} \
171 --with-arch=%{_target_cpu} \
173 --with%{!?with_python:out}-python
183 rm -rf $RPM_BUILD_ROOT
186 DESTDIR=$RPM_BUILD_ROOT
189 %{__make} install -C python \
190 DESTDIR=$RPM_BUILD_ROOT
193 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
196 rm -rf $RPM_BUILD_ROOT
198 %post -p /sbin/ldconfig
199 %postun -p /sbin/ldconfig
201 %post java -p /sbin/ldconfig
202 %postun java -p /sbin/ldconfig
205 %defattr(644,root,root,755)
206 %doc AUTHORS BENCHMARKS BUGS CONTRIBUTORS NEWS README
207 %attr(755,root,root) %{_libdir}/libbeecrypt.so.*.*.*
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_libdir}/libbeecrypt.so
212 %{_libdir}/libbeecrypt.la
213 %{_includedir}/beecrypt
216 %defattr(644,root,root,755)
217 %{_libdir}/libbeecrypt.a
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/libbeecrypt_java.so.*.*.*
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_libdir}/libbeecrypt_java.so
227 %{_libdir}/libbeecrypt_java.la
230 %defattr(644,root,root,755)
231 %{_libdir}/libbeecrypt_java.a
235 %defattr(644,root,root,755)
239 %files -n python-beecrypt
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{py_sitedir}/*.so