--- a/SUNWvirt-manager.spec Tue Apr 24 17:29:55 2007 +0000
+++ b/SUNWvirt-manager.spec Wed Apr 25 01:42:08 2007 +0000
@@ -34,6 +34,15 @@
Requires: SUNWgnome-config
+%if %build_l10n
+%package l10n
+Summary: %{summary} - l10n files
+SUNW_BaseDir: %{_basedir}
+%include default-depend.inc
+Requires: %{name}
+%endif
+
+
%prep
rm -rf %name-%version
mkdir %name-%version
@@ -51,6 +60,12 @@
%virtmanager.install -d %name-%version
%virtinst.install -d %name-%version
+%if %build_l10n
+%else
+# REMOVE l10n FILES
+rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
+%endif
+
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
@@ -106,34 +121,38 @@
%dir %attr (0755, root, other) %{_datadir}/applications
%{_datadir}/applications/virt-manager.desktop
%defattr(-, root, other)
-%dir %attr (0755, root, other) %{_datadir}/locale
-%{_datadir}/locale/*
%files root
%attr (0755, root, sys) %dir %{_sysconfdir}
-%defattr (0755, root, sys)
+%defattr (-, root, sys)
%{_sysconfdir}/gconf/schemas/virt-manager.schemas
+%if %build_l10n
+%files l10n
+%defattr (-, root, bin)
+%dir %attr (0755, root, sys) %{_datadir}
+%attr (-, root, other) %{_datadir}/locale
+%endif
+
+
%changelog
+* Tue Apr 24 2007 - [email protected]
+- s/0755/-/ in defattr so that files are not made all executable
+- define l10n subpkg
* Thu Mar 08 2007 - [email protected]
- Clean out $RPM_BUILD_ROOT at start of the %install section.
-
* Mon Mar 05 2007 - [email protected]
- Add virtinst module
-
* Fri Jan 12 2007 - [email protected]
- Tidy up.
-
* Wed Jan 10 2007 - [email protected]
- fixes from code review:
handle GConf schemas properly (in new -root pkg);
use %{_libexecdir};
move patch 01 to linux spec file
-
* Tue Dec 12 2006 - [email protected]
- Add Build/Requires SUNWgnome-python-libs/-devel for pygtk.
-
* Fri Dec 8 2006 - [email protected]
- Initial version