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