author | lin |
Fri, 13 Aug 2010 03:25:24 +0000 | |
changeset 19995 | 949366b0f825 |
parent 19985 | 62e3256a8655 |
child 20019 | 19aeb0458094 |
permissions | -rw-r--r-- |
13390 | 1 |
# |
2 |
# spec file for package SUNWnwam-manager |
|
3 |
# |
|
4 |
# includes module(s): nwam-manager |
|
5 |
# |
|
17600 | 6 |
# Copyright 2010 Sun Microsystems, Inc. |
13390 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
17072 | 10 |
%define owner lin |
13390 | 11 |
# |
12 |
%include Solaris.inc |
|
13 |
||
14 |
%use nwam_manager = nwam-manager.spec |
|
15 |
||
16 |
Name: SUNWnwam-manager |
|
17937
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
17 |
IPS_package_name: desktop/administration/nwam-manager |
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
18 |
Meta(info.classification): %{classification_prefix}:System/Administration and Configuration |
13405 | 19 |
Summary: Network Auto-Magic User Interface |
13390 | 20 |
Version: %{default_pkg_version} |
21 |
Source: %{name}-manpages-0.1.tar.gz |
|
22 |
SUNW_BaseDir: %{_prefix} |
|
23 |
SUNW_Copyright: %{name}.copyright |
|
24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
25 |
||
26 |
%include default-depend.inc |
|
15650 | 27 |
BuildRequires: SUNWlibgnomecanvas-devel |
13390 | 28 |
BuildRequires: SUNWgnome-libs-devel |
29 |
# Disable these until NWAM 0.5 integrated into OpenSolaris |
|
30 |
# BuildRequires: SUNWnwamintu |
|
31 |
# BuildRequires: SUNWnwamintr |
|
32 |
BuildRequires: SUNWcslr |
|
15650 | 33 |
Requires: SUNWlibgnomecanvas |
13390 | 34 |
Requires: %{name}-root |
35 |
Requires: SUNWgnome-libs |
|
36 |
Requires: SUNWgnome-session |
|
37 |
Requires: SUNWcslr |
|
15556 | 38 |
Requires: SUNWdesktop-cache |
13390 | 39 |
|
40 |
%package root |
|
41 |
Summary: %{summary} - / filesystem |
|
42 |
SUNW_BaseDir: / |
|
43 |
%include default-depend.inc |
|
44 |
||
45 |
%if %build_l10n |
|
46 |
%package l10n |
|
47 |
Summary: %{summary} - l10n files |
|
48 |
SUNW_BaseDir: %{_basedir} |
|
49 |
%include default-depend.inc |
|
50 |
Requires: %{name} |
|
51 |
%endif |
|
52 |
||
53 |
%prep |
|
54 |
rm -rf %name-%version |
|
55 |
mkdir %name-%version |
|
56 |
%nwam_manager.prep -d %name-%version |
|
57 |
cd %{_builddir}/%name-%version |
|
58 |
gzcat %SOURCE0 | tar xf - |
|
59 |
||
60 |
%build |
|
61 |
%nwam_manager.build -d %name-%version |
|
62 |
||
63 |
%install |
|
64 |
rm -rf $RPM_BUILD_ROOT |
|
65 |
%nwam_manager.install -d %name-%version |
|
66 |
cd %{_builddir}/%name-%version/sun-manpages |
|
67 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
68 |
||
69 |
%if %build_l10n |
|
70 |
%else |
|
71 |
# REMOVE l10n FILES |
|
72 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
73 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* |
|
74 |
rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
75 |
rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-??_??.omf |
|
76 |
%endif |
|
77 |
||
78 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT} |
|
79 |
||
80 |
%clean |
|
81 |
rm -rf $RPM_BUILD_ROOT |
|
82 |
||
83 |
%post |
|
15556 | 84 |
%restart_fmri icon-cache gconf-cache |
13405 | 85 |
|
13390 | 86 |
%files |
87 |
%defattr (-, root, bin) |
|
17600 | 88 |
%dir %attr (0755, root, bin) %{_bindir} |
89 |
%{_bindir}/* |
|
13390 | 90 |
%dir %attr (0755, root, bin) %{_libexecdir} |
91 |
%{_libexecdir}/* |
|
92 |
%dir %attr (0755, root, sys) %{_datadir} |
|
17600 | 93 |
%dir %attr (0755, root, other) %{_datadir}/applications |
94 |
%{_datadir}/applications/* |
|
13390 | 95 |
%dir %attr (0755, root, bin) %{_datadir}/nwam-manager |
96 |
%dir %attr (0755, root, bin) %{_datadir}/nwam-manager/icons |
|
13405 | 97 |
%attr (-, root, bin) %{_datadir}/nwam-manager/*.* |
98 |
%attr (-, root, bin) %{_datadir}/nwam-manager/icons/* |
|
13390 | 99 |
%dir %attr (0755, root, other) %{_datadir}/icons |
13438 | 100 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor |
101 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16 |
|
102 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16/status |
|
103 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24 |
|
104 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/apps |
|
105 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/status |
|
17600 | 106 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/emblems |
13438 | 107 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32 |
108 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/apps |
|
109 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/status |
|
17600 | 110 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/emblems |
13438 | 111 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48 |
112 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/apps |
|
113 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/status |
|
114 |
%attr (-, root, other) %{_datadir}/icons/hicolor/16x16/status/* |
|
115 |
%attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps/* |
|
116 |
%attr (-, root, other) %{_datadir}/icons/hicolor/24x24/status/* |
|
17600 | 117 |
%attr (-, root, other) %{_datadir}/icons/hicolor/24x24/emblems/* |
13438 | 118 |
%attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps/* |
119 |
%attr (-, root, other) %{_datadir}/icons/hicolor/32x32/status/* |
|
17600 | 120 |
%attr (-, root, other) %{_datadir}/icons/hicolor/32x32/emblems/* |
13438 | 121 |
%attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps/* |
122 |
%attr (-, root, other) %{_datadir}/icons/hicolor/48x48/status/* |
|
17600 | 123 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
124 |
%{_datadir}/gnome/help/nwam-manager/C |
|
125 |
%{_datadir}/omf/nwam-manager/*-C.omf |
|
13390 | 126 |
%dir %attr(0755, root, bin) %{_mandir} |
127 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
128 |
%{_mandir}/*/* |
|
13589 | 129 |
%doc -d nwam-manager-%{nwam_manager.version} AUTHORS README |
19995 | 130 |
%doc(bzip2) -d nwam-manager-%{nwam_manager.version} ChangeLog |
13589 | 131 |
%dir %attr (0755, root, other) %{_datadir}/doc |
13390 | 132 |
|
133 |
%files root |
|
134 |
%defattr(-, root, sys) |
|
135 |
%attr(0755, root, sys) %dir %{_sysconfdir} |
|
136 |
%{_sysconfdir}/gconf/schemas/nwam-manager.schemas |
|
137 |
%dir %attr (-, root, sys) %{_sysconfdir}/xdg |
|
138 |
%dir %attr (-, root, sys) %{_sysconfdir}/xdg/autostart |
|
139 |
%attr (-, root, sys) %{_sysconfdir}/xdg/autostart/* |
|
140 |
||
141 |
%if %build_l10n |
|
142 |
%files l10n |
|
143 |
%defattr (-, root, bin) |
|
144 |
%dir %attr (0755, root, sys) %{_datadir} |
|
19985 | 145 |
%attr (-, root, other) %{_datadir}/locale/*/ |
17600 | 146 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
13390 | 147 |
%endif |
148 |
||
149 |
%changelog |
|
19995 | 150 |
* Fri Aug 13 2010 - [email protected] |
151 |
- Remove CDDL from package. |
|
17600 | 152 |
* Fri Feb 24 2010 - [email protected] |
153 |
- Update for phase 1.0 |
|
15556 | 154 |
* Fri Apr 3 2009 - [email protected] |
155 |
- use desktop-cache instead of postrun |
|
13589 | 156 |
* Mon Sep 15 2008 - [email protected] |
157 |
- Update copyright (thanks to Matt for the changes). |
|
13438 | 158 |
* Mon Sep 8 2008 - [email protected] |
159 |
- Fix some icon file attributes. |
|
13429 | 160 |
* Fri Sep 5 2008 - [email protected] |
161 |
- Comment more l10n dirs until there is something to deliver, it's |
|
162 |
causing build failures. |
|
13405 | 163 |
* Thu Sep 4 2008 - [email protected] |
164 |
- Fix some issues in spec, add preun for schema and fix l10n build.. |
|
13390 | 165 |
* Wed Sep 3 2008 - [email protected] |
166 |
- Initial delivery. |
|
15650 | 167 |