9397
|
1 |
#
|
|
2 |
# spec file for package SUNWevolution-webcal
|
|
3 |
#
|
|
4 |
# includes module(s): exchange-webcal
|
|
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 |
#
|
11928
|
10 |
# Owner: jedy
|
9397
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
%use webcal = evolution-webcal.spec
|
|
14 |
|
|
15 |
Name: SUNWevolution-webcal
|
|
16 |
Summary: Webcal support for Evolution
|
|
17 |
Version: %{default_pkg_version}
|
|
18 |
SUNW_Category: EVO25,%{default_category}
|
11969
|
19 |
SUNW_Copyright: %{name}.copyright
|
9397
|
20 |
SUNW_BaseDir: %{_basedir}
|
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
%include default-depend.inc
|
|
23 |
Requires: SUNWevolution
|
|
24 |
Requires: SUNWlibpopt
|
|
25 |
Requires: SUNWevolution-data-server
|
|
26 |
Requires: SUNWevolution-libs
|
|
27 |
Requires: SUNWgnome-base-libs
|
|
28 |
Requires: SUNWgnome-component
|
|
29 |
Requires: SUNWgnome-config
|
|
30 |
Requires: SUNWgnome-libs
|
|
31 |
BuildRequires: SUNWevolution-data-server-devel
|
|
32 |
BuildRequires: SUNWevolution-libs-devel
|
|
33 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
34 |
BuildRequires: SUNWgnome-component-devel
|
|
35 |
BuildRequires: SUNWgnome-config-devel
|
|
36 |
BuildRequires: SUNWgnome-libs-devel
|
|
37 |
BuildRequires: SUNWlibpopt-devel
|
|
38 |
|
|
39 |
%package root
|
|
40 |
Summary: %{summary} - / filesystem
|
|
41 |
SUNW_BaseDir: /
|
|
42 |
%include default-depend.inc
|
|
43 |
Requires: SUNWpostrun-root
|
|
44 |
Requires: SUNWgnome-config
|
|
45 |
|
|
46 |
%if %build_l10n
|
|
47 |
%package l10n
|
|
48 |
Summary: %{summary} - l10n files
|
|
49 |
SUNW_BaseDir: %{_basedir}
|
|
50 |
%include default-depend.inc
|
|
51 |
Requires: %{name}
|
|
52 |
%endif
|
|
53 |
|
|
54 |
%prep
|
|
55 |
rm -rf %name-%version
|
|
56 |
mkdir -p %name-%version
|
|
57 |
%webcal.prep -d %name-%version
|
|
58 |
|
|
59 |
%build
|
|
60 |
export LDFLAGS="%_ldflags -L%{_libdir} -R%{_libdir}"
|
|
61 |
export CFLAGS="%optflags"
|
|
62 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
63 |
export PKG_CONFIG_PATH="%_pkg_config_path"
|
|
64 |
%webcal.build -d %name-%version
|
|
65 |
|
|
66 |
%install
|
|
67 |
rm -rf $RPM_BUILD_ROOT
|
|
68 |
%webcal.install -d %name-%version
|
|
69 |
|
|
70 |
%if %build_l10n
|
|
71 |
%else
|
|
72 |
# REMOVE l10n FILES
|
|
73 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
74 |
rmdir $RPM_BUILD_ROOT%{_datadir}
|
|
75 |
%endif
|
|
76 |
|
|
77 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):supported" $RPM_BUILD_ROOT}
|
|
78 |
|
|
79 |
%clean
|
|
80 |
rm -rf $RPM_BUILD_ROOT
|
|
81 |
|
|
82 |
%post root
|
11370
|
83 |
%include gconf-install.script
|
9397
|
84 |
|
|
85 |
%preun root
|
|
86 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
87 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
88 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
89 |
echo ' exit 0';
|
|
90 |
echo '}';
|
|
91 |
echo 'umask 0022';
|
|
92 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
93 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
94 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
95 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
96 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
97 |
echo 'schemas="$SDIR/evolution-webcal.schemas"';
|
|
98 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
99 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
100 |
|
|
101 |
%files
|
|
102 |
%defattr (-, root, bin)
|
|
103 |
%dir %attr (0755, root, bin) %{_libexecdir}
|
|
104 |
%{_libexecdir}/*
|
|
105 |
|
|
106 |
%files root
|
|
107 |
%defattr (-, root, sys)
|
|
108 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
109 |
%{_sysconfdir}/gconf/schemas/evolution-webcal.schemas
|
|
110 |
|
|
111 |
%if %build_l10n
|
|
112 |
%files l10n
|
|
113 |
%defattr (-, root, bin)
|
|
114 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
115 |
%attr (-, root, other) %{_datadir}/locale
|
|
116 |
%endif
|
|
117 |
|
|
118 |
%changelog
|
11370
|
119 |
* Thu Jan 3 2008 - [email protected]
|
|
120 |
- use gconf-install.script instead of an inline script
|
9397
|
121 |
* Sat Aug 12 2006 - [email protected]
|
|
122 |
- delete some unnecessary env variables
|
|
123 |
* Fri Jul 14 2006 - [email protected]
|
|
124 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
125 |
part of 6448317
|
|
126 |
* Thu Jun 29 2006 - [email protected]
|
|
127 |
- update postrun scripts
|
|
128 |
* Sun Jun 11 2006 - [email protected]
|
|
129 |
- change group from other to bin/sys
|
|
130 |
* Wed May 31 2006 - [email protected]
|
|
131 |
- use post/preun scripts to install schemas into the merged gconf files
|
|
132 |
* Thu May 11 2006 - [email protected]
|
|
133 |
- Change %defattr to (-, root, other).
|
|
134 |
* Thu Apr 13 2006 - [email protected]
|
|
135 |
- Add install schema script, fix bug #6408031.
|
|
136 |
* Thu Feb 23 2006 - [email protected]
|
|
137 |
- Use default pkg version to match other pkgs; add EVO25 to default category.
|
|
138 |
* Mon Feb 20 2006 - [email protected]
|
|
139 |
- Complete update of Build/Requires after running check-deps.pl script.
|
|
140 |
* Thu Feb 16 2006 - [email protected]
|
|
141 |
- Update Build/Requires after running check-deps.pl script.
|
|
142 |
* Tue Sep 20 2005 - [email protected]
|
|
143 |
- Initial spec for SUNWevolution-webcal
|