]>
Commit | Line | Data |
---|---|---|
472a31a8 | 1 | %define orig_ver 561 |
1e862315 | 2 | Summary: Cryptopp Library - a free C++ class library of cryptographic schemes |
6081e9d5 | 3 | Summary(pl.UTF-8): Cryptopp - biblioteka klas C++ dostarczająca narzędzia do kryptografii |
1e862315 | 4 | Name: cryptopp |
472a31a8 | 5 | Version: 5.6.1 |
e602bb4b | 6 | Release: 2 |
4c7740b9 | 7 | License: BSD-like |
1e862315 | 8 | Group: Libraries |
4c7740b9 | 9 | Source0: http://downloads.sourceforge.net/cryptopp/%{name}%{orig_ver}.zip |
472a31a8 | 10 | # Source0-md5: 96cbeba0907562b077e26bcffb483828 |
0114b496 | 11 | Patch0: %{name}-autotools.patch |
472a31a8 | 12 | Patch1: cxx.patch |
1e862315 | 13 | URL: http://www.cryptopp.com/ |
0114b496 | 14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
1e862315 | 16 | BuildRequires: libstdc++-devel |
4c7740b9 | 17 | BuildRequires: libtool >= 2:1.5 |
1e862315 | 18 | BuildRequires: unzip |
ff61087a | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Cryptopp Library is a free C++ class library of cryptographic schemes. | |
23 | ||
92858504 | 24 | %description -l pl.UTF-8 |
4c7740b9 JB |
25 | Cryptopp jest biblioteką klas C++ dostarczającą narzędzia do |
26 | kryptografii. | |
ff61087a | 27 | |
28 | %package devel | |
1e862315 | 29 | Summary: Files for development of applications which will use Cryptopp |
e414df15 | 30 | Summary(pl.UTF-8): Pliki do tworzenia aplikacji używających Cryptopp |
1e862315 JB |
31 | Group: Development/Libraries |
32 | Requires: %{name} = %{version}-%{release} | |
ff61087a | 33 | |
34 | %description devel | |
1e862315 | 35 | Files for development of applications which will use Cryptopp. |
ff61087a | 36 | |
92858504 JR |
37 | %description devel -l pl.UTF-8 |
38 | Pliki do tworzenia aplikacji używających Cryptopp. | |
ff61087a | 39 | |
1e862315 JB |
40 | %package static |
41 | Summary: Static Cryptopp library | |
e414df15 | 42 | Summary(pl.UTF-8): Statyczna biblioteka Cryptopp |
1e862315 JB |
43 | Group: Development/Libraries |
44 | Requires: %{name}-devel = %{version}-%{release} | |
ff61087a | 45 | |
1e862315 JB |
46 | %description static |
47 | Static Cryptopp library. | |
ff61087a | 48 | |
92858504 | 49 | %description static -l pl.UTF-8 |
1e862315 | 50 | Statyczna biblioteka Cryptopp. |
ff61087a | 51 | |
ff61087a | 52 | %prep |
1e862315 | 53 | %setup -q -c |
0fcd268d | 54 | %patch0 -p1 |
472a31a8 | 55 | %patch1 -p0 |
ff61087a | 56 | |
57 | %build | |
0114b496 | 58 | %{__libtoolize} |
59 | %{__aclocal} | |
60 | %{__autoconf} | |
61 | %{__autoheader} | |
62 | %{__automake} | |
63 | ||
4c7740b9 | 64 | %configure |
472a31a8 | 65 | |
ff61087a | 66 | %{__make} |
67 | ||
472a31a8 PS |
68 | ./cryptest v |
69 | ||
ff61087a | 70 | %install |
1e862315 | 71 | rm -rf $RPM_BUILD_ROOT |
ff61087a | 72 | |
472a31a8 PS |
73 | %{__make} install \ |
74 | DESTDIR=$RPM_BUILD_ROOT | |
ff61087a | 75 | |
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
1e862315 JB |
79 | %post -p /sbin/ldconfig |
80 | %postun -p /sbin/ldconfig | |
81 | ||
ff61087a | 82 | %files |
1e862315 | 83 | %defattr(644,root,root,755) |
ff61087a | 84 | %doc License.txt Readme.txt |
1e862315 | 85 | %attr(755,root,root) %{_libdir}/libcryptopp.so.*.*.* |
4c7740b9 | 86 | %attr(755,root,root) %ghost %{_libdir}/libcryptopp.so.4 |
ff61087a | 87 | |
88 | %files devel | |
1e862315 | 89 | %defattr(644,root,root,755) |
6081e9d5 | 90 | %attr(755,root,root) %{_libdir}/libcryptopp.so |
4c7740b9 JB |
91 | %{_libdir}/libcryptopp.la |
92 | %{_includedir}/cryptopp | |
1e862315 JB |
93 | |
94 | %files static | |
95 | %defattr(644,root,root,755) | |
96 | %{_libdir}/libcryptopp.a |