]> git.pld-linux.org Git - packages/libtomcrypt.git/blame - libtomcrypt.spec
up to 1.18.2
[packages/libtomcrypt.git] / libtomcrypt.spec
CommitLineData
9b363aa2
ER
1#
2# Conditional build:
3%bcond_without ltm # use LibTomMath for Math provider
4
105aa51b
JB
5Summary: LibTomCrypt - fairly comprehensive, modular and portable cryptographic toolkit
6Summary(pl.UTF-8): LibTomCrypt - dość obszerna, modularna i przenośna biblioteka kryptograficzna
7Name: libtomcrypt
a1139c06 8Version: 1.18.2
78baa3c1
JB
9Release: 1
10License: Public Domain or WTFPL v2
105aa51b 11Group: Libraries
f855753b 12#Source0Download: https://github.com/libtom/libtomcrypt/releases
78baa3c1 13Source0: https://github.com/libtom/libtomcrypt/releases/download/v%{version}/crypt-%{version}.tar.xz
a1139c06 14# Source0-md5: e8d22351b7c95bef423c1cd02dcf836d
78baa3c1
JB
15Patch0: %{name}-pc.patch
16URL: http://www.libtom.net/LibTomCrypt/
17%{?with_ltm:BuildRequires: libtommath-devel >= 1.0.1}
6ec01323 18BuildRequires: libtool >= 2:1.5
78baa3c1
JB
19%{?with_ltm:BuildRequires: pkgconfig}
20BuildRequires: tar >= 1:1.22
21BuildRequires: xz
105aa51b
JB
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25LibTomCrypt is a fairly comprehensive, modular and portable
26cryptographic toolkit that provides developers with a vast array of
27well known published block ciphers, one-way hash functions, chaining
28modes, pseudo-random number generators, public key cryptography and a
29plethora of other routines.
30
31%description -l pl.UTF-8
32LibTomCrypt to dość obszerna, modularna i przenośna biblioteka
33kryptograficzna, zapewniająca programistom szeroki zbiór dobrze
34znanych szyfrów blokowych, jednokierunkowych funkcji haszujących,
35trybów łańcuchowych, generatorów liczb pseudolosowych, kryptografii
36klucza publicznego oraz wiele innych procedur.
37
38%package devel
39Summary: Header files for LibTomCrypt library
40Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LibTomCrypt
41Group: Development/Libraries
42Requires: %{name} = %{version}-%{release}
1680eb3c 43%{?with_ltm:Requires: libtommath-devel}
105aa51b
JB
44
45%description devel
46Header files for LibTomCrypt library.
47
48%description devel -l pl.UTF-8
49Pliki nagłówkowe biblioteki LibTomCrypt.
50
51%package static
52Summary: Static LibTomCrypt library
53Summary(pl.UTF-8): Statyczna biblioteka LibTomCrypt
54Group: Development/Libraries
55Requires: %{name}-devel = %{version}-%{release}
1680eb3c 56%{?with_ltm:Requires: libtommath-static}
105aa51b
JB
57
58%description static
59Static LibTomCrypt library.
60
61%description static -l pl.UTF-8
62Statyczna biblioteka LibTomCrypt.
63
64%prep
65%setup -q
66%patch0 -p1
67
68%build
78baa3c1
JB
69# IGNORE_SPEED avoids overriding rpmcflags
70CFLAGS="%{rpmcflags} %{?with_ltm:-DUSE_LTM -DLTM_DESC}" \
105aa51b 71%{__make} -f makefile.shared \
78baa3c1
JB
72 CC="%{__cc}" \
73 IGNORE_SPEED=1 \
105aa51b
JB
74 LIBPATH=%{_libdir}
75
76%install
77rm -rf $RPM_BUILD_ROOT
78
79%{__make} -f makefile.shared install \
80 DESTDIR=$RPM_BUILD_ROOT \
78baa3c1
JB
81 PREFIX=%{_prefix} \
82 LIBPATH=%{_libdir}
105aa51b
JB
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
87%post -p /sbin/ldconfig
88%postun -p /sbin/ldconfig
89
90%files
91%defattr(644,root,root,755)
78baa3c1 92%doc LICENSE README.md changes
105aa51b 93%attr(755,root,root) %{_libdir}/libtomcrypt.so.*.*.*
78baa3c1 94%attr(755,root,root) %ghost %{_libdir}/libtomcrypt.so.1
105aa51b
JB
95
96%files devel
97%defattr(644,root,root,755)
98%doc doc/crypt.pdf notes/*.txt
99%attr(755,root,root) %{_libdir}/libtomcrypt.so
105aa51b 100%{_libdir}/libtomcrypt.la
105aa51b 101%{_includedir}/tomcrypt*.h
78baa3c1 102%{_pkgconfigdir}/libtomcrypt.pc
105aa51b
JB
103
104%files static
105%defattr(644,root,root,755)
106%{_libdir}/libtomcrypt.a
This page took 0.088582 seconds and 4 git commands to generate.