author | davelam |
Mon, 15 Mar 2010 02:59:51 +0000 | |
branch | gnome-2-28 |
changeset 18663 | a66b3e99c95a |
parent 16662 | b97112f68e33 |
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 |
# |
|
16434 | 10 |
%define owner jefftsai |
9397 | 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 |
|
16326 | 89 |
%endif |
9632 | 90 |
|
91 |
%gnutls.install -d %name-%version/%base_arch |
|
9397 | 92 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/man |
93 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/info |
|
15818 | 94 |
rm -rf $RPM_BUILD_ROOT%{_bindir} |
12643 | 95 |
rm $RPM_BUILD_ROOT%{_libdir}/libgnutls-extra* |
96 |
rm $RPM_BUILD_ROOT%{_libdir}/libgnutls-openssl* |
|
97 |
rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gnutls-extra.pc |
|
98 |
rm $RPM_BUILD_ROOT%{_includedir}/gnutls/extra.h |
|
99 |
rm $RPM_BUILD_ROOT%{_includedir}/gnutls/openssl.h |
|
9397 | 100 |
|
12770 | 101 |
%ifarch amd64 sparcv9 |
102 |
cd $RPM_BUILD_ROOT%{_libdir}/%_arch64 |
|
103 |
%endif |
|
104 |
cd $RPM_BUILD_ROOT%{_libdir}/ |
|
105 |
||
12960 | 106 |
cd %{_builddir}/%name-%version/sun-manpages |
107 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
108 |
||
12919 | 109 |
%if %build_l10n |
10590 | 110 |
%else |
111 |
# REMOVE l10n FILES |
|
112 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
113 |
%endif |
|
114 |
||
9397 | 115 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
116 |
||
117 |
%clean |
|
118 |
rm -rf $RPM_BUILD_ROOT |
|
12647 | 119 |
|
9397 | 120 |
%files |
13599 | 121 |
|
122 |
%doc -d %{base_arch}/gnutls-%{gnutls.version} AUTHORS README |
|
123 |
%doc(bzip2) -d %{base_arch}/gnutls-%{gnutls.version} ChangeLog |
|
15827 | 124 |
%doc(bzip2) -d %{base_arch}/gnutls-%{gnutls.version} lib/COPYING |
13599 | 125 |
%doc(bzip2) -d %{base_arch}/gnutls-%{gnutls.version} NEWS |
126 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
127 |
||
12647 | 128 |
%defattr (-, root, bin) |
9397 | 129 |
%dir %attr (0755, root, bin) %{_libdir} |
130 |
%{_libdir}/lib*.so* |
|
9632 | 131 |
%ifarch amd64 sparcv9 |
132 |
%{_libdir}/%{_arch64}/lib*.so* |
|
133 |
%endif |
|
9397 | 134 |
|
12968 | 135 |
%dir %attr (0755, root, sys) %{_datadir} |
136 |
%dir %attr(0755, root, bin) %{_mandir} |
|
137 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
|
138 |
%{_mandir}/man3/* |
|
139 |
||
9397 | 140 |
%files devel |
141 |
%defattr (-, root, bin) |
|
142 |
%dir %attr (0755, root, bin) %{_includedir} |
|
143 |
%{_includedir}/* |
|
144 |
%dir %attr (0755, root, bin) %{_libdir} |
|
145 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
146 |
%{_libdir}/pkgconfig/* |
|
9632 | 147 |
%ifarch sparcv9 amd64 |
148 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig |
|
149 |
%{_libdir}/%{_arch64}/pkgconfig/* |
|
150 |
%endif |
|
9397 | 151 |
|
10590 | 152 |
#FIXME: l10n build fails on nevada |
12919 | 153 |
%if %build_l10n |
10590 | 154 |
%files l10n |
155 |
%defattr (-, root, bin) |
|
156 |
%dir %attr (0755, root, sys) %{_datadir} |
|
157 |
%attr (-, root, other) %{_datadir}/locale |
|
158 |
%endif |
|
159 |
||
9397 | 160 |
%changelog |
16662
b97112f68e33
Remove %{_data_dir}/man/man1 from %files section.
davelam
parents:
16434
diff
changeset
|
161 |
* Set Sep 26 2009 - [email protected] |
b97112f68e33
Remove %{_data_dir}/man/man1 from %files section.
davelam
parents:
16434
diff
changeset
|
162 |
- Remove %{_data_dir}/man/man1 from %files section. |
16326 | 163 |
* Fir Aug 20 2009 - [email protected] |
16325 | 164 |
- Remove the temporary softlink libgnutls.so.13 |
15827 | 165 |
* Mon Jun 01 2009 - [email protected] |
166 |
- Since COPYING.lib is moved to lib/COPYING, change the |
|
167 |
spec to ship it. |
|
15818 | 168 |
* Sun May 31 2009 - [email protected] |
169 |
- Changed some files based on 2.8. |
|
14470 | 170 |
* Thu Oct 15 2008 - [email protected] |
171 |
- Remove the temporary softlink libgnutls.so.13 |
|
13599 | 172 |
* Wed Sep 16 2008 - [email protected] |
173 |
- Add copyright. |
|
12960 | 174 |
* Thu Jul 31 2008 - [email protected] |
175 |
- Add man pages. |
|
176 |
- Add dependency on libtasn1 |
|
12907 | 177 |
* Wed Jul 23 2008 - [email protected] |
178 |
- Remove %option_with_gnu_iconv around %files l10n to match the package |
|
179 |
definition. |
|
12770 | 180 |
* Tue Jul 08 2008 - [email protected] |
181 |
- Add a temporary softlink libgnutls.so.13 |
|
182 |
Will be removed after snv_101. |
|
12745 | 183 |
* Mon Jun 30 2008 - [email protected] |
184 |
- Ship /usr/bin/libgnutls-config |
|
12643 | 185 |
* Thu Jun 12 2008 - [email protected] |
12647 | 186 |
- Fix attr error. |
187 |
* Thu Jun 12 2008 - [email protected] |
|
188 |
- Don't ship files that under GPLv3 which include some command tools and |
|
12643 | 189 |
header files. |
9794 | 190 |
* Thu Apr 26 2007 - [email protected] |
191 |
- set CXX to $CXX -norunpath because libtool swallows this option sometimes |
|
192 |
and leaves compiler paths in the binaries |
|
9681 | 193 |
* Thu Apr 05 2007 - [email protected] |
194 |
- Remove code in %install that creates the libgnutls.so.12 symlink. The symlink |
|
195 |
was added as a workaround for 6519334 and is no longer needed. Removing the |
|
196 |
symlink fixes 6521160, a reminder bug to remove the symlink. |
|
9632 | 197 |
* Tue Mar 27 2007 - [email protected] |
198 |
- enable 64-bit build |
|
9397 | 199 |
* Mon Feb 5 2007 - [email protected] |
200 |
- Add Requires SUNWlibC after check-deps.pl run. |
|
201 |
* Tue Jan 16 2007 - [email protected] |
|
202 |
- Do not ship psktool right now. |
|
203 |
* Sun Jun 11 2006 - [email protected] |
|
204 |
- change group from other to bin/sys |
|
205 |
* Thu May 11 2006 - [email protected] |
|
206 |
- Change %defattr to (-, root, other). |
|
207 |
* Thu May 04 2006 - [email protected] |
|
208 |
- merge -share pkg(s) into the base pkg(s) |
|
209 |
* Tue Apr 04 2006 - [email protected] |
|
210 |
- Alter remove .a/.la files part into linux spec. |
|
211 |
* Thu Mar 30 2006 - [email protected] |
|
212 |
- Remove all *.a/*.la files. |
|
213 |
* Fri Feb 17 2006 - [email protected] |
|
214 |
- Update Build/Requires after running check-deps.pl script. |
|
215 |
* Wed Oct 26 2005 - <[email protected]> |
|
216 |
- ship files under /usr/bin to enable SSL in libsoup. |
|
217 |
* Fri Sep 09 2005 - <[email protected]> |
|
218 |
- remove unpackaged files or add to %files |
|
219 |
* Wed Aug 31 2005 - [email protected] |
|
220 |
- Change SUNW_Category for open solaris |
|
221 |
* Thu Jul 07 2005 - [email protected] |
|
222 |
- define devel-share subpkg |
|
223 |
* Sat Oct 02 2004 - [email protected] |
|
224 |
- added %pkgbuild_postprocess |
|
225 |
* Tue Aug 31 2004 - [email protected] |
|
226 |
- Bug 5091588 : include files should be in a separate devel package |
|
227 |
* Sat Jun 26 2004 [email protected] |
|
228 |
- Changed install location to /usr/... |
|
229 |
* Thu Mar 11 2004 - <[email protected]> |
|
230 |
- initial version created |
|
15650 | 231 |