9397
|
1 |
#
|
|
2 |
# spec file for package SUNWlibgcrypt
|
|
3 |
#
|
|
4 |
# includes module(s): libgcrypt
|
|
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 |
|
|
14 |
%ifarch amd64 sparcv9
|
|
15 |
%include arch64.inc
|
|
16 |
%use libgcrypt64 = libgcrypt.spec
|
|
17 |
%endif
|
|
18 |
|
|
19 |
%include base.inc
|
9397
|
20 |
%use libgcrypt = libgcrypt.spec
|
|
21 |
|
|
22 |
Name: SUNWlibgcrypt
|
|
23 |
Summary: libgcrypt - cryptographic library
|
|
24 |
Version: %{libgcrypt.version}
|
|
25 |
SUNW_BaseDir: %{_basedir}
|
11931
|
26 |
SUNW_Copyright:%{name}.copyright
|
9397
|
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
28 |
%include default-depend.inc
|
|
29 |
Requires: SUNWlibgpg-error
|
|
30 |
BuildRequires: SUNWlibgpg-error-devel
|
|
31 |
|
12968
|
32 |
Source1: %{name}-manpages-0.1.tar.gz
|
|
33 |
|
9397
|
34 |
%package devel
|
|
35 |
Summary: %{summary} - development files
|
|
36 |
SUNW_BaseDir: %{_basedir}
|
|
37 |
%include default-depend.inc
|
|
38 |
Requires: SUNWlibgcrypt
|
|
39 |
|
|
40 |
%prep
|
|
41 |
rm -rf %name-%version
|
|
42 |
mkdir -p %name-%version
|
9632
|
43 |
%ifarch amd64 sparcv9
|
|
44 |
mkdir -p %name-%version/%_arch64
|
|
45 |
%libgcrypt64.prep -d %name-%version/%_arch64
|
|
46 |
%endif
|
|
47 |
|
|
48 |
mkdir -p %name-%version/%base_arch
|
|
49 |
%libgcrypt.prep -d %name-%version/%base_arch
|
9397
|
50 |
|
12968
|
51 |
# Expand manpages tarball
|
|
52 |
cd %{_builddir}/%name-%version
|
|
53 |
gzcat %SOURCE1 | tar xf -
|
|
54 |
|
|
55 |
|
9397
|
56 |
%build
|
9632
|
57 |
%ifarch amd64 sparcv9
|
|
58 |
%libgcrypt64.build -d %name-%version/%_arch64
|
|
59 |
%endif
|
|
60 |
|
|
61 |
%libgcrypt.build -d %name-%version/%base_arch
|
9397
|
62 |
|
|
63 |
%install
|
9632
|
64 |
rm -rf $RPM_BUILD_ROOT
|
|
65 |
%ifarch amd64 sparcv9
|
|
66 |
%libgcrypt64.install -d %name-%version/%_arch64
|
|
67 |
#rm -rf $RPM_BUILD_ROOT%{_bindir}/%_arch64
|
|
68 |
%endif
|
|
69 |
|
|
70 |
%libgcrypt.install -d %name-%version/%base_arch
|
12615
|
71 |
rm -r $RPM_BUILD_ROOT%{_datadir}/info
|
|
72 |
rm -r $RPM_BUILD_ROOT%{_sbindir}
|
9397
|
73 |
|
12968
|
74 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
75 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
76 |
|
9397
|
77 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
78 |
|
|
79 |
%clean
|
|
80 |
rm -rf $RPM_BUILD_ROOT
|
|
81 |
|
|
82 |
%files
|
13602
|
83 |
%doc -d %{base_arch}/libgcrypt-%{libgcrypt.version} AUTHORS README
|
|
84 |
%doc(bzip2) -d %{base_arch}/libgcrypt-%{libgcrypt.version} ChangeLog
|
|
85 |
%doc(bzip2) -d %{base_arch}/libgcrypt-%{libgcrypt.version} COPYING COPYING.LIB
|
|
86 |
%doc(bzip2) -d %{base_arch}/libgcrypt-%{libgcrypt.version} NEWS
|
13599
|
87 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
88 |
|
9397
|
89 |
%defattr (-, root, bin)
|
|
90 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
91 |
%{_libdir}/lib*.so*
|
9632
|
92 |
%ifarch amd64 sparcv9
|
|
93 |
%{_libdir}/%{_arch64}
|
|
94 |
%endif
|
9397
|
95 |
|
12968
|
96 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
97 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
98 |
%dir %attr(0755, root, bin) %{_mandir}/man1
|
|
99 |
%{_mandir}/man1/*
|
|
100 |
%dir %attr(0755, root, bin) %{_mandir}/man3
|
|
101 |
%{_mandir}/man3/*
|
|
102 |
|
9397
|
103 |
%files devel
|
|
104 |
%defattr (-, root, bin)
|
|
105 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
106 |
%{_bindir}/*
|
|
107 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
108 |
%{_includedir}/*
|
|
109 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
110 |
%dir %attr (0755, root, other) %{_datadir}/aclocal
|
|
111 |
%{_datadir}/aclocal/*
|
|
112 |
|
|
113 |
%changelog
|
13599
|
114 |
* Wed Sep 16 2008 - [email protected]
|
|
115 |
- Add copyright.
|
12968
|
116 |
* Thu Jul 31 2008 - [email protected]
|
|
117 |
- Add man pages for libgcrypt.
|
12615
|
118 |
* Fri Jun 06 2008 - [email protected]
|
|
119 |
- Change 'rm -rf' to 'rm -r' so that changes to installed dirs will be noticed
|
|
120 |
in build logs.
|
9632
|
121 |
* Tue Mar 27 2007 - [email protected]
|
|
122 |
- enable 64-bit build
|
9397
|
123 |
* Thu May 04 2006 - [email protected]
|
|
124 |
- merge -share pkg(s) into the base pkg(s)
|
|
125 |
* Thu Apr 06 2006 - [email protected]
|
|
126 |
- Move -config file to -devel.
|
|
127 |
* Tue Apr 04 2006 - [email protected]
|
|
128 |
- Alter remove .a/.la files part into linux spec.
|
|
129 |
* Thu Mar 30 2006 - [email protected]
|
|
130 |
- Remove all *.a/*.la files.
|
|
131 |
* Fri Sep 09 2005 - <[email protected]>
|
|
132 |
- remove unpackaged files
|
|
133 |
* Wed Sep 07 2005 - [email protected]
|
|
134 |
- Add Build/Requires SUNWlibgpg-error/-devel.
|
|
135 |
* Wed Aug 31 2005 - [email protected]
|
|
136 |
- Change SUNW_Category for open solaris
|
|
137 |
* Sat Oct 02 2004 - [email protected]
|
|
138 |
- added %pkgbuild_postprocess
|
|
139 |
* Fri Sep 10 2004 - [email protected]
|
|
140 |
- Added Requires: SUNWlibcrypt for devel package
|
|
141 |
* Mon Aug 30 2004 - [email protected]
|
|
142 |
- Bug 5091588 : include files should be in a separate devel package
|
|
143 |
* Sat Jun 26 2004 [email protected]
|
|
144 |
- Changed install location to /usr/...
|
|
145 |
* Thu Mar 11 2004 - <[email protected]>
|
|
146 |
- initial version created
|