]> git.pld-linux.org Git - packages/cryptopp.git/blob - cryptopp.spec
- updated to 5.2.1 (builds)
[packages/cryptopp.git] / cryptopp.spec
1 %define         _orig_name      cryptopp
2 %define         _orig_ver       521
3 Summary:        Cryptopp Library - a free C++ class library of cryptographic schemes
4 Summary(pl):    Cryptopp - klasa C++ dostarczaj±ca narzêdzia do kryptografii
5 Name:           cryptopp
6 Version:        5.2.1
7 Release:        0.1
8 License:        GPL
9 Vendor:         Wei Dai
10 Group:          Libraries
11 Source0:        http://dl.sourceforge.net/%{name}/%{_orig_name}%{_orig_ver}.zip
12 # Source0-md5:  82a00c44235ccbae2bedf9cb16c40ac3
13 Patch0:         crypto-5.2.patch.bz2
14 URL:            http://www.cryptopp.com/
15 BuildRequires:  libstdc++-devel
16 BuildRequires:  unzip
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Cryptopp Library is a free C++ class library of cryptographic schemes.
21
22 %description -l pl
23 Cryptopp jest klas± C++ dostarczaj±c± narzêdzia do kryptografii.
24
25
26 %package devel
27 Summary:        Files for development of applications which will use Cryptopp
28 Summary(pl):    Pliki do tworzenia aplikacji u¿ywaj±cych Cryptopp
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}-%{release}
31
32 %description devel
33 Files for development of applications which will use Cryptopp.
34
35 %description devel -l pl
36 Pliki do tworzenia aplikacji u¿ywaj±cych Cryptopp.
37
38 %package static
39 Summary:        Static Cryptopp library
40 Summary(pl):    Statyczna biblioteka Cryptopp
41 Group:          Development/Libraries
42 Requires:       %{name}-devel = %{version}-%{release}
43
44 %description static
45 Static Cryptopp library.
46
47 %description static -l pl
48 Statyczna biblioteka Cryptopp.
49
50 %package progs
51 Summary:        Cryptopp programs
52 Summary(pl):    Programy dla Cryptopp
53 Group:          Applications
54 Requires:       %{name} = %{version}-%{release}
55
56 %description progs
57 Cryptopp programs.
58
59 %description progs -l pl
60 Programy dla Cryptopp.
61
62 %prep
63 %setup -q -c
64 %patch -p1
65 chmod 755 configure
66
67 %build
68 %configure
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT%{_libdir}
74 install -d $RPM_BUILD_ROOT%{_bindir}
75 install -d $RPM_BUILD_ROOT%{_includedir}/cryptopp
76 install -d $RPM_BUILD_ROOT%{_datadir}/cryptopp
77
78 install .libs/cryptest  $RPM_BUILD_ROOT%{_bindir}
79 cp -a .libs/libcryptopp.so*  $RPM_BUILD_ROOT%{_libdir}
80 install .libs/libcryptopp.a  $RPM_BUILD_ROOT%{_libdir}
81 install *.h     $RPM_BUILD_ROOT%{_includedir}/cryptopp
82 install *.dat  $RPM_BUILD_ROOT%{_datadir}/cryptopp
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %files
91 %defattr(644,root,root,755)
92 %doc License.txt Readme.txt
93 %attr(755,root,root) %{_libdir}/libcryptopp.so.*.*.*
94
95 %files devel
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libcryptopp.so
98 %{_includedir}/cryptopp
99
100 %files static
101 %defattr(644,root,root,755)
102 %{_libdir}/libcryptopp.a
103
104 %files progs
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_bindir}/*
107 %{_datadir}/cryptopp
This page took 0.095 seconds and 4 git commands to generate.