author | mattman |
Thu, 14 May 2009 13:07:11 +0000 | |
changeset 15765 | d43128c94c21 |
parent 15650 | dbcf7e3715dd |
child 15818 | c5b0bb1d5165 |
child 18847 | 0300f4b5b48b |
permissions | -rw-r--r-- |
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 |
|
15650 | 28 |
Requires: SUNWzlibr |
9397 | 29 |
Requires: SUNWlibgcrypt |
30 |
Requires: SUNWzlib |
|
31 |
Requires: SUNWlibC |
|
12960 | 32 |
Requires: SUNWlibtasn1 |
33 |
BuildRequires: SUNWlibtasn1-devel |
|
34 |
||
35 |
Source1: %{name}-manpages-0.1.tar.gz |
|
9397 | 36 |
|
37 |
%package devel |
|
38 |
%include default-depend.inc |
|
39 |
Summary: %{summary} - development files |
|
40 |
SUNW_BaseDir: %{_basedir} |
|
41 |
%include default-depend.inc |
|
42 |
Requires: SUNWgnutls |
|
43 |
||
12919 | 44 |
%if %build_l10n |
10590 | 45 |
%package l10n |
46 |
Summary: %{summary} - l10n files |
|
47 |
SUNW_BaseDir: %{_basedir} |
|
48 |
%include default-depend.inc |
|
49 |
Requires: %{name} |
|
50 |
%endif |
|
51 |
||
9397 | 52 |
%prep |
53 |
rm -rf %name-%version |
|
54 |
mkdir -p %name-%version |
|
9632 | 55 |
%ifarch amd64 sparcv9 |
56 |
mkdir -p %name-%version/%_arch64 |
|
57 |
%gnutls64.prep -d %name-%version/%_arch64 |
|
58 |
%endif |
|
59 |
||
60 |
mkdir -p %name-%version/%base_arch |
|
61 |
%gnutls.prep -d %name-%version/%base_arch |
|
9397 | 62 |
|
12960 | 63 |
# Expand manpages tarball |
64 |
cd %{_builddir}/%name-%version |
|
65 |
gzcat %SOURCE1 | tar xf - |
|
66 |
||
9397 | 67 |
%build |
9794 | 68 |
%if %cc_is_gcc |
69 |
%else |
|
70 |
export CXX="${CXX} -norunpath" |
|
71 |
%endif |
|
72 |
||
9632 | 73 |
%ifarch amd64 sparcv9 |
74 |
%gnutls64.build -d %name-%version/%_arch64 |
|
75 |
%endif |
|
76 |
||
77 |
%gnutls.build -d %name-%version/%base_arch |
|
9397 | 78 |
|
79 |
%install |
|
9632 | 80 |
rm -rf $RPM_BUILD_ROOT |
81 |
%ifarch amd64 sparcv9 |
|
82 |
%gnutls64.install -d %name-%version/%_arch64 |
|
12745 | 83 |
rm -r $RPM_BUILD_ROOT%{_bindir}/%_arch64/ |
12643 | 84 |
rm $RPM_BUILD_ROOT%{_libdir}/%_arch64/libgnutls-extra* |
85 |
rm $RPM_BUILD_ROOT%{_libdir}/%_arch64/libgnutls-openssl* |
|
86 |
rm $RPM_BUILD_ROOT%{_libdir}/%_arch64/pkgconfig/gnutls-extra.pc |
|
87 |
rm $RPM_BUILD_ROOT%{_includedir}/gnutls/openssl.h |
|
88 |
rm $RPM_BUILD_ROOT%{_includedir}/gnutls/extra.h |
|
15765
d43128c94c21
* SUNWgnutls.spec : Fix d.o.o. : 8876, ON bits being built on nevada builds
mattman
parents:
15650
diff
changeset
|
89 |
# Temporary fix for ON bits that have been built against previous verison of gnutls |
d43128c94c21
* SUNWgnutls.spec : Fix d.o.o. : 8876, ON bits being built on nevada builds
mattman
parents:
15650
diff
changeset
|
90 |
# This can be removed once ON start building against snv_115, d.o.o. : 8876 |
d43128c94c21
* SUNWgnutls.spec : Fix d.o.o. : 8876, ON bits being built on nevada builds
mattman
parents:
15650
diff
changeset
|
91 |
saved_pwd=`pwd` |
d43128c94c21
* SUNWgnutls.spec : Fix d.o.o. : 8876, ON bits being built on nevada builds
mattman
parents:
15650
diff
changeset
|
92 |
cd $RPM_BUILD_ROOT%{_libdir}/%_arch64 |
d43128c94c21
* SUNWgnutls.spec : Fix d.o.o. : 8876, ON bits being built on nevada builds
mattman
parents:
15650
diff
changeset
|
93 |
ln -s libgnutls.so libgnutls.so.13 |
d43128c94c21
* SUNWgnutls.spec : Fix d.o.o. : 8876, ON bits being built on nevada builds
mattman
parents:
15650
diff
changeset
|
94 |
cd $saved_pwd |
9632 | 95 |
%endif |
96 |
||
97 |
%gnutls.install -d %name-%version/%base_arch |
|
9397 | 98 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/man |
99 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/info |
|
12745 | 100 |
rm -rf $RPM_BUILD_ROOT%{_bindir}/libgnutls-extra* |
101 |
rm -rf $RPM_BUILD_ROOT%{_bindir}/gnutls* |
|
102 |
rm -rf $RPM_BUILD_ROOT%{_bindir}/*tool |
|
12643 | 103 |
rm $RPM_BUILD_ROOT%{_libdir}/libgnutls-extra* |
104 |
rm $RPM_BUILD_ROOT%{_libdir}/libgnutls-openssl* |
|
105 |
rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gnutls-extra.pc |
|
106 |
rm $RPM_BUILD_ROOT%{_includedir}/gnutls/extra.h |
|
107 |
rm $RPM_BUILD_ROOT%{_includedir}/gnutls/openssl.h |
|
108 |
rm $RPM_BUILD_ROOT%{_datadir}/aclocal/libgnutls-extra.m4 |
|
15765
d43128c94c21
* SUNWgnutls.spec : Fix d.o.o. : 8876, ON bits being built on nevada builds
mattman
parents:
15650
diff
changeset
|
109 |
# Temporary fix for ON bits that have been built against previous verison of gnutls |
d43128c94c21
* SUNWgnutls.spec : Fix d.o.o. : 8876, ON bits being built on nevada builds
mattman
parents:
15650
diff
changeset
|
110 |
# This can be removed once ON start building against snv_115, d.o.o. : 8876 |
d43128c94c21
* SUNWgnutls.spec : Fix d.o.o. : 8876, ON bits being built on nevada builds
mattman
parents:
15650
diff
changeset
|
111 |
saved_pwd=`pwd` |
d43128c94c21
* SUNWgnutls.spec : Fix d.o.o. : 8876, ON bits being built on nevada builds
mattman
parents:
15650
diff
changeset
|
112 |
cd $RPM_BUILD_ROOT%{_libdir}/ |
d43128c94c21
* SUNWgnutls.spec : Fix d.o.o. : 8876, ON bits being built on nevada builds
mattman
parents:
15650
diff
changeset
|
113 |
ln -s libgnutls.so libgnutls.so.13 |
d43128c94c21
* SUNWgnutls.spec : Fix d.o.o. : 8876, ON bits being built on nevada builds
mattman
parents:
15650
diff
changeset
|
114 |
cd $saved_pwd |
9397 | 115 |
|
12770 | 116 |
%ifarch amd64 sparcv9 |
117 |
cd $RPM_BUILD_ROOT%{_libdir}/%_arch64 |
|
118 |
%endif |
|
119 |
cd $RPM_BUILD_ROOT%{_libdir}/ |
|
120 |
||
12960 | 121 |
cd %{_builddir}/%name-%version/sun-manpages |
122 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
123 |
||
12919 | 124 |
%if %build_l10n |
10590 | 125 |
%else |
126 |
# REMOVE l10n FILES |
|
127 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
128 |
%endif |
|
129 |
||
9397 | 130 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
131 |
||
132 |
%clean |
|
133 |
rm -rf $RPM_BUILD_ROOT |
|
12647 | 134 |
|
9397 | 135 |
%files |
13599 | 136 |
|
137 |
%doc -d %{base_arch}/gnutls-%{gnutls.version} AUTHORS README |
|
138 |
%doc(bzip2) -d %{base_arch}/gnutls-%{gnutls.version} ChangeLog |
|
139 |
%doc(bzip2) -d %{base_arch}/gnutls-%{gnutls.version} COPYING.LIB |
|
140 |
%doc(bzip2) -d %{base_arch}/gnutls-%{gnutls.version} NEWS |
|
141 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
142 |
||
12647 | 143 |
%defattr (-, root, bin) |
9397 | 144 |
%dir %attr (0755, root, bin) %{_libdir} |
145 |
%{_libdir}/lib*.so* |
|
9632 | 146 |
%ifarch amd64 sparcv9 |
147 |
%{_libdir}/%{_arch64}/lib*.so* |
|
148 |
%endif |
|
9397 | 149 |
|
12968 | 150 |
%dir %attr (0755, root, sys) %{_datadir} |
151 |
%dir %attr(0755, root, bin) %{_mandir} |
|
152 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
153 |
%{_mandir}/man1/* |
|
154 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
|
155 |
%{_mandir}/man3/* |
|
156 |
||
9397 | 157 |
%files devel |
158 |
%defattr (-, root, bin) |
|
12745 | 159 |
%dir %attr (0755, root, bin) %{_bindir} |
160 |
%{_bindir}/* |
|
9397 | 161 |
%dir %attr (0755, root, bin) %{_includedir} |
162 |
%{_includedir}/* |
|
163 |
%dir %attr (0755, root, bin) %{_libdir} |
|
164 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
165 |
%{_libdir}/pkgconfig/* |
|
9632 | 166 |
%ifarch sparcv9 amd64 |
167 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig |
|
168 |
%{_libdir}/%{_arch64}/pkgconfig/* |
|
169 |
%endif |
|
9397 | 170 |
%dir %attr (0755, root, sys) %{_datadir} |
171 |
%dir %attr (0755, root, other) %{_datadir}/aclocal |
|
172 |
%{_datadir}/aclocal/* |
|
173 |
||
10590 | 174 |
#FIXME: l10n build fails on nevada |
12919 | 175 |
%if %build_l10n |
10590 | 176 |
%files l10n |
177 |
%defattr (-, root, bin) |
|
178 |
%dir %attr (0755, root, sys) %{_datadir} |
|
179 |
%attr (-, root, other) %{_datadir}/locale |
|
180 |
%endif |
|
181 |
||
9397 | 182 |
%changelog |
14470 | 183 |
* Thu Oct 15 2008 - [email protected] |
184 |
- Remove the temporary softlink libgnutls.so.13 |
|
13599 | 185 |
* Wed Sep 16 2008 - [email protected] |
186 |
- Add copyright. |
|
12960 | 187 |
* Thu Jul 31 2008 - [email protected] |
188 |
- Add man pages. |
|
189 |
- Add dependency on libtasn1 |
|
12907 | 190 |
* Wed Jul 23 2008 - [email protected] |
191 |
- Remove %option_with_gnu_iconv around %files l10n to match the package |
|
192 |
definition. |
|
12770 | 193 |
* Tue Jul 08 2008 - [email protected] |
194 |
- Add a temporary softlink libgnutls.so.13 |
|
195 |
Will be removed after snv_101. |
|
12745 | 196 |
* Mon Jun 30 2008 - [email protected] |
197 |
- Ship /usr/bin/libgnutls-config |
|
12643 | 198 |
* Thu Jun 12 2008 - [email protected] |
12647 | 199 |
- Fix attr error. |
200 |
* Thu Jun 12 2008 - [email protected] |
|
201 |
- Don't ship files that under GPLv3 which include some command tools and |
|
12643 | 202 |
header files. |
9794 | 203 |
* Thu Apr 26 2007 - [email protected] |
204 |
- set CXX to $CXX -norunpath because libtool swallows this option sometimes |
|
205 |
and leaves compiler paths in the binaries |
|
9681 | 206 |
* Thu Apr 05 2007 - [email protected] |
207 |
- Remove code in %install that creates the libgnutls.so.12 symlink. The symlink |
|
208 |
was added as a workaround for 6519334 and is no longer needed. Removing the |
|
209 |
symlink fixes 6521160, a reminder bug to remove the symlink. |
|
9632 | 210 |
* Tue Mar 27 2007 - [email protected] |
211 |
- enable 64-bit build |
|
9397 | 212 |
* Mon Feb 5 2007 - [email protected] |
213 |
- Add Requires SUNWlibC after check-deps.pl run. |
|
214 |
* Tue Jan 16 2007 - [email protected] |
|
215 |
- Do not ship psktool right now. |
|
216 |
* Sun Jun 11 2006 - [email protected] |
|
217 |
- change group from other to bin/sys |
|
218 |
* Thu May 11 2006 - [email protected] |
|
219 |
- Change %defattr to (-, root, other). |
|
220 |
* Thu May 04 2006 - [email protected] |
|
221 |
- merge -share pkg(s) into the base pkg(s) |
|
222 |
* Tue Apr 04 2006 - [email protected] |
|
223 |
- Alter remove .a/.la files part into linux spec. |
|
224 |
* Thu Mar 30 2006 - [email protected] |
|
225 |
- Remove all *.a/*.la files. |
|
226 |
* Fri Feb 17 2006 - [email protected] |
|
227 |
- Update Build/Requires after running check-deps.pl script. |
|
228 |
* Wed Oct 26 2005 - <[email protected]> |
|
229 |
- ship files under /usr/bin to enable SSL in libsoup. |
|
230 |
* Fri Sep 09 2005 - <[email protected]> |
|
231 |
- remove unpackaged files or add to %files |
|
232 |
* Wed Aug 31 2005 - [email protected] |
|
233 |
- Change SUNW_Category for open solaris |
|
234 |
* Thu Jul 07 2005 - [email protected] |
|
235 |
- define devel-share subpkg |
|
236 |
* Sat Oct 02 2004 - [email protected] |
|
237 |
- added %pkgbuild_postprocess |
|
238 |
* Tue Aug 31 2004 - [email protected] |
|
239 |
- Bug 5091588 : include files should be in a separate devel package |
|
240 |
* Sat Jun 26 2004 [email protected] |
|
241 |
- Changed install location to /usr/... |
|
242 |
* Thu Mar 11 2004 - <[email protected]> |
|
243 |
- initial version created |
|
15650 | 244 |