blob: a08eb0c58872de981a0e7a86a65326c15b5afb84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
Summary: Cryptopp Library is a free C++ class library of cryptographic schemes.
Summary(pl): Cryptopp jest klasą C++ dostarczającą narzędzia do kryptografii.
Name: cryptopp
Version: 5.1
Release: 0.1
License: GPL
Vendor: Wei Dai
Group: Libraries
Source0: http://dl.sourceforge.net/sourceforge/cryptopp/crypto51.zip
# Source0-md5: f4bfd4ac39dc1b7f0764d61a1ec4df16
Patch: crypto-5.1.patch.bz2
URL: http://www.cryptopp.com
BuildRequires: gcc-c++
BuildRequires: unzip
Requires: gcc-c++
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Cryptopp Library is a free C++ class library of cryptographic schemes.
%description -l pl
Cryptopp jest klasą C++ dostarczającą narzędzia do kryptografii.
%package devel
Summary: Files for development of applications which will use Cryptopp.
Summary(pl): Files for development of applications which will use Cryptopp.
Group: Libraries
%description devel
Cryptopp Library is a free C++ class library of cryptographic schemes
%description devel -l pl
Cryptopp jest klasą C++ dostarczającą narzędzia do kryptografii.
%package progs
Summary: Files for development of applications which will use Crypto++
Summary(pl): Files for development of applications which will use Crypto++
Group: Libraries
%description progs
Cryptopp Library is a free C++ class library of cryptographic schemes
%description progs -l pl
Cryptopp jest klasą C++ dostarczającą narzędzia do kryptografii.
%prep
%setup -c -n %{name}-%{version}
%patch -p1 -b .autotools
chmod 755 configure
%build
%configure
%{__make}
%install
%{__rm} -rf %{buildroot}
install -d $RPM_BUILD_ROOT%{_libdir}
install -d $RPM_BUILD_ROOT%{_bindir}
install -d $RPM_BUILD_ROOT%{_includedir}/cryptopp
install -d $RPM_BUILD_ROOT%{_datadir}/cryptopp
cp .libs/cryptest $RPM_BUILD_ROOT%{_bindir}
cp .libs/libcryptopp.so* $RPM_BUILD_ROOT%{_libdir}
cp .libs/libcryptopp.a $RPM_BUILD_ROOT%{_libdir}
cp *.h $RPM_BUILD_ROOT%{_includedir}/cryptopp
cp *.dat $RPM_BUILD_ROOT%{_datadir}/cryptopp
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root, 0755)
%doc License.txt Readme.txt
%{_libdir}/libcryptopp.so.*
%files devel
%defattr(-, root, root, 0755)
%{_includedir}/cryptopp/*.h
%{_libdir}/*.a
%{_libdir}/*.so
%files progs
%defattr(-, root, root, 0755)
%{_bindir}/*
%{_datadir}/cryptopp/*.dat
|