]> git.pld-linux.org Git - packages/beecrypt.git/blame - beecrypt.spec
- tabs in preamble
[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
6da54b22 12Summary(pl.UTF-8): 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
710e653a 35BuildRequires: libgcj-devel
2f43e48b 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
42d161bc
JR
68%description -l pl.UTF-8
69BeeCrypt jest open sourcową biblioteką, która zawiera wysoko
70zoptymailzowane funkcje w C oraz assemblerze wielu algorytmów
5293cd2f 71szyfrowania m.in.: Blowfish, MD5, SHA-1, Diffie-Hellman oraz ElGamal.
91407a9e 72
81aa497c 73%package devel
74Summary: The BeeCrypt Cryptography Library - development files
6da54b22 75Summary(pl.UTF-8): Pliki dla programistów używających biblioteki BeeCrypt
81aa497c 76Group: Development/Libraries
82780c6a 77Requires: %{name} = %{epoch}:%{version}-%{release}
81aa497c 78
91407a9e 79%description devel
81aa497c 80The BeeCrypt Cryptography Library - development files.
81
42d161bc
JR
82%description devel -l pl.UTF-8
83Biblioteka kryptograficzna BeeCrypt - pliki dla programistów.
5293cd2f 84
81aa497c 85%package static
86Summary: The BeeCrypt Cryptography Library - static library
6da54b22 87Summary(pl.UTF-8): Biblioteka statyczna BeeCrypt
81aa497c 88Group: Development/Libraries
82780c6a 89Requires: %{name}-devel = %{epoch}:%{version}-%{release}
91407a9e 90
81aa497c 91%description static
92The BeeCrypt Cryptography Library - static library.
91407a9e 93
42d161bc 94%description static -l pl.UTF-8
5293cd2f
JB
95Biblioteka statyczna BeeCrypt.
96
d77df8a9
JB
97%package doc
98Summary: Development documentation for BeeCrypt
6da54b22 99Summary(pl.UTF-8): Dokumentacja programisty dla biblioteki BeeCrypt
d77df8a9
JB
100Group: Documentation
101
102%description doc
103Development documentation for BeeCrypt.
104
42d161bc 105%description doc -l pl.UTF-8
d77df8a9
JB
106Dokumentacja programisty dla biblioteki BeeCrypt.
107
5bdc9e19
JB
108%package java
109Summary: BeeCrypt Java glue library
6da54b22 110Summary(pl.UTF-8): Biblioteka łącząca BeeCrypt z Javą
5bdc9e19
JB
111Group: Libraries
112Requires: %{name} = %{epoch}:%{version}-%{release}
113
114%description java
115BeeCrypt Java glue library.
116
42d161bc
JR
117%description java -l pl.UTF-8
118Biblioteka łącząca BeeCrypt z Javą.
5bdc9e19
JB
119
120%package java-devel
121Summary: Development files for BeeCrypt Java glue library
6da54b22 122Summary(pl.UTF-8): Pliki programistyczne biblioteki łączącej Beecrypt z Javą
5bdc9e19
JB
123Group: Development/Libraries
124Requires: %{name}-devel = %{epoch}:%{version}-%{release}
125Requires: %{name}-java = %{epoch}:%{version}-%{release}
126
127%description java-devel
128Development files for BeeCrypt Java glue library.
129
42d161bc
JR
130%description java-devel -l pl.UTF-8
131Pliki programistyczne biblioteki łączącej Beecrypt z Javą.
5bdc9e19
JB
132
133%package java-static
134Summary: BeeCrypt Java glue static library
6da54b22 135Summary(pl.UTF-8): Statyczna biblioteka łącząca BeeCrypt z Javą
5bdc9e19
JB
136Group: Development/Libraries
137Requires: %{name}-java-devel = %{epoch}:%{version}-%{release}
138
139%description java-static
140BeeCrypt Java glue static library.
141
42d161bc
JR
142%description java-static -l pl.UTF-8
143Statyczna biblioteka łącząca BeeCrypt z Javą.
5bdc9e19 144
6f800bf2
AF
145%package -n python-beecrypt
146Summary: Python interface to BeeCrypt library
6da54b22 147Summary(pl.UTF-8): Pythonowy interfejs do biblioteki BeeCrypt
6f800bf2 148Group: Development/Languages/Python
82780c6a 149Requires: %{name} = %{epoch}:%{version}-%{release}
5bdc9e19 150%pyrequires_eq python-libs
6f800bf2
AF
151
152%description -n python-beecrypt
049b6d8b
ER
153The python-beecrypt package contains a module which permits
154applications written in the Python programming language to use the
155interface supplied by BeeCrypt libraries.
6f800bf2 156
42d161bc
JR
157%description -n python-beecrypt -l pl.UTF-8
158Pakiet python-beecrypt zawiera moduł, który pozwala aplikacjom
159napisanym w Pythonie na używanie interfejsu dostarczanego przez
160bibliotekę BeeCrytp.
6f800bf2 161
91407a9e 162%prep
1b30549c 163%setup -q
63fbc33d 164%patch0 -p1
d97ff880 165%patch1 -p1
c0fd553b 166%patch2 -p1
1b30549c
JB
167
168# --with-cplusplus or building (even empty) *.cxx into libbeecrypt
169# makes it (and thus rpm) depending on libstdc++ which is unacceptable
170%{__perl} -pi -e 's/ cppglue\.cxx$//' Makefile.am
d77df8a9
JB
171# only html docs
172%{__perl} -pi -e 's/^GENERATE_LATEX .*/GENERATE_LATEX = NO/' Doxyfile.in
91407a9e 173
174%build
63fbc33d
AF
175%{__libtoolize}
176%{__aclocal}
177%{__autoconf}
178%{__autoheader}
179%{__automake}
180%configure \
5bdc9e19 181 %{?with_javac:ac_cv_have_gcj=no} \
1b30549c 182 --without-cplusplus \
df503361 183 --with%{!?with_java:out}-java \
d97ff880 184 --with-cpu=%{_target_cpu} \
01129d60 185 %{!?with_static_libs:--enable-static=no} \
442e4fde 186%ifarch %{x8664}
d71f5835
JB
187 --with-arch=x86_64 \
188%else
679c2a8f 189 --with-arch=%{_target_cpu} \
d71f5835 190%endif
4fe951cb 191 --with-pic \
9c971131 192 --with%{!?with_python:out}-python
1b30549c 193%{__make}
91407a9e 194
a927c96f 195%if %{with python}
1b30549c 196%{__make} -C python
a927c96f 197%endif
e7d47e5c 198
7fbed49d 199%if %{with doc}
d48e1138 200doxygen
7fbed49d 201%endif
d48e1138 202
91407a9e 203%install
204rm -rf $RPM_BUILD_ROOT
8db3b7b5 205install -d $RPM_BUILD_ROOT/%{_lib}
81aa497c 206
e7d47e5c
JB
207%{__make} install \
208 DESTDIR=$RPM_BUILD_ROOT
209
a927c96f 210%if %{with python}
e7d47e5c
JB
211%{__make} install -C python \
212 DESTDIR=$RPM_BUILD_ROOT
a927c96f
JK
213%endif
214
8db3b7b5
JB
215mv -f $RPM_BUILD_ROOT%{_libdir}/libbeecrypt.so.*.*.* $RPM_BUILD_ROOT/%{_lib}
216ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib} ; echo libbeecrypt.so.*.*.*) \
217 $RPM_BUILD_ROOT%{_libdir}/libbeecrypt.so
218
1b30549c
JB
219rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
220
91407a9e 221%clean
81aa497c 222rm -rf $RPM_BUILD_ROOT
223
d97ff880 224%post -p /sbin/ldconfig
81aa497c 225%postun -p /sbin/ldconfig
91407a9e 226
5bdc9e19
JB
227%post java -p /sbin/ldconfig
228%postun java -p /sbin/ldconfig
229
91407a9e 230%files
231%defattr(644,root,root,755)
d97ff880 232%doc AUTHORS BENCHMARKS BUGS CONTRIBUTORS NEWS README
8db3b7b5 233%attr(755,root,root) /%{_lib}/libbeecrypt.so.*.*.*
91407a9e 234
235%files devel
236%defattr(644,root,root,755)
5bdc9e19
JB
237%attr(755,root,root) %{_libdir}/libbeecrypt.so
238%{_libdir}/libbeecrypt.la
239%{_includedir}/beecrypt
81aa497c 240
01129d60 241%if %{with static_libs}
81aa497c 242%files static
243%defattr(644,root,root,755)
5bdc9e19 244%{_libdir}/libbeecrypt.a
01129d60 245%endif
5bdc9e19 246
32db796d 247%if %{with java}
5bdc9e19
JB
248%files java
249%defattr(644,root,root,755)
250%attr(755,root,root) %{_libdir}/libbeecrypt_java.so.*.*.*
251
252%files java-devel
253%defattr(644,root,root,755)
254%attr(755,root,root) %{_libdir}/libbeecrypt_java.so
255%{_libdir}/libbeecrypt_java.la
256
01129d60 257%if %{with static_libs}
5bdc9e19
JB
258%files java-static
259%defattr(644,root,root,755)
260%{_libdir}/libbeecrypt_java.a
261%endif
01129d60 262%endif
6f800bf2 263
7fbed49d 264%if %{with doc}
d77df8a9
JB
265%files doc
266%defattr(644,root,root,755)
a8bc1658 267%doc docs/html
049b6d8b 268%endif
d77df8a9 269
a927c96f 270%if %{with python}
6f800bf2
AF
271%files -n python-beecrypt
272%defattr(644,root,root,755)
273%attr(755,root,root) %{py_sitedir}/*.so
a927c96f 274%endif
This page took 0.127928 seconds and 4 git commands to generate.