9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnutls
|
|
3 |
#
|
|
4 |
# includes module(s): gnutls
|
|
5 |
#
|
|
6 |
# Copyright (c) 2004 Sun Microsystems, Inc.
|
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
|
10 |
# Owner: jefftsai
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
9632
|
13 |
%ifarch amd64 sparcv9
|
|
14 |
%include arch64.inc
|
|
15 |
%use gnutls64 = gnutls.spec
|
|
16 |
%endif
|
|
17 |
|
|
18 |
%include base.inc
|
9397
|
19 |
%use gnutls = gnutls.spec
|
|
20 |
|
|
21 |
Name: SUNWgnutls
|
|
22 |
Summary: GNU transport layer security library
|
|
23 |
Version: %{gnutls.version}
|
|
24 |
SUNW_BaseDir: %{_basedir}
|
11931
|
25 |
SUNW_Copyright:%{name}.copyright
|
9397
|
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
27 |
%include default-depend.inc
|
|
28 |
Requires: SUNWlibgcrypt
|
|
29 |
Requires: SUNWzlib
|
|
30 |
Requires: SUNWlibC
|
|
31 |
|
|
32 |
%package devel
|
|
33 |
%include default-depend.inc
|
|
34 |
Summary: %{summary} - development files
|
|
35 |
SUNW_BaseDir: %{_basedir}
|
|
36 |
%include default-depend.inc
|
|
37 |
Requires: SUNWgnutls
|
|
38 |
|
10590
|
39 |
%if %option_with_l10n
|
|
40 |
%package l10n
|
|
41 |
Summary: %{summary} - l10n files
|
|
42 |
SUNW_BaseDir: %{_basedir}
|
|
43 |
%include default-depend.inc
|
|
44 |
Requires: %{name}
|
|
45 |
%endif
|
|
46 |
|
9397
|
47 |
%prep
|
|
48 |
rm -rf %name-%version
|
|
49 |
mkdir -p %name-%version
|
9632
|
50 |
%ifarch amd64 sparcv9
|
|
51 |
mkdir -p %name-%version/%_arch64
|
|
52 |
%gnutls64.prep -d %name-%version/%_arch64
|
|
53 |
%endif
|
|
54 |
|
|
55 |
mkdir -p %name-%version/%base_arch
|
|
56 |
%gnutls.prep -d %name-%version/%base_arch
|
9397
|
57 |
|
|
58 |
%build
|
9794
|
59 |
%if %cc_is_gcc
|
|
60 |
%else
|
|
61 |
export CXX="${CXX} -norunpath"
|
|
62 |
%endif
|
|
63 |
|
9632
|
64 |
%ifarch amd64 sparcv9
|
|
65 |
%gnutls64.build -d %name-%version/%_arch64
|
|
66 |
%endif
|
|
67 |
|
|
68 |
%gnutls.build -d %name-%version/%base_arch
|
9397
|
69 |
|
|
70 |
%install
|
9632
|
71 |
rm -rf $RPM_BUILD_ROOT
|
|
72 |
%ifarch amd64 sparcv9
|
|
73 |
%gnutls64.install -d %name-%version/%_arch64
|
|
74 |
rm -rf $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/psktool
|
|
75 |
%endif
|
|
76 |
|
|
77 |
%gnutls.install -d %name-%version/%base_arch
|
9397
|
78 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/man
|
|
79 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/info
|
|
80 |
rm -rf $RPM_BUILD_ROOT%{_bindir}/psktool
|
|
81 |
|
10590
|
82 |
%if %option_with_l10n
|
|
83 |
%else
|
|
84 |
# REMOVE l10n FILES
|
|
85 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
86 |
%endif
|
|
87 |
|
9397
|
88 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
89 |
|
|
90 |
%clean
|
|
91 |
rm -rf $RPM_BUILD_ROOT
|
|
92 |
%files
|
|
93 |
%defattr (-, root, bin)
|
|
94 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
95 |
%{_bindir}/gnutls*
|
|
96 |
%{_bindir}/certtool
|
|
97 |
%{_bindir}/srptool
|
9632
|
98 |
%ifarch amd64 sparcv9
|
|
99 |
%{_bindir}/%{_arch64}/gnutls*
|
|
100 |
%{_bindir}/%{_arch64}/certtool
|
|
101 |
%{_bindir}/%{_arch64}/srptool
|
|
102 |
%endif
|
9397
|
103 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
104 |
%{_libdir}/lib*.so*
|
9632
|
105 |
%ifarch amd64 sparcv9
|
|
106 |
%{_libdir}/%{_arch64}/lib*.so*
|
|
107 |
%endif
|
9397
|
108 |
|
|
109 |
%files devel
|
|
110 |
%defattr (-, root, bin)
|
|
111 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
112 |
%{_bindir}/libgnutls-config
|
|
113 |
%{_bindir}/libgnutls-extra-config
|
9632
|
114 |
%ifarch sparcv9 amd64
|
|
115 |
%{_bindir}/%{_arch64}/libgnutls-config
|
|
116 |
%{_bindir}/%{_arch64}/libgnutls-extra-config
|
|
117 |
%endif
|
9397
|
118 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
119 |
%{_includedir}/*
|
|
120 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
121 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
122 |
%{_libdir}/pkgconfig/*
|
9632
|
123 |
%ifarch sparcv9 amd64
|
|
124 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
|
|
125 |
%{_libdir}/%{_arch64}/pkgconfig/*
|
|
126 |
%endif
|
9397
|
127 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
128 |
%dir %attr (0755, root, other) %{_datadir}/aclocal
|
|
129 |
%{_datadir}/aclocal/*
|
|
130 |
|
10590
|
131 |
#FIXME: l10n build fails on nevada
|
|
132 |
%if %option_with_gnu_iconv
|
|
133 |
%if %option_with_l10n
|
|
134 |
%files l10n
|
|
135 |
%defattr (-, root, bin)
|
|
136 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
137 |
%attr (-, root, other) %{_datadir}/locale
|
|
138 |
%endif
|
|
139 |
%endif
|
|
140 |
|
9397
|
141 |
%changelog
|
9794
|
142 |
* Thu Apr 26 2007 - [email protected]
|
|
143 |
- set CXX to $CXX -norunpath because libtool swallows this option sometimes
|
|
144 |
and leaves compiler paths in the binaries
|
9681
|
145 |
* Thu Apr 05 2007 - [email protected]
|
|
146 |
- Remove code in %install that creates the libgnutls.so.12 symlink. The symlink
|
|
147 |
was added as a workaround for 6519334 and is no longer needed. Removing the
|
|
148 |
symlink fixes 6521160, a reminder bug to remove the symlink.
|
9632
|
149 |
* Tue Mar 27 2007 - [email protected]
|
|
150 |
- enable 64-bit build
|
9397
|
151 |
* Mon Feb 5 2007 - [email protected]
|
|
152 |
- Add Requires SUNWlibC after check-deps.pl run.
|
|
153 |
* Tue Jan 16 2007 - [email protected]
|
|
154 |
- Do not ship psktool right now.
|
|
155 |
* Sun Jun 11 2006 - [email protected]
|
|
156 |
- change group from other to bin/sys
|
|
157 |
* Thu May 11 2006 - [email protected]
|
|
158 |
- Change %defattr to (-, root, other).
|
|
159 |
* Thu May 04 2006 - [email protected]
|
|
160 |
- merge -share pkg(s) into the base pkg(s)
|
|
161 |
* Tue Apr 04 2006 - [email protected]
|
|
162 |
- Alter remove .a/.la files part into linux spec.
|
|
163 |
* Thu Mar 30 2006 - [email protected]
|
|
164 |
- Remove all *.a/*.la files.
|
|
165 |
* Fri Feb 17 2006 - [email protected]
|
|
166 |
- Update Build/Requires after running check-deps.pl script.
|
|
167 |
* Wed Oct 26 2005 - <[email protected]>
|
|
168 |
- ship files under /usr/bin to enable SSL in libsoup.
|
|
169 |
* Fri Sep 09 2005 - <[email protected]>
|
|
170 |
- remove unpackaged files or add to %files
|
|
171 |
* Wed Aug 31 2005 - [email protected]
|
|
172 |
- Change SUNW_Category for open solaris
|
|
173 |
* Thu Jul 07 2005 - [email protected]
|
|
174 |
- define devel-share subpkg
|
|
175 |
* Sat Oct 02 2004 - [email protected]
|
|
176 |
- added %pkgbuild_postprocess
|
|
177 |
* Tue Aug 31 2004 - [email protected]
|
|
178 |
- Bug 5091588 : include files should be in a separate devel package
|
|
179 |
* Sat Jun 26 2004 [email protected]
|
|
180 |
- Changed install location to /usr/...
|
|
181 |
* Thu Mar 11 2004 - <[email protected]>
|
|
182 |
- initial version created
|