1 |
%define gnome_menus 3.2.0.1 |
2 |
|
3 |
%define url_ver %(echo %{version}|cut -d. -f1,2) |
4 |
|
5 |
Summary: Simple menu editor for Gnome |
6 |
Name: alacarte |
7 |
Version: 3.5.3 |
8 |
Release: %mkrel 2 |
9 |
Group: System/Configuration/Other |
10 |
License: LGPLv2+ |
11 |
URL: http://www.realistanew.com/projects/alacarte/ |
12 |
Source0: http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
13 |
Source1: %name-icons.tar.bz2 |
14 |
BuildArch: noarch |
15 |
BuildRequires: desktop-file-utils |
16 |
BuildRequires: gettext |
17 |
BuildRequires: pkgconfig(libgnome-menu-3.0) >= %gnome_menus |
18 |
BuildRequires: intltool |
19 |
BuildRequires: pkgconfig(pygobject-3.0) |
20 |
Obsoletes: smeg |
21 |
Provides: smeg = %{version}-%{release} |
22 |
|
23 |
%description |
24 |
Alacarte is a menu editor for GNOME that lets you get things done, |
25 |
simply and quickly. |
26 |
|
27 |
Just click and type to edit, add, and delete any menu entry. |
28 |
|
29 |
%prep |
30 |
%setup -q -a1 |
31 |
%apply_patches |
32 |
|
33 |
%build |
34 |
%configure2_5x -prefix=%_prefix --libdir=%_prefix/lib |
35 |
#./configure --prefix=%_prefix --libdir=%_prefix/lib |
36 |
%make |
37 |
|
38 |
%install |
39 |
rm -rf $RPM_BUILD_ROOT |
40 |
%makeinstall_std |
41 |
|
42 |
%find_lang %name --with-gnome |
43 |
|
44 |
desktop-file-install --vendor="" \ |
45 |
--add-category="GNOME" \ |
46 |
--add-category="X-MandrivaLinux-System-Configuration-Other" \ |
47 |
--dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/* |
48 |
|
49 |
%__install -D -m 644 %{name}48.png %buildroot/%_liconsdir/%name.png |
50 |
%__install -D -m 644 %{name}32.png %buildroot/%_iconsdir/%name.png |
51 |
%__install -D -m 644 %{name}16.png %buildroot/%_miconsdir/%name.png |
52 |
|
53 |
%files -f %{name}.lang |
54 |
%doc README AUTHORS COPYING |
55 |
%py_puresitedir/* |
56 |
%{_bindir}/* |
57 |
%{_datadir}/applications/* |
58 |
%{_datadir}/%name |
59 |
%{_iconsdir}/hicolor/*/apps/%name.png |
60 |
%{_iconsdir}/*/%name.png |
61 |
%{_iconsdir}/%name.png |
62 |
|
63 |
|