]> git.pld-linux.org Git - packages/cryptopp.git/blame - cryptopp.spec
rm unpackaged test
[packages/cryptopp.git] / cryptopp.spec
CommitLineData
72a0958d
JR
1#
2# Conditional build:
3%bcond_without asm # disable x86 assembly code
17888f8d
ER
4%bcond_without tests # build without tests
5
72a0958d
JR
6%ifarch x32
7%undefine with_asm
8%endif
9
472a31a8 10%define orig_ver 561
1e862315 11Summary: Cryptopp Library - a free C++ class library of cryptographic schemes
6081e9d5 12Summary(pl.UTF-8): Cryptopp - biblioteka klas C++ dostarczająca narzędzia do kryptografii
1e862315 13Name: cryptopp
472a31a8 14Version: 5.6.1
72a0958d 15Release: 3
4c7740b9 16License: BSD-like
1e862315 17Group: Libraries
4c7740b9 18Source0: http://downloads.sourceforge.net/cryptopp/%{name}%{orig_ver}.zip
472a31a8 19# Source0-md5: 96cbeba0907562b077e26bcffb483828
0114b496 20Patch0: %{name}-autotools.patch
472a31a8 21Patch1: cxx.patch
1e862315 22URL: http://www.cryptopp.com/
0114b496 23BuildRequires: autoconf
24BuildRequires: automake
1e862315 25BuildRequires: libstdc++-devel
4c7740b9 26BuildRequires: libtool >= 2:1.5
1e862315 27BuildRequires: unzip
98033b6e 28Obsoletes: cryptopp-progs
ff61087a 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32Cryptopp Library is a free C++ class library of cryptographic schemes.
33
92858504 34%description -l pl.UTF-8
4c7740b9
JB
35Cryptopp jest biblioteką klas C++ dostarczającą narzędzia do
36kryptografii.
ff61087a 37
38%package devel
1e862315 39Summary: Files for development of applications which will use Cryptopp
e414df15 40Summary(pl.UTF-8): Pliki do tworzenia aplikacji używających Cryptopp
1e862315
JB
41Group: Development/Libraries
42Requires: %{name} = %{version}-%{release}
ff61087a 43
44%description devel
1e862315 45Files for development of applications which will use Cryptopp.
ff61087a 46
92858504
JR
47%description devel -l pl.UTF-8
48Pliki do tworzenia aplikacji używających Cryptopp.
ff61087a 49
1e862315
JB
50%package static
51Summary: Static Cryptopp library
e414df15 52Summary(pl.UTF-8): Statyczna biblioteka Cryptopp
1e862315
JB
53Group: Development/Libraries
54Requires: %{name}-devel = %{version}-%{release}
ff61087a 55
1e862315
JB
56%description static
57Static Cryptopp library.
ff61087a 58
92858504 59%description static -l pl.UTF-8
1e862315 60Statyczna biblioteka Cryptopp.
ff61087a 61
ff61087a 62%prep
1e862315 63%setup -q -c
0fcd268d 64%patch0 -p1
472a31a8 65%patch1 -p0
ff61087a 66
67%build
0114b496 68%{__libtoolize}
69%{__aclocal}
70%{__autoconf}
71%{__autoheader}
72%{__automake}
73
72a0958d
JR
74%if %{without asm}
75CFLAGS="%{rpmcflags} -DCRYPTOPP_DISABLE_X86ASM"
76CXXFLAGS="%{rpmcxxflags} -DCRYPTOPP_DISABLE_X86ASM"
77%endif
4c7740b9 78%configure
ff61087a 79%{__make}
80
17888f8d 81%if %{with tests}
472a31a8 82./cryptest v
17888f8d 83%endif
472a31a8 84
ff61087a 85%install
1e862315 86rm -rf $RPM_BUILD_ROOT
472a31a8 87%{__make} install \
17888f8d 88 INSTALL="install -p -c " \
472a31a8 89 DESTDIR=$RPM_BUILD_ROOT
ff61087a 90
d0c3dcd5
ER
91%{__rm} $RPM_BUILD_ROOT%{_bindir}/cryptest
92
ff61087a 93%clean
94rm -rf $RPM_BUILD_ROOT
95
1e862315
JB
96%post -p /sbin/ldconfig
97%postun -p /sbin/ldconfig
98
ff61087a 99%files
1e862315 100%defattr(644,root,root,755)
ff61087a 101%doc License.txt Readme.txt
1e862315 102%attr(755,root,root) %{_libdir}/libcryptopp.so.*.*.*
4c7740b9 103%attr(755,root,root) %ghost %{_libdir}/libcryptopp.so.4
ff61087a 104
105%files devel
1e862315 106%defattr(644,root,root,755)
6081e9d5 107%attr(755,root,root) %{_libdir}/libcryptopp.so
4c7740b9
JB
108%{_libdir}/libcryptopp.la
109%{_includedir}/cryptopp
1e862315
JB
110
111%files static
112%defattr(644,root,root,755)
113%{_libdir}/libcryptopp.a
This page took 0.09894 seconds and 4 git commands to generate.