3 %bcond_without asm # disable x86 assembly code
4 %bcond_without tests # build without tests
11 Summary: Cryptopp Library - a free C++ class library of cryptographic schemes
12 Summary(pl.UTF-8): Cryptopp - biblioteka klas C++ dostarczająca narzędzia do kryptografii
18 Source0: http://downloads.sourceforge.net/cryptopp/%{name}%{orig_ver}.zip
19 # Source0-md5: 96cbeba0907562b077e26bcffb483828
20 Patch0: %{name}-autotools.patch
22 URL: http://www.cryptopp.com/
23 BuildRequires: autoconf
24 BuildRequires: automake
25 BuildRequires: libstdc++-devel
26 BuildRequires: libtool >= 2:1.5
28 Obsoletes: cryptopp-progs
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Cryptopp Library is a free C++ class library of cryptographic schemes.
34 %description -l pl.UTF-8
35 Cryptopp jest biblioteką klas C++ dostarczającą narzędzia do
39 Summary: Files for development of applications which will use Cryptopp
40 Summary(pl.UTF-8): Pliki do tworzenia aplikacji używających Cryptopp
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
45 Files for development of applications which will use Cryptopp.
47 %description devel -l pl.UTF-8
48 Pliki do tworzenia aplikacji używających Cryptopp.
51 Summary: Static Cryptopp library
52 Summary(pl.UTF-8): Statyczna biblioteka Cryptopp
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
57 Static Cryptopp library.
59 %description static -l pl.UTF-8
60 Statyczna biblioteka Cryptopp.
75 CFLAGS="%{rpmcflags} -DCRYPTOPP_DISABLE_X86ASM"
76 CXXFLAGS="%{rpmcxxflags} -DCRYPTOPP_DISABLE_X86ASM"
86 rm -rf $RPM_BUILD_ROOT
88 INSTALL="install -p -c " \
89 DESTDIR=$RPM_BUILD_ROOT
91 %{__rm} $RPM_BUILD_ROOT%{_bindir}/cryptest
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
100 %defattr(644,root,root,755)
101 %doc License.txt Readme.txt
102 %attr(755,root,root) %{_libdir}/libcryptopp.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libcryptopp.so.4
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libcryptopp.so
108 %{_libdir}/libcryptopp.la
109 %{_includedir}/cryptopp
112 %defattr(644,root,root,755)
113 %{_libdir}/libcryptopp.a