1 | %define ver 1.0.12 |
---|
2 | %define rel 1 |
---|
3 | |
---|
4 | Summary: a modern and easy-to-use crypto library |
---|
5 | Summary(ja): モダンで手軽に使える暗号化ライブラリー |
---|
6 | Name: libsodium |
---|
7 | Version: %{ver} |
---|
8 | Release: %{rel}%{?_dist_release} |
---|
9 | Source0: %{name}-%{version}.tar.gz |
---|
10 | License: ISC |
---|
11 | Group: System Environment/Libraries |
---|
12 | URL: https://github.com/jedisct1/libsodium |
---|
13 | |
---|
14 | #BuildRequires: |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | |
---|
17 | Vendor: Project Vine |
---|
18 | Distribution: Vine Linux |
---|
19 | Packager: iwaim |
---|
20 | |
---|
21 | |
---|
22 | %description |
---|
23 | Sodium is a new, easy-to-use software library for encryption, decryption, |
---|
24 | signatures, password hashing and more. |
---|
25 | |
---|
26 | It is a portable, cross-compilable, installable, packageable fork of NaCl, |
---|
27 | with a compatible API, and an extended API to improve usability even further. |
---|
28 | |
---|
29 | Its goal is to provide all of the core operations needed to build |
---|
30 | higher-level cryptographic tools. |
---|
31 | |
---|
32 | %package devel |
---|
33 | Summary: Development files for %{name} |
---|
34 | Summary(ja): %{name} の開発ファイル |
---|
35 | Group: Development/Libraries |
---|
36 | Requires: %{name} = %{version}-%{release} |
---|
37 | |
---|
38 | %description devel |
---|
39 | The %{name}-devel package contains libraries and header files for |
---|
40 | developing applications that use %{name}. |
---|
41 | |
---|
42 | |
---|
43 | %prep |
---|
44 | %setup -q |
---|
45 | |
---|
46 | |
---|
47 | %build |
---|
48 | ./autogen.sh |
---|
49 | %configure --enable-shared --disable-static |
---|
50 | %{__make} %{?_smp_mflags} |
---|
51 | |
---|
52 | |
---|
53 | %install |
---|
54 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
55 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
56 | |
---|
57 | %{__rm} -rf ${RPM_BUILD_ROOT}%{_libdir}/libsodium.la |
---|
58 | |
---|
59 | |
---|
60 | %clean |
---|
61 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
62 | |
---|
63 | |
---|
64 | %check |
---|
65 | make check |
---|
66 | |
---|
67 | |
---|
68 | %post -p /sbin/ldconfig |
---|
69 | |
---|
70 | %postun -p /sbin/ldconfig |
---|
71 | |
---|
72 | |
---|
73 | %files |
---|
74 | %defattr(-,root,root) |
---|
75 | %doc LICENSE AUTHORS ChangeLog THANKS README.* |
---|
76 | %{_libdir}/libsodium.so.* |
---|
77 | |
---|
78 | %files devel |
---|
79 | %defattr(-,root,root) |
---|
80 | %doc LICENSE AUTHORS ChangeLog THANKS README.* |
---|
81 | %{_libdir}/pkgconfig/libsodium.pc |
---|
82 | %{_libdir}/libsodium.so |
---|
83 | %{_includedir}/sodium.h |
---|
84 | %{_includedir}/sodium |
---|
85 | |
---|
86 | |
---|
87 | %changelog |
---|
88 | * Mon Jun 5 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.0.12-1 |
---|
89 | - initial build for Vine Linux |
---|