日本OpenSolaris Users Group有志による、レポジトリサーバ作成のためのspecファイル群です。
リビジョン | 34faad436926749ef9a1479cb55d595cbac99fb9 (tree) |
---|---|
日時 | 2012-12-08 16:52:26 |
作者 | ![]() |
コミッター | YAMAMOTO Takashi |
SFEcyrus-sasl: use pnm macros
@@ -0,0 +1,102 @@ | ||
1 | +# | |
2 | +# Copyright (c) 2008 Sun Microsystems, Inc. | |
3 | +# This file and all modifications and additions to the pristine | |
4 | +# package are under the same license as the package itself. | |
5 | + | |
6 | +%include Solaris.inc | |
7 | +%include packagenamemacros.inc | |
8 | +%include usr-gnu.inc | |
9 | + | |
10 | +Name: SFEcyrus-sasl | |
11 | +SUNW_Copyright: %{name}.copyright | |
12 | +IPS_Package_Name: library/security/cyrus-sasl | |
13 | +Summary: Simple Authentication and Security Layer library | |
14 | +Version: 2.1.25 | |
15 | +Source: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-%{version}.tar.gz | |
16 | + | |
17 | +SUNW_BaseDir: %{_basedir} | |
18 | +BuildRoot: %{_tmppath}/%{name}-%{version}-build | |
19 | +%include default-depend.inc | |
20 | + | |
21 | +Requires: %{pnm_requires_SUNWsqlite3} | |
22 | +BuildRequires: %{pnm_buildrequires_SUNWsqlite3} | |
23 | +Requires: %{pnm_buildrequires_SUNWopenssl_libraries} | |
24 | +BuildRequires: %{pnm_buildrequires_SUNWopenssl_libraries} | |
25 | +Requires: library/security/libntlm | |
26 | +BuildRequires: library/security/libntlm | |
27 | + | |
28 | +%description | |
29 | +SASL is the Simple Authentication and Security Layer, a method for adding authentication support to connection-based protocols. | |
30 | +To use SASL, a protocol includes a command for identifying and authenticating a user to a server and for optionally negotiating protection of subsequent protocol interactions. | |
31 | +If its use is negotiated, a security layer is inserted between the protocol and the connection. | |
32 | + | |
33 | +%prep | |
34 | +%setup -q -n cyrus-sasl-%{version} | |
35 | + | |
36 | +%build | |
37 | +CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` | |
38 | +if test "x$CPUS" = "x" -o $CPUS = 0; then | |
39 | + CPUS=1 | |
40 | +fi | |
41 | + | |
42 | +# needed to prevent an error during configure - strip whitespace | |
43 | +CFLAGS="%optflags -I/usr/gnu/include -I/usr/include/gssapi" | |
44 | +export CFLAGS="`echo $CFLAGS`" | |
45 | +export LDFLAGS="-L/usr/gnu/lib -R/usr/gnu/lib" | |
46 | + | |
47 | +./configure -prefix %{_prefix} \ | |
48 | + --enable-shared=yes \ | |
49 | + --enable-static=no \ | |
50 | + --with-dbpath=%{_sysconfdir}/sasldb2 \ | |
51 | + --with-plugindir=%{_libdir}/sasl2 \ | |
52 | + --sysconfdir %{_sysconfdir} \ | |
53 | + --mandir %{_mandir} \ | |
54 | + --with-ipctype=doors | |
55 | + | |
56 | +make -j$CPUS | |
57 | + | |
58 | +%install | |
59 | +rm -rf $RPM_BUILD_ROOT | |
60 | + | |
61 | +make install DESTDIR=$RPM_BUILD_ROOT | |
62 | + | |
63 | +rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la | |
64 | +rm -f ${RPM_BUILD_ROOT}%{_libdir}/sasl2/*.la | |
65 | +rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.a | |
66 | + | |
67 | +%clean | |
68 | +rm -rf $RPM_BUILD_ROOT | |
69 | + | |
70 | +%files | |
71 | +%defattr (-, root, bin) | |
72 | +%dir %attr (0755, root, bin) %{_prefix}/sbin | |
73 | +%{_prefix}/sbin/* | |
74 | +%dir %attr (0755, root, bin) %{_libdir} | |
75 | +%{_libdir}/lib*.so* | |
76 | +%dir %attr (0755, root, other) %{_libdir}/sasl2 | |
77 | +%{_libdir}/sasl2/lib*.so* | |
78 | +%dir %attr (0755, root, bin) %{_includedir} | |
79 | +%dir %attr (0755, root, other) %{_includedir}/sasl | |
80 | +%{_includedir}/sasl/* | |
81 | +%dir %attr (0755, root, sys) %{_datadir} | |
82 | +%dir %attr (0755, root, bin) %{_mandir} | |
83 | +%dir %attr (0755, root, bin) %{_mandir}/man3 | |
84 | +%{_mandir}/man3/* | |
85 | +%dir %attr (0755, root, bin) %{_mandir}/man8 | |
86 | +%{_mandir}/man8/* | |
87 | + | |
88 | +%changelog | |
89 | +* Sat Dec 08 2012 - YAMAMOTO Takashi | |
90 | +- use pnm macros | |
91 | +* Mon Dec 12 2011 - Milan Jurik | |
92 | +- bump to 2.1.25 | |
93 | +* Sun Feb 13 2011 - Milan Jurik | |
94 | +- bump to 2.1.23 | |
95 | +* Fri Oct 24 2008 - jedy.wang@sun.com | |
96 | +- Fixes plugindir problem. | |
97 | +* Fri Jun 06 2008 - river@wikimedia.org | |
98 | +- strip whitespace from $CFLAGS otherwise autoconf gets upset | |
99 | +* Sun Feb 03 2008 - moinak.ghosh@sun.com | |
100 | +- Add dependency on SFElibntlm. | |
101 | +* Tue Jan 15 2008 - moinak.ghosh@sun.com | |
102 | +- Initial spec. |
@@ -0,0 +1,44 @@ | ||
1 | +/* CMU libsasl | |
2 | + * Tim Martin | |
3 | + * Rob Earhart | |
4 | + * Rob Siemborski | |
5 | + */ | |
6 | +/* | |
7 | + * Copyright (c) 1998-2003 Carnegie Mellon University. All rights reserved. | |
8 | + * | |
9 | + * Redistribution and use in source and binary forms, with or without | |
10 | + * modification, are permitted provided that the following conditions | |
11 | + * are met: | |
12 | + * | |
13 | + * 1. Redistributions of source code must retain the above copyright | |
14 | + * notice, this list of conditions and the following disclaimer. | |
15 | + * | |
16 | + * 2. Redistributions in binary form must reproduce the above copyright | |
17 | + * notice, this list of conditions and the following disclaimer in | |
18 | + * the documentation and/or other materials provided with the | |
19 | + * distribution. | |
20 | + * | |
21 | + * 3. The name "Carnegie Mellon University" must not be used to | |
22 | + * endorse or promote products derived from this software without | |
23 | + * prior written permission. For permission or any other legal | |
24 | + * details, please contact | |
25 | + * Office of Technology Transfer | |
26 | + * Carnegie Mellon University | |
27 | + * 5000 Forbes Avenue | |
28 | + * Pittsburgh, PA 15213-3890 | |
29 | + * (412) 268-4387, fax: (412) 268-7395 | |
30 | + * tech-transfer@andrew.cmu.edu | |
31 | + * | |
32 | + * 4. Redistributions of any form whatsoever must retain the following | |
33 | + * acknowledgment: | |
34 | + * "This product includes software developed by Computing Services | |
35 | + * at Carnegie Mellon University (http://www.cmu.edu/computing/)." | |
36 | + * | |
37 | + * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO | |
38 | + * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | |
39 | + * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE | |
40 | + * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
41 | + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN | |
42 | + * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING | |
43 | + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
44 | + */ |