9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-menu-editor
|
|
3 |
#
|
|
4 |
# includes module(s): alacarte
|
|
5 |
#
|
9782
|
6 |
# Copyright 2007 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: harrylu
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
%use alacarte = alacarte.spec
|
|
14 |
|
|
15 |
Name: SUNWgnome-menu-editor
|
|
16 |
Summary: %alacarte.summary
|
|
17 |
Version: %{default_pkg_version}
|
|
18 |
Source: %{name}-manpages-0.1.tar.gz
|
|
19 |
SUNW_BaseDir: %{_basedir}
|
|
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
21 |
%include default-depend.inc
|
|
22 |
Requires: SUNWgnome-libs
|
|
23 |
Requires: SUNWgnome-panel
|
|
24 |
Requires: SUNWgnome-python-libs
|
|
25 |
Requires: SUNWpostrun
|
|
26 |
Requires: SUNWPython
|
|
27 |
BuildRequires: SUNWgnome-libs-devel
|
|
28 |
BuildRequires: SUNWgnome-python-libs-devel
|
|
29 |
BuildRequires: SUNWPython
|
|
30 |
|
|
31 |
%if %build_l10n
|
|
32 |
%package l10n
|
|
33 |
Summary: %{summary} - l10n files
|
|
34 |
SUNW_BaseDir: %{_basedir}
|
|
35 |
%include default-depend.inc
|
|
36 |
Requires: %{name}
|
|
37 |
%endif
|
|
38 |
|
|
39 |
%prep
|
|
40 |
rm -rf %name-%version
|
|
41 |
mkdir -p %name-%version
|
|
42 |
%alacarte.prep -d %name-%version
|
|
43 |
cd %{_builddir}/%name-%version
|
|
44 |
gzcat %SOURCE0 | tar xf -
|
|
45 |
|
|
46 |
%build
|
|
47 |
export CFLAGS="%optflags"
|
|
48 |
export PYTHON="/usr/bin/python"
|
|
49 |
%alacarte.build -d %name-%version
|
|
50 |
|
|
51 |
%install
|
|
52 |
%alacarte.install -d %name-%version
|
|
53 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
54 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
55 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
56 |
|
|
57 |
%if %build_l10n
|
|
58 |
%else
|
|
59 |
# REMOVE l10n FILES
|
|
60 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
61 |
%endif
|
|
62 |
|
|
63 |
%clean
|
|
64 |
rm -rf $RPM_BUILD_ROOT
|
|
65 |
rm -rf ${RPM_BUILD_ROOT}DISABLE
|
|
66 |
|
|
67 |
%post
|
|
68 |
( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
|
9782
|
69 |
echo 'rm -f %{_datadir}/icons/*/icon-theme.cache';
|
9397
|
70 |
echo 'ls -d %{_datadir}/icons/* | xargs -l1 /usr/bin/gtk-update-icon-cache'
|
9782
|
71 |
) | $BASEDIR/lib/postrun -b -u -t 5 -c JDS
|
9397
|
72 |
|
|
73 |
%files
|
|
74 |
%defattr(-, root, bin)
|
|
75 |
%{_bindir}/
|
|
76 |
%attr (-, root, bin) %{_libdir}/python*
|
|
77 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
78 |
%{_datadir}/alacarte
|
|
79 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
80 |
%{_datadir}/applications/*
|
|
81 |
%attr (-, root, other) %{_datadir}/icons
|
|
82 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
83 |
%dir %attr(0755, root, bin) %{_mandir}/man1
|
|
84 |
%{_mandir}/man1/*
|
|
85 |
|
|
86 |
%if %build_l10n
|
|
87 |
%files l10n
|
|
88 |
%defattr (-, root, bin)
|
|
89 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
90 |
%attr (-, root, other) %{_datadir}/locale
|
|
91 |
%endif
|
|
92 |
|
|
93 |
%changelog
|
9782
|
94 |
* Tue Apr 24 2007 - [email protected]
|
|
95 |
- use $BASEDIR instead of $PKG_INSTALL_ROOT to fix diskless install
|
|
96 |
(CR 6537817)
|
9397
|
97 |
* Thu Nov 02 2006 - [email protected]
|
|
98 |
- Added l10n package. Fixes 6493499
|
|
99 |
* Fri Nov 16 2006 - [email protected]
|
|
100 |
- Add missing SUNWPython dependency (for /usr/bin/alacarte).
|
|
101 |
* Mon Sep 04 2006 - [email protected]
|
|
102 |
- New Manpage tarball
|
|
103 |
* Tue Aug 22 2006 - [email protected]
|
|
104 |
- Divide SFEgnome-menu-editor.spec into alacarte.spec
|
|
105 |
and SUNWgnome-menu-editor.spec
|
|
106 |
* Wed Aug 16 2006 - [email protected]
|
|
107 |
- bump up to 0.9.90 and add patch alacarte-01-force-reload.diff to make
|
|
108 |
it work on solaris.
|
|
109 |
* Wed Jul 5 2006 - [email protected]
|
|
110 |
- rename to SUNWgnome-menu-editor
|
|
111 |
- delete share subpkg
|
|
112 |
* Fri Apr 21 2006 - [email protected]
|
|
113 |
- Initial spec file
|