]> git.pld-linux.org Git - packages/beecrypt.git/blame - beecrypt.spec
- updated to 4.2.1 (new soname); docs dropped upstream
[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:
d5678950 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
01129d60 8%bcond_without static_libs # don't build static libraries
d97ff880 9#
91407a9e 10Summary: The BeeCrypt Cryptography Library
6da54b22 11Summary(pl.UTF-8): Biblioteka kryptograficzna BeeCrypt
91407a9e 12Name: beecrypt
d5678950
JB
13Version: 4.2.1
14Release: 1
22964bea 15Epoch: 2
d5678950 16License: LGPL v2.1+
d97ff880 17Group: Libraries
d5678950
JB
18Source0: http://dl.sourceforge.net/project/beecrypt/beecrypt/%{version}/%{name}-%{version}.tar.gz
19# Source0-md5: 8441c014170823f2dff97e33df55af1e
20Patch0: %{name}-ac.patch
21Patch1: %{name}-ac_python.patch
63fbc33d 22URL: http://sourceforge.net/projects/beecrypt/
e7d47e5c 23BuildRequires: autoconf >= 2.50
d97ff880 24BuildRequires: automake
32db796d 25%if %{with java} && !%{with javac}
2f43e48b
AM
26%ifarch i586 i686 athlon pentium3 pentium4 %{x8664}
27BuildRequires: jdk
28%else
9c12ea62 29BuildRequires: gcc-java
710e653a 30BuildRequires: libgcj-devel
2f43e48b 31%endif
5bdc9e19 32%endif
32db796d 33%if %{with java} && %{with javac}
5bdc9e19
JB
34BuildRequires: jdk
35%endif
d97ff880 36BuildRequires: libtool
c0fd553b 37%if %{with python}
38BuildRequires: python-devel
39BuildRequires: python-modules
f06a4408 40BuildRequires: rpm-pythonprov
c0fd553b 41%endif
442e4fde 42BuildRequires: rpmbuild(macros) >= 1.213
d5678950 43Obsoletes: beecrypt-doc
63fbc33d 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
91407a9e 45
d5678950
JB
46%define specflags_alpha -mno-explicit-relocs
47%define specflags_pentium2 -mmmx
48%define specflags_pentium3 -mmmx -msse
49%define specflags_pentium4 -mmmx -msse -msse2
50%define specflags_athlon -mmmx
19d4c14b 51
91407a9e 52%description
53BeeCrypt is an open source cryptography library that contains highly
54optimized C and assembler implementations of many well-known
55algorithms including Blowfish, MD5, SHA-1, Diffie-Hellman, and
56ElGamal.
57
42d161bc
JR
58%description -l pl.UTF-8
59BeeCrypt jest open sourcową biblioteką, która zawiera wysoko
60zoptymailzowane funkcje w C oraz assemblerze wielu algorytmów
5293cd2f 61szyfrowania m.in.: Blowfish, MD5, SHA-1, Diffie-Hellman oraz ElGamal.
91407a9e 62
81aa497c 63%package devel
64Summary: The BeeCrypt Cryptography Library - development files
6da54b22 65Summary(pl.UTF-8): Pliki dla programistów używających biblioteki BeeCrypt
81aa497c 66Group: Development/Libraries
82780c6a 67Requires: %{name} = %{epoch}:%{version}-%{release}
81aa497c 68
91407a9e 69%description devel
81aa497c 70The BeeCrypt Cryptography Library - development files.
71
42d161bc
JR
72%description devel -l pl.UTF-8
73Biblioteka kryptograficzna BeeCrypt - pliki dla programistów.
5293cd2f 74
81aa497c 75%package static
76Summary: The BeeCrypt Cryptography Library - static library
6da54b22 77Summary(pl.UTF-8): Biblioteka statyczna BeeCrypt
81aa497c 78Group: Development/Libraries
82780c6a 79Requires: %{name}-devel = %{epoch}:%{version}-%{release}
91407a9e 80
81aa497c 81%description static
82The BeeCrypt Cryptography Library - static library.
91407a9e 83
42d161bc 84%description static -l pl.UTF-8
5293cd2f
JB
85Biblioteka statyczna BeeCrypt.
86
5bdc9e19
JB
87%package java
88Summary: BeeCrypt Java glue library
6da54b22 89Summary(pl.UTF-8): Biblioteka łącząca BeeCrypt z Javą
5bdc9e19
JB
90Group: Libraries
91Requires: %{name} = %{epoch}:%{version}-%{release}
92
93%description java
94BeeCrypt Java glue library.
95
42d161bc
JR
96%description java -l pl.UTF-8
97Biblioteka łącząca BeeCrypt z Javą.
5bdc9e19
JB
98
99%package java-devel
100Summary: Development files for BeeCrypt Java glue library
6da54b22 101Summary(pl.UTF-8): Pliki programistyczne biblioteki łączącej Beecrypt z Javą
5bdc9e19
JB
102Group: Development/Libraries
103Requires: %{name}-devel = %{epoch}:%{version}-%{release}
104Requires: %{name}-java = %{epoch}:%{version}-%{release}
105
106%description java-devel
107Development files for BeeCrypt Java glue library.
108
42d161bc
JR
109%description java-devel -l pl.UTF-8
110Pliki programistyczne biblioteki łączącej Beecrypt z Javą.
5bdc9e19
JB
111
112%package java-static
113Summary: BeeCrypt Java glue static library
6da54b22 114Summary(pl.UTF-8): Statyczna biblioteka łącząca BeeCrypt z Javą
5bdc9e19
JB
115Group: Development/Libraries
116Requires: %{name}-java-devel = %{epoch}:%{version}-%{release}
117
118%description java-static
119BeeCrypt Java glue static library.
120
42d161bc
JR
121%description java-static -l pl.UTF-8
122Statyczna biblioteka łącząca BeeCrypt z Javą.
5bdc9e19 123
6f800bf2
AF
124%package -n python-beecrypt
125Summary: Python interface to BeeCrypt library
6da54b22 126Summary(pl.UTF-8): Pythonowy interfejs do biblioteki BeeCrypt
6f800bf2 127Group: Development/Languages/Python
82780c6a 128Requires: %{name} = %{epoch}:%{version}-%{release}
5bdc9e19 129%pyrequires_eq python-libs
6f800bf2
AF
130
131%description -n python-beecrypt
049b6d8b
ER
132The python-beecrypt package contains a module which permits
133applications written in the Python programming language to use the
134interface supplied by BeeCrypt libraries.
6f800bf2 135
42d161bc
JR
136%description -n python-beecrypt -l pl.UTF-8
137Pakiet python-beecrypt zawiera moduł, który pozwala aplikacjom
138napisanym w Pythonie na używanie interfejsu dostarczanego przez
139bibliotekę BeeCrytp.
6f800bf2 140
91407a9e 141%prep
1b30549c 142%setup -q
63fbc33d 143%patch0 -p1
d97ff880 144%patch1 -p1
1b30549c
JB
145
146# --with-cplusplus or building (even empty) *.cxx into libbeecrypt
147# makes it (and thus rpm) depending on libstdc++ which is unacceptable
148%{__perl} -pi -e 's/ cppglue\.cxx$//' Makefile.am
91407a9e 149
150%build
63fbc33d
AF
151%{__libtoolize}
152%{__aclocal}
153%{__autoconf}
154%{__autoheader}
155%{__automake}
156%configure \
5bdc9e19 157 %{?with_javac:ac_cv_have_gcj=no} \
d5678950 158 %{!?with_static_libs:--disable-static} \
1b30549c 159 --without-cplusplus \
df503361 160 --with%{!?with_java:out}-java \
d5678950 161 %{!?with_python:--without-python}
91407a9e 162
d5678950 163%{__make}
d48e1138 164
91407a9e 165%install
166rm -rf $RPM_BUILD_ROOT
8db3b7b5 167install -d $RPM_BUILD_ROOT/%{_lib}
81aa497c 168
e7d47e5c
JB
169%{__make} install \
170 DESTDIR=$RPM_BUILD_ROOT
171
d5678950
JB
172mv -f $RPM_BUILD_ROOT%{_libdir}/libbeecrypt.so.* $RPM_BUILD_ROOT/%{_lib}
173ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libbeecrypt.so.*.*.*) \
8db3b7b5
JB
174 $RPM_BUILD_ROOT%{_libdir}/libbeecrypt.so
175
d5678950 176%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
1b30549c 177
91407a9e 178%clean
81aa497c 179rm -rf $RPM_BUILD_ROOT
180
d97ff880 181%post -p /sbin/ldconfig
81aa497c 182%postun -p /sbin/ldconfig
91407a9e 183
5bdc9e19
JB
184%post java -p /sbin/ldconfig
185%postun java -p /sbin/ldconfig
186
91407a9e 187%files
188%defattr(644,root,root,755)
d97ff880 189%doc AUTHORS BENCHMARKS BUGS CONTRIBUTORS NEWS README
8db3b7b5 190%attr(755,root,root) /%{_lib}/libbeecrypt.so.*.*.*
d5678950 191%attr(755,root,root) %ghost /%{_lib}/libbeecrypt.so.7
91407a9e 192
193%files devel
194%defattr(644,root,root,755)
5bdc9e19
JB
195%attr(755,root,root) %{_libdir}/libbeecrypt.so
196%{_libdir}/libbeecrypt.la
197%{_includedir}/beecrypt
81aa497c 198
01129d60 199%if %{with static_libs}
81aa497c 200%files static
201%defattr(644,root,root,755)
5bdc9e19 202%{_libdir}/libbeecrypt.a
01129d60 203%endif
5bdc9e19 204
32db796d 205%if %{with java}
5bdc9e19
JB
206%files java
207%defattr(644,root,root,755)
208%attr(755,root,root) %{_libdir}/libbeecrypt_java.so.*.*.*
d5678950 209%attr(755,root,root) %ghost %{_libdir}/libbeecrypt_java.so.7
5bdc9e19
JB
210
211%files java-devel
212%defattr(644,root,root,755)
213%attr(755,root,root) %{_libdir}/libbeecrypt_java.so
214%{_libdir}/libbeecrypt_java.la
215
01129d60 216%if %{with static_libs}
5bdc9e19
JB
217%files java-static
218%defattr(644,root,root,755)
219%{_libdir}/libbeecrypt_java.a
220%endif
01129d60 221%endif
6f800bf2 222
a927c96f 223%if %{with python}
6f800bf2
AF
224%files -n python-beecrypt
225%defattr(644,root,root,755)
d5678950 226%attr(755,root,root) %{py_sitedir}/_bc.so
a927c96f 227%endif
This page took 0.07772 seconds and 4 git commands to generate.