日本OpenSolaris Users Group有志による、レポジトリサーバ作成のためのspecファイル群です。
Revision | 0f9dc7f8648e01686ef0d07f8a5c9f0db73d91aa (tree) |
---|---|
Time | 2018-03-04 09:47:36 |
Author | Fumihisa TONAKA <fumi.ftnk@gmai...> |
Commiter | Fumihisa TONAKA |
SFElibsodium: added
@@ -0,0 +1,56 @@ | ||
1 | +%include Solaris.inc | |
2 | + | |
3 | +%define tarball_version 1.0.16 | |
4 | +%define tarball_name libsodium | |
5 | +%define _prefix /opt/jposug | |
6 | + | |
7 | +Name: SFElibsodium | |
8 | +Summary: Sodium is a modern, easy-to-use software library for encryption, decryption, signatures, password hashing and more. | |
9 | +Version: %{tarball_version} | |
10 | +IPS_package_name: jposug/library/libsodium | |
11 | +License: ISC license | |
12 | +Source: https://github.com/jedisct1/libsodium/releases/download/%{tarball_version}/libsodium-%{tarball_version}.tar.gz | |
13 | +BuildRoot: %{_tmppath}/%{name}-%{version}-build | |
14 | +SUNW_Copyright: %{name}.copyright | |
15 | + | |
16 | +%prep | |
17 | +%setup -q -n %{tarball_name}-%{version} | |
18 | + | |
19 | +%build | |
20 | +CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` | |
21 | +if test "x$CPUS" = "x" -o $CPUS = 0; then | |
22 | + CPUS=1 | |
23 | +fi | |
24 | + | |
25 | +%ifarch sparc | |
26 | +%define target sparc-sun-solaris | |
27 | +%else | |
28 | +%define target i386-sun-solaris | |
29 | +%endif | |
30 | + | |
31 | +export CC='/usr/bin/gcc -m64' | |
32 | + | |
33 | +./configure --prefix=%{_prefix} | |
34 | + | |
35 | +gmake -j$CPUS | |
36 | +gmake -j$CPUS test | |
37 | + | |
38 | +%install | |
39 | +make install DESTDIR=$RPM_BUILD_ROOT | |
40 | + | |
41 | +%clean | |
42 | +rm -rf $RPM_BUILD_ROOT | |
43 | + | |
44 | +%files | |
45 | +%defattr (-, root, bin) | |
46 | +%dir %attr(0755, root, bin) %{_prefix} | |
47 | +%dir %attr(0755, root, bin) %{_prefix}/lib | |
48 | +%dir %attr(0755, root, other) %{_prefix}/lib/pkgconfig | |
49 | +%dir %attr(0755, root, bin) %{_prefix}/include | |
50 | +%{_prefix}/lib/libsodium* | |
51 | +%{_prefix}/lib/pkgconfig/* | |
52 | +%{_prefix}/include/* | |
53 | + | |
54 | +%changelog | |
55 | +* Sun Mar 04 2018 - Fumihisa TONAKA <fumi.ftnk@gmail.com> | |
56 | +- initial commit |
@@ -0,0 +1,18 @@ | ||
1 | +/* | |
2 | + * ISC License | |
3 | + * | |
4 | + * Copyright (c) 2013-2018 | |
5 | + * Frank Denis <j at pureftpd dot org> | |
6 | + * | |
7 | + * Permission to use, copy, modify, and/or distribute this software for any | |
8 | + * purpose with or without fee is hereby granted, provided that the above | |
9 | + * copyright notice and this permission notice appear in all copies. | |
10 | + * | |
11 | + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
12 | + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
13 | + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
14 | + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
15 | + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
16 | + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
17 | + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
18 | + */ |