9397
|
1 |
#
|
|
2 |
# spec file for package SUNWevolution-exchange
|
|
3 |
#
|
|
4 |
# includes module(s): exchange-connector
|
|
5 |
#
|
11370
|
6 |
# Copyright 2008 Sun Microsystems, Inc.
|
9397
|
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: jedy
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
%use evolution = evolution.spec
|
|
14 |
%use evoexchange = evolution-exchange.spec
|
|
15 |
%define evo_prefix /usr/lib/evolution
|
|
16 |
|
|
17 |
Name: SUNWevolution-exchange
|
|
18 |
Summary: Exchange connector for Evolution
|
|
19 |
Version: %{default_pkg_version}
|
|
20 |
SUNW_Category: EVO25,%{default_category}
|
11969
|
21 |
SUNW_Copyright: %{name}.copyright
|
9397
|
22 |
SUNW_BaseDir: %{_basedir}
|
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
24 |
%include default-depend.inc
|
|
25 |
Source1: %{name}-manpages-0.1.tar.gz
|
|
26 |
Requires: SUNWevolution
|
|
27 |
Requires: SUNWgnome-print
|
|
28 |
Requires: SUNWgnome-config
|
|
29 |
Requires: SUNWgnome-libs
|
|
30 |
Requires: SUNWevolution-data-server
|
|
31 |
Requires: SUNWevolution-libs
|
11791
|
32 |
Requires: SUNWlibsoup
|
9397
|
33 |
Requires: SUNWgnome-base-libs
|
|
34 |
Requires: SUNWgnome-component
|
|
35 |
Requires: SUNWgnome-vfs
|
|
36 |
Requires: SUNWgnutls
|
|
37 |
Requires: SUNWlibgcrypt
|
|
38 |
Requires: SUNWlibgpg-error
|
|
39 |
Requires: SUNWlibms
|
|
40 |
Requires: SUNWlibpopt
|
|
41 |
Requires: SUNWlxml
|
|
42 |
Requires: SUNWmlib
|
|
43 |
Requires: SUNWzlib
|
|
44 |
BuildRequires: SUNWevolution-data-server-devel
|
|
45 |
BuildRequires: SUNWevolution-libs-devel
|
11791
|
46 |
BuildRequires: SUNWlibsoup-devel
|
9397
|
47 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
48 |
BuildRequires: SUNWgnome-component-devel
|
|
49 |
BuildRequires: SUNWgnome-vfs-devel
|
|
50 |
BuildRequires: SUNWgnutls-devel
|
|
51 |
BuildRequires: SUNWlibgcrypt-devel
|
|
52 |
BuildRequires: SUNWlibgpg-error-devel
|
|
53 |
BuildRequires: SUNWlibpopt-devel
|
|
54 |
BuildRequires: SUNWgnome-print-devel
|
|
55 |
BuildRequires: SUNWgnome-config-devel
|
|
56 |
BuildRequires: SUNWgnome-libs-devel
|
|
57 |
BuildRequires: SUNWevolution-devel
|
|
58 |
|
|
59 |
%package root
|
|
60 |
Summary: %{summary} - / filesystem
|
|
61 |
SUNW_BaseDir: /
|
|
62 |
%include default-depend.inc
|
|
63 |
Requires: SUNWpostrun-root
|
|
64 |
Requires: SUNWgnome-config
|
|
65 |
|
|
66 |
%if %build_l10n
|
|
67 |
%package l10n
|
|
68 |
Summary: %{summary} - l10n files
|
|
69 |
SUNW_BaseDir: %{_basedir}
|
|
70 |
%include default-depend.inc
|
|
71 |
Requires: %{name}
|
|
72 |
%endif
|
|
73 |
|
|
74 |
%prep
|
|
75 |
rm -rf %name-%version
|
|
76 |
mkdir -p %name-%version
|
|
77 |
%evoexchange.prep -d %name-%version
|
|
78 |
cd %{_builddir}/%name-%version
|
|
79 |
gzcat %SOURCE1 | tar xf -
|
|
80 |
|
|
81 |
%build
|
|
82 |
#FIXME: symbol clash in the evo libraries means we can't use -Bdirect
|
|
83 |
# should be re-enabled once these issues are fixed
|
|
84 |
export LD=/usr/ccs/bin/ld
|
10616
|
85 |
export LDFLAGS="-z ignore %{?arch_ldadd} -L%{_libdir} -R%{_libdir} -L%{evo_prefix}/%{evolution.major_version} -R%{evo_prefix}/%{evolution.major_version}"
|
9397
|
86 |
export CFLAGS="%optflags"
|
|
87 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
88 |
export PKG_CONFIG_PATH="%_pkg_config_path"
|
|
89 |
%evoexchange.build -d %name-%version
|
|
90 |
|
|
91 |
%install
|
|
92 |
%evoexchange.install -d %name-%version
|
|
93 |
mv $RPM_BUILD_ROOT%{_bindir}/exchange-connector-setup-%{evolution.major_version} $RPM_BUILD_ROOT%{_bindir}/exchange-connector-setup
|
|
94 |
|
|
95 |
# Delete gtk-doc files before packagine.
|
|
96 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
|
|
97 |
|
|
98 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
99 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
100 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
101 |
|
|
102 |
%if %build_l10n
|
|
103 |
%else
|
|
104 |
# REMOVE l10n FILES
|
|
105 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
106 |
%endif
|
|
107 |
|
|
108 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
109 |
|
|
110 |
%clean
|
|
111 |
rm -rf $RPM_BUILD_ROOT
|
|
112 |
|
|
113 |
%post root
|
11370
|
114 |
%include gconf-install.script
|
9397
|
115 |
|
|
116 |
%preun root
|
|
117 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
118 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
119 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
120 |
echo ' exit 0';
|
|
121 |
echo '}';
|
|
122 |
echo 'umask 0022';
|
|
123 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
124 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
125 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
126 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
127 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
11499
|
128 |
echo 'schemas="$SDIR/apps_exchange_addressbook-%{evolution.major_version}.schemas"';
|
|
129 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas > /dev/null'
|
9397
|
130 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS_wait -a
|
|
131 |
|
|
132 |
%files
|
|
133 |
%defattr (-, root, bin)
|
|
134 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
135 |
%{_bindir}/*
|
|
136 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
137 |
%{_libdir}/evolution
|
|
138 |
%{_libdir}/evolution-data-server-*
|
|
139 |
%{_libdir}/bonobo/servers/*
|
|
140 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
141 |
%{_datadir}/evolution-exchange
|
|
142 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
143 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
144 |
%{_mandir}/*/*
|
|
145 |
|
|
146 |
%if %build_l10n
|
|
147 |
%files l10n
|
|
148 |
%defattr (-, root, bin)
|
|
149 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
150 |
%attr (-, root, other) %{_datadir}/locale
|
|
151 |
%endif
|
|
152 |
|
|
153 |
%files root
|
9780
|
154 |
%defattr (-, root, sys)
|
9397
|
155 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
156 |
%{_sysconfdir}/gconf/schemas/apps_exchange_addressbook-%{evolution.major_version}.schemas
|
|
157 |
|
|
158 |
%changelog
|
11370
|
159 |
* Thu Jan 3 2008 - [email protected]
|
|
160 |
- use gconf-install.script instead of an inline script
|
10616
|
161 |
* Fri Oct 5 2007 - [email protected]
|
|
162 |
- add %{arch_ldadd} to LDFLAGS for GNU libiconv/libintl
|
9780
|
163 |
* Tue Apr 24 2007 - [email protected]
|
|
164 |
- s/0755/-/ in defattr so that files are not made all executable
|
9397
|
165 |
* Wed Dec 13 2006 - [email protected]
|
|
166 |
- Replace evo_major_version with major_version in evolution.spec.
|
|
167 |
- Ship schema.
|
|
168 |
* Wed Nov 29 2006 - [email protected]
|
|
169 |
- Revert version to %{default_pkg_version} as this module has been integrated
|
|
170 |
to Nevada with this version. Using the base module's version number (2.8.x)
|
|
171 |
is lower than 2.16.x and will cause an integration error.
|
|
172 |
- Bump evo_major_version to 2.10 to match SUNWevolution.
|
|
173 |
- Remove unnecessary 'cd' calls in %prep.
|
|
174 |
* Tue Nov 28 2006 - [email protected]
|
|
175 |
- use evoexchange to refer to the spec file.
|
|
176 |
* Mon Nov 27 2006 - [email protected]
|
|
177 |
- Use evolution-exchange's version information to replace default one.
|
|
178 |
* Mon Oct 23 2006 - [email protected]
|
|
179 |
- Moved all patches to ../patches/
|
|
180 |
* Fri Sep 01 2006 - [email protected]
|
|
181 |
- Add new man page tarball
|
|
182 |
* Sat Aug 12 2006 - [email protected]
|
|
183 |
- delete some unnecessary env variables
|
|
184 |
* Tue Jul 25 2006 - [email protected]
|
|
185 |
- Reorder patches.
|
|
186 |
* Mon Jun 24 2006 - [email protected]
|
|
187 |
- Bump to trunk 2.7.4
|
|
188 |
Remove patch evolution-exchange-01-ldap.diff.
|
|
189 |
- Updated patch evolution-exchange-01-ldap.diff.
|
|
190 |
* Sun Jun 22 2006 - [email protected]
|
|
191 |
- Updated patch evolution-exchange-01-ldap.diff.
|
|
192 |
* Sun Jun 11 2006 - [email protected]
|
|
193 |
- change group from other to bin/sys
|
|
194 |
* Thu Jun 8 2006 - [email protected]
|
|
195 |
- Add man page exchange-connector-setup.1
|
|
196 |
* Thu Jun 1 2006 - [email protected]
|
|
197 |
- Change renaming of ximian-connector-setup to renaming
|
|
198 |
of exchange-connector-setup in %install section.
|
|
199 |
* Wed May 31 2006 - [email protected]
|
|
200 |
- When moving ximian-connector-setup-2.6 use %{tarball} instead of '*'.
|
|
201 |
- Revmove references to gtk-doc dir from %files as files no longer installed.
|
|
202 |
* Thu May 11 2006 - [email protected]
|
|
203 |
- Change %defattr to (-, root, other).
|
|
204 |
* Thu Apr 27 2006 - [email protected]
|
|
205 |
- Move ximian-connector-setup-2.6 to ximian-connector-setup,
|
|
206 |
ARC request: no version binnaries under /usr/bin
|
|
207 |
* Thu Apr 06 2006 - [email protected]
|
|
208 |
- Now use tarball_version.
|
|
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 |
* Thu Feb 23 2006 - [email protected]
|
|
214 |
- Use default pkg version to match other pkgs; add EVO25 to default category.
|
|
215 |
* Mon Feb 20 2006 - [email protected]
|
|
216 |
- Complete update of Build/Requires after running check-deps.pl script.
|
|
217 |
* Thu Feb 16 2006 - [email protected]
|
|
218 |
- Update Build/Requires after running check-deps.pl script.
|
|
219 |
* Fri Jan 06 2006 - [email protected]
|
|
220 |
- Remove Solaris/patches/evolution-exchange-02-ldap-addfiles.diff
|
|
221 |
* Wed Dec 21 2005 - [email protected]
|
|
222 |
- Change evo_major_version from 2.4 to 2.6.
|
|
223 |
- Remove evolution-exchange-03-solaris-kerberos.diff and reorder.
|
|
224 |
* Wed Dec 7 2005 - [email protected]
|
|
225 |
- disable -Bdirect as due to symbol clashes
|
|
226 |
* Wed Nov 09 2005 - [email protected]
|
|
227 |
- Add Build/Requires SUNWgnome-print as required by evolution-exchange.
|
|
228 |
* Tue Nov 08 2005 - [email protected]
|
|
229 |
- Add /usr/lib/evolution/2.4 to LDFLAGS, fix bug #6347334.
|
|
230 |
* Mon Oct 10 2005 - [email protected]
|
|
231 |
- Moved define moz_prefix.
|
|
232 |
- Moved "-L%{moz_prefix}/lib/mozilla -R%{moz_prefix}/lib/mozilla" from LDFLAGS.
|
|
233 |
* Thu Sep 15 2005 - [email protected]
|
|
234 |
- Added define moz_prefix.
|
|
235 |
- Added "-L%{moz_prefix}/lib/mozilla -R%{moz_prefix}/lib/mozilla" to LDFLAGS
|
|
236 |
so mozilla libraries can be found.
|
|
237 |
- Added patch evolution-exchange-01-ldap.diff, evolution-exchange-02-ldap-addfiles.diff
|
|
238 |
for SUN LDAP.
|
|
239 |
- Added patch evolution-exchange-03-solaris-kerberos.diff to disable krb5.
|
|
240 |
- Added patch evolution-exchange-04-solaris-eutil.diff to fix -leutil not found problem.
|
|
241 |
- Change %files section.
|
|
242 |
- Change changelog more readable.
|
|
243 |
* Wed Aug 31 2005 - [email protected]
|
|
244 |
- Change SUNW_Category for open solaris
|
|
245 |
* Wed Aug 31 2005 - [email protected]
|
|
246 |
- Use evolution-exchange instead of ximian-connector.
|
|
247 |
* Thu Jul 14 2005 - [email protected]
|
|
248 |
- Use ximian-connector instead of oxygen2. %files changes will be needed.
|
|
249 |
* Sat Oct 02 2004 - [email protected]
|
|
250 |
- added %pkgbuild_postprocess
|
|
251 |
* Mon Sep 13 2004 - [email protected]
|
|
252 |
- change the component name from SUNWevolution-xchg-connect to SUNWevolution-exchange per Michelle Lei
|
|
253 |
* Tue Sep 07 2004 - [email protected]
|
|
254 |
- change copyright to ximian
|
|
255 |
* Sun Jun 27 2004 [email protected]
|
|
256 |
- Changed install location to /usr/...
|
|
257 |
- Added -root package for /etc files
|
|
258 |
* Wed Jun 16 2004 - [email protected]
|
|
259 |
- rename back to SUNWevolution-xchg-connect
|
|
260 |
* Fri Jun 11 2004 - [email protected]
|
|
261 |
- Set perms on _sysconfdir to correct a conflict.
|