9397
|
1 |
#
|
|
2 |
# spec file for package gnome-menu-editor
|
|
3 |
#
|
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
10646
|
8 |
# Owner: jedy
|
9397
|
9 |
#
|
16427
|
10 |
|
|
11 |
%define OSR gnome.org:0
|
|
12 |
|
14402
|
13 |
%include l10n.inc
|
9397
|
14 |
%define python_version 2.4
|
|
15 |
|
|
16 |
Name: alacarte
|
16145
|
17 |
Version: 0.12.1
|
9397
|
18 |
Release: 1
|
|
19 |
Summary: Simple menu editor for GNOME
|
|
20 |
Group: System/GUI/GNOME
|
|
21 |
License: GPL
|
|
22 |
URL: http://www.realistanew.com/projects/alacarte/
|
|
23 |
Distribution: java-desktop-system
|
|
24 |
Vendor: Sun Microsystems, Inc.
|
|
25 |
Source: http://ftp.gnome.org/pub/GNOME/sources/alacarte/0.11/alacarte-%{version}.tar.bz2
|
12031
|
26 |
%if %build_l10n
|
14402
|
27 |
Source1: l10n-configure.sh
|
|
28 |
Source2: %{name}-po-sun-%{po_sun_version}.tar.bz2
|
12031
|
29 |
%endif
|
12809
|
30 |
#owner:jedy date:2008-07-14 type:branding
|
13250
|
31 |
Patch1: alacarte-01-menu-entry.diff
|
9397
|
32 |
|
|
33 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
34 |
|
|
35 |
BuildRequires: pygtk2.0-devel
|
|
36 |
BuildRequires: desktop-file-utils
|
|
37 |
BuildRequires: gnome-menus-devel >= 2.15.4.1
|
|
38 |
BuildRequires: perl-XML-Parser
|
|
39 |
Requires: pygtk2.0, gnome-python-gconf, gnome-python
|
|
40 |
Requires: python-gnome-menus
|
|
41 |
Obsoletes: smeg
|
|
42 |
Provides: smeg %{version}-%{release}
|
|
43 |
|
|
44 |
%description
|
|
45 |
Alacarte is a menu editor for GNOME that lets you get things done,
|
|
46 |
simply and quickly.
|
|
47 |
|
|
48 |
Just click and type to edit, add, and delete any menu entry.
|
|
49 |
|
|
50 |
%prep
|
|
51 |
%setup -q
|
14402
|
52 |
%if %build_l10n
|
|
53 |
bzcat %SOURCE2 | tar xf -
|
|
54 |
cd po-sun; make; cd ..
|
|
55 |
%endif
|
|
56 |
|
12809
|
57 |
%patch1 -p1
|
9397
|
58 |
|
|
59 |
%build
|
|
60 |
%ifos linux
|
|
61 |
if [ -x /usr/bin/getconf ]; then
|
|
62 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
63 |
fi
|
|
64 |
%else
|
|
65 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
66 |
%endif
|
|
67 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
68 |
CPUS=1
|
|
69 |
fi
|
|
70 |
|
|
71 |
intltoolize -c -f --automake
|
12031
|
72 |
|
|
73 |
%if %build_l10n
|
|
74 |
bash -x %SOURCE1 --enable-copyright
|
|
75 |
%endif
|
|
76 |
|
9397
|
77 |
libtoolize --copy --force
|
|
78 |
aclocal $ACLOCAL_FLAGS
|
|
79 |
automake -a -c -f
|
|
80 |
autoconf
|
|
81 |
|
|
82 |
./configure --prefix=%{_prefix} --mandir=%{_mandir} \
|
|
83 |
--libdir=%{_libdir} \
|
|
84 |
--libexecdir=%{_libexecdir} \
|
|
85 |
--sysconfdir=%{_sysconfdir}
|
|
86 |
make -j $CPUS \
|
|
87 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
|
|
88 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages
|
|
89 |
|
|
90 |
%install
|
|
91 |
rm -rf $RPM_BUILD_ROOT
|
|
92 |
make DESTDIR=$RPM_BUILD_ROOT install \
|
|
93 |
pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
|
|
94 |
pythondir=%{_libdir}/python%{python_version}/vendor-packages
|
|
95 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
96 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
97 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
|
|
98 |
|
|
99 |
%post
|
|
100 |
%update_menus
|
|
101 |
%update_icon_cache hicolor
|
|
102 |
|
|
103 |
%postun
|
|
104 |
%clean_menus
|
|
105 |
%clean_icon_cache hicolor
|
|
106 |
|
|
107 |
%clean
|
|
108 |
rm -rf $RPM_BUILD_ROOT
|
|
109 |
|
|
110 |
%files -f %{name}.lang
|
|
111 |
%defattr (-, root, root)
|
|
112 |
%doc README AUTHORS COPYING
|
|
113 |
%{_libdir}/python?.?/vendor-packages/*
|
|
114 |
%{_bindir}/*
|
|
115 |
%{_datadir}/applications/*
|
|
116 |
%{_datadir}/%name/*
|
|
117 |
%{_datadir}/icons/*
|
|
118 |
%{_libdir}/menu/%{name}
|
|
119 |
|
|
120 |
%changelog
|
16145
|
121 |
* Tue Jul 28 2009 - [email protected]
|
|
122 |
- Bump to 0.12.1.
|
15908
|
123 |
* Tue Jun 16 2009 - [email protected]
|
|
124 |
- Bump to 0.12.0.
|
15435
|
125 |
* Wed Mar 18 2009 - [email protected]
|
|
126 |
- Bump to 0.11.10
|
15113
|
127 |
* Tue Feb 17 2009 - [email protected]
|
|
128 |
- Bump to 0.11.9
|
15104
|
129 |
* Mon Feb 16 2009 - [email protected]
|
|
130 |
- Bump to 0.11.8
|
14402
|
131 |
* Wed Oct 01 2008 - [email protected]
|
|
132 |
- Add l10n tarball.
|
13733
|
133 |
* Tue Sep 23 2008 - [email protected]
|
|
134 |
- Bump to 0.11.6.
|
13250
|
135 |
* Fri Aug 22 2008 - [email protected]
|
|
136 |
- rename desktop.diff to menu-entry.diff.
|
12809
|
137 |
* Mon Jul 14 2008 - [email protected]
|
|
138 |
- Add 01-desktop.diff.
|
11842
|
139 |
* Tue Mar 11 2008 - [email protected]
|
|
140 |
- Bump to 0.11.5.
|
11664
|
141 |
* Mon Feb 18 2008 - [email protected]
|
11661
|
142 |
- Bump to 0.11.4.
|
11158
|
143 |
* Fri Nov 09 2007 - [email protected]
|
|
144 |
* Remove 01-force-reload.diff.
|
10646
|
145 |
* Thu Oct 12 2007 - [email protected]
|
|
146 |
- Take the ownership from harrylu.
|
10635
|
147 |
* Wed Oct 10 2007 - [email protected]
|
|
148 |
- Don't delete *.pyc files - they are needed.
|
10345
|
149 |
* Fri Aug 17 2007 - [email protected]
|
|
150 |
- Fix 'patch1 -p0' - change to -p1 and change patch file too.
|
9397
|
151 |
* Tue Feb 13 2007 - [email protected]
|
|
152 |
- Bump to 0.11.3.
|
|
153 |
* Thu Jan 11 2007 - [email protected]
|
|
154 |
- Bump to 0.11.1.1.
|
|
155 |
* Tue Jan 09 2007 - [email protected]
|
|
156 |
- Bump to 0.11.0.
|
|
157 |
* Tue Dec 19 2006 - [email protected]
|
|
158 |
- Bump to 0.10.2. Remove upstream patches, 02-launch-menu-item and
|
|
159 |
03-g11n-i18n-ui.
|
|
160 |
* Tue Dec 12 2006 - [email protected]
|
|
161 |
- Added intltoollize to read LINGUAS file
|
|
162 |
- Added alacarte-03-g11n-i18n-ui.diff
|
|
163 |
* Fri Nov 17 2006 - [email protected]
|
|
164 |
- Change patch2 to use p1.
|
|
165 |
* Wed Nov 15 2006 - [email protected]
|
|
166 |
Change menu item to match latest UI spec.
|
|
167 |
* Tue Oct 03 2006 - [email protected]
|
|
168 |
- Bump to 0.10.0.
|
|
169 |
* Mon Sep 04 2006 - [email protected]
|
|
170 |
- Bump to 0.10.0.
|
|
171 |
* Thu Aug 24 2006 - [email protected]
|
|
172 |
- remove autoheader call since there is AC_CONFIG_HEADER in configure.in
|
|
173 |
* Tue Aug 22 2006 - [email protected]
|
|
174 |
- Divide SFEgnome-menu-editor.spec into alacarte.spec
|
|
175 |
and SUNWgnome-menu-editor.spec
|
|
176 |
* Wed Aug 16 2006 - [email protected]
|
|
177 |
- bump up to 0.9.90 and add patch alacarte-01-force-reload.diff to make
|
|
178 |
it work on solaris.
|
|
179 |
* Wed Jul 5 2006 - [email protected]
|
|
180 |
- rename to gnome-menu-editor
|
|
181 |
- delete share subpkg
|
|
182 |
* Fri Apr 21 2006 - [email protected]
|
|
183 |
- Initial spec file
|