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