]> git.pld-linux.org Git - packages/cryptopp.git/blob - cryptopp.spec
- cleanups
[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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Cryptopp Library is a free C++ class library of cryptographic schemes.
23
24 %description -l pl.UTF-8
25 Cryptopp jest biblioteką klas C++ dostarczającą narzędzia do
26 kryptografii.
27
28 %package devel
29 Summary:        Files for development of applications which will use Cryptopp
30 Summary(pl.UTF-8):      Pliki do tworzenia aplikacji używających Cryptopp
31 Group:          Development/Libraries
32 Requires:       %{name} = %{version}-%{release}
33
34 %description devel
35 Files for development of applications which will use Cryptopp.
36
37 %description devel -l pl.UTF-8
38 Pliki do tworzenia aplikacji używających Cryptopp.
39
40 %package static
41 Summary:        Static Cryptopp library
42 Summary(pl.UTF-8):      Statyczna biblioteka Cryptopp
43 Group:          Development/Libraries
44 Requires:       %{name}-devel = %{version}-%{release}
45
46 %description static
47 Static Cryptopp library.
48
49 %description static -l pl.UTF-8
50 Statyczna biblioteka Cryptopp.
51
52 %prep
53 %setup -q -c
54 %patch0 -p1
55 %patch1 -p0
56
57 %build
58 %{__libtoolize}
59 %{__aclocal}
60 %{__autoconf}
61 %{__autoheader}
62 %{__automake}
63
64 %configure
65
66 %{__make}
67
68 ./cryptest v
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72
73 %{__make} install \
74         DESTDIR=$RPM_BUILD_ROOT
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post   -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %files
83 %defattr(644,root,root,755)
84 %doc License.txt Readme.txt
85 %attr(755,root,root) %{_libdir}/libcryptopp.so.*.*.*
86 %attr(755,root,root) %ghost %{_libdir}/libcryptopp.so.4
87
88 %files devel
89 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_libdir}/libcryptopp.so
91 %{_libdir}/libcryptopp.la
92 %{_includedir}/cryptopp
93
94 %files static
95 %defattr(644,root,root,755)
96 %{_libdir}/libcryptopp.a
This page took 0.062264 seconds and 3 git commands to generate.