9397
|
1 |
#
|
|
2 |
# spec file for package SUNWlibgpg-error
|
|
3 |
#
|
|
4 |
# includes module(s): libgpg-error
|
|
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 libgpgerror64 = libgpg-error.spec
|
|
16 |
%endif
|
|
17 |
|
|
18 |
%include base.inc
|
9397
|
19 |
%use libgpgerror = libgpg-error.spec
|
|
20 |
|
|
21 |
Name: SUNWlibgpg-error
|
|
22 |
Summary: Common error codes for GnuPG, libgcrypt
|
|
23 |
Version: %{libgpgerror.version}
|
|
24 |
SUNW_BaseDir: %{_basedir}
|
11949
|
25 |
SUNW_Copyright:%{name}.copyright
|
9397
|
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
27 |
%include default-depend.inc
|
10627
|
28 |
Requires: SUNWgnome-base-libs
|
|
29 |
BuildRequires: SUNWgnome-base-libs-devel
|
12969
|
30 |
Source1: %{name}-manpages-0.1.tar.gz
|
9397
|
31 |
|
|
32 |
%package devel
|
|
33 |
Summary: %{summary} - development files
|
|
34 |
SUNW_BaseDir: %{_basedir}
|
|
35 |
%include default-depend.inc
|
|
36 |
Requires: %{name}
|
|
37 |
|
12919
|
38 |
%if %build_l10n
|
10588
|
39 |
%package l10n
|
|
40 |
Summary: %{summary} - l10n files
|
|
41 |
SUNW_BaseDir: %{_basedir}
|
|
42 |
%include default-depend.inc
|
|
43 |
Requires: %{name}
|
|
44 |
%endif
|
|
45 |
|
9397
|
46 |
%prep
|
|
47 |
rm -rf %name-%version
|
|
48 |
mkdir -p %name-%version
|
9632
|
49 |
%ifarch amd64 sparcv9
|
|
50 |
mkdir -p %name-%version/%_arch64
|
|
51 |
%libgpgerror64.prep -d %name-%version/%_arch64
|
|
52 |
%endif
|
|
53 |
|
|
54 |
mkdir -p %name-%version/%base_arch
|
|
55 |
%libgpgerror.prep -d %name-%version/%base_arch
|
9397
|
56 |
|
|
57 |
%build
|
9632
|
58 |
%ifarch amd64 sparcv9
|
|
59 |
%libgpgerror64.build -d %name-%version/%_arch64
|
|
60 |
%endif
|
|
61 |
|
|
62 |
%libgpgerror.build -d %name-%version/%base_arch
|
9397
|
63 |
|
12969
|
64 |
# Expand manpages tarball
|
|
65 |
cd %{_builddir}/%name-%version
|
|
66 |
gzcat %SOURCE1 | tar xf -
|
|
67 |
|
9397
|
68 |
%install
|
9632
|
69 |
rm -rf $RPM_BUILD_ROOT
|
|
70 |
%ifarch amd64 sparcv9
|
|
71 |
%libgpgerror64.install -d %name-%version/%_arch64
|
|
72 |
#remove this file because SUNWgnome-base-libs deliver same file
|
|
73 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%_arch64/charset.alias
|
|
74 |
%endif
|
|
75 |
|
|
76 |
%libgpgerror.install -d %name-%version/%base_arch
|
9397
|
77 |
|
|
78 |
#remove this file because SUNWgnome-base-libs deliver same file
|
9573
|
79 |
rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias
|
9397
|
80 |
|
12969
|
81 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
82 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
83 |
|
12919
|
84 |
%if %build_l10n
|
10588
|
85 |
%else
|
|
86 |
# REMOVE l10n FILES
|
|
87 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
88 |
%endif
|
|
89 |
|
9397
|
90 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
91 |
|
|
92 |
%clean
|
|
93 |
rm -rf $RPM_BUILD_ROOT
|
|
94 |
|
|
95 |
%files
|
13604
|
96 |
|
|
97 |
%doc -d %{base_arch}/libgpg-error-%{libgpgerror.version} AUTHORS README
|
|
98 |
%doc(bzip2) -d %{base_arch}/libgpg-error-%{libgpgerror.version} ChangeLog
|
|
99 |
%doc(bzip2) -d %{base_arch}/libgpg-error-%{libgpgerror.version} COPYING COPYING.LIB
|
|
100 |
%doc(bzip2) -d %{base_arch}/libgpg-error-%{libgpgerror.version} NEWS
|
|
101 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
102 |
|
9397
|
103 |
%defattr (-, root, bin)
|
|
104 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
105 |
%{_libdir}/lib*.so*
|
9632
|
106 |
%ifarch amd64 sparcv9
|
|
107 |
%{_libdir}/%{_arch64}/lib*.so*
|
|
108 |
%endif
|
12969
|
109 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
110 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
111 |
%dir %attr(0755, root, bin) %{_mandir}/man1
|
|
112 |
%{_mandir}/man1/*
|
|
113 |
%dir %attr(0755, root, bin) %{_mandir}/man3
|
|
114 |
%{_mandir}/man3/*
|
9397
|
115 |
|
|
116 |
%files devel
|
|
117 |
%defattr (-, root, bin)
|
|
118 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
119 |
%{_bindir}/*
|
|
120 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
121 |
%{_includedir}/*
|
|
122 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
123 |
%dir %attr (0755, root, other) %{_datadir}/aclocal
|
|
124 |
%{_datadir}/aclocal/*
|
9584
|
125 |
%{_datadir}/common-lisp
|
9397
|
126 |
|
12919
|
127 |
%if %build_l10n
|
10588
|
128 |
%files l10n
|
|
129 |
%defattr (-, root, bin)
|
|
130 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
131 |
%attr (-, root, other) %{_datadir}/locale
|
|
132 |
%endif
|
|
133 |
|
9397
|
134 |
%changelog
|
13604
|
135 |
* Tue Sep 16 2007 - [email protected]
|
|
136 |
- Add copyright.
|
10627
|
137 |
* Tue Oct 9 2007 - [email protected]
|
|
138 |
- Add Build/Requires SUNWgnome-base-libs/-devel for glib-gettextize.
|
10588
|
139 |
* Tue Oct 2 2007 - [email protected]
|
|
140 |
- add l10n subpkg
|
9632
|
141 |
* Tue Mar 27 2007 - [email protected]
|
|
142 |
- enable 64-bit build
|
9584
|
143 |
* Mon Jul 19 2007 - [email protected]
|
|
144 |
- Remove l10n package and update %files after libgpg-error bumped to 1.5.
|
9397
|
145 |
* Sat Jul 22 2006 - [email protected]
|
|
146 |
- Add l10n package.
|
|
147 |
* Thu May 11 2006 - [email protected]
|
|
148 |
- Change %defattr to (-, root, other).
|
|
149 |
* Thu May 04 2006 - [email protected]
|
|
150 |
- merge -share pkg(s) into the base pkg(s)
|
|
151 |
* Thu Apr 06 2006 - [email protected]
|
|
152 |
- Move -config file to -devel.
|
|
153 |
* Tue Apr 04 2006 - [email protected]
|
|
154 |
- Alter remove .a/.la files part into linux spec.
|
|
155 |
* Thu Mar 30 2006 - [email protected]
|
|
156 |
- Remove all *.a/*.la files.
|
|
157 |
* Fri Sep 09 2005 - <[email protected]>
|
|
158 |
- remove unpackaged files
|
|
159 |
* Wed Aug 31 2005 - [email protected]
|
|
160 |
- initial version created
|