Репозиторий Sisyphus
Последнее обновление: 17 февраля 2019 | Пакетов: 18498 | Посещений: 13035148
en ru br
Репозитории ALT

Группа :: Графические оболочки/GNOME
Пакет: mintmenu

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# TODO: fix urls and install icons like
#/usr/share/linuxmint/mintMenu/search_engines/dictionary.png
# see /usr/share/linuxmint/mintMenu/plugins/applications.py

Name:           mintmenu
Version:        5.9.1
Release:        alt1
Epoch:          1
# MIT is needed for keybinding.py
License:        GPLv2+ and MIT
Summary:        Advanced Menu for the MATE Desktop

Group:          Graphical desktop/GNOME
Url:            http://packages.linuxmint.com/pool/main/m/mintmenu/
# VCS: https://github.com/linuxmint/mintmenu.git
Source0:        http://packages.linuxmint.com/pool/main/m/mintmenu/%{name}_%{version}.tar.gz
Source33: mintmenu_test.sh
Source34: list-mintmenu.conf
Source35: list-mintmenu.lua
Source36: list-mintmenu.ignore
Source37: mintmenu-basealt.png

Source50: mintmenu.watch

# SUSE patches from http://download.opensuse.org/repositories/home:/unamanic/Fedora_14/src/

# PATCH-FIX-OPENSUSE mintmenu-suse_branding.patch william at witt-famiylnet: Suse branding
Patch2:         mintmenu-alt_branding.patch
# PATCH-FIX-OPENSUSE mintmenu-mintmenu_executables.patch william at witt-famiylnet: update paths for executable and bonobo server
Patch9:         mintmenu-change_locale_directory.patch

# alt patches

Patch34: mintmenu-alt-drop-mintinstall-check.patch
Patch35: mintmenu-alt-apt-cache.patch
Patch36: mintmenu-alt-no-mintengines.patch
Patch37: mintmenu-alt-GPL-path.patch
Patch38: mintmenu-alt-use-rpminstall.patch
#Patch39: mintmenu-alt-cyrillic.patch
# Use Synaptic via consolehelper intead of gksu
Patch41: mintmenu-alt-fix-package-manager.patch
Patch42: mintmenu-alt-do-not-use-mint-utils.patch
Patch43: mintmenu-alt-disable-get_apt_cache.patch
Patch44: mintmenu-alt-applet-text-l10n.patch
Patch45: mintmenu-alt-set-default-PATH.patch
Patch46: mintmenu-alt-use-themed-app-list.patch
Patch47: mintmenu-alt-delete-recent-for-current-page.patch
Patch48:    mintmenu-fix-exec-field.patch
Patch49:    mintmenu-remove-uninstall-packages.patch

Requires: dconf mate-search-tool
# not detected by rpm-build-python
# see usr/lib/linuxmint/mintMenu/plugins/places.py:177: from configobj import ConfigObj
Requires: python-module-configobj
Requires: menu-icons-default
Requires: mint-translations
Requires: mate-menu-editor
Requires: python-module-pygobject

Requires: apt

BuildRequires(pre): rpm-macros-alternatives
BuildRequires(pre): rpm-build-gir
BuildRequires: apt

# due to apt: protocol

Requires: rpminstall >= 1.1.1
# Recommends:( due to inode/directory preferences
Requires: altlinux-mime-defaults > 0.17

# TODO:

#Requires:       tracker-search-tool

BuildArch:      noarch

%description
An advanced "slab" style menu for Linux. MintMenu supports filtering,
favorites, autosession, and many other features.  MintMenu can either be
added to your gnome-panel or launched in its own window.

%prep
%setup -q -n mintmenu
%patch2 -p1
#patch3 -p1
%patch9 -p1
%patch34 -p1
%if_with apthack
%patch56 -p1
%else
%patch35 -p0
%endif
%patch36 -p0
%patch37 -p0
%patch38 -p0
#%%patch39 -p1
%patch41 -p0
%patch42 -p1
%patch43 -p1
%patch44 -p0
%patch45 -p1
%patch46 -p1
%patch47 -p1
%patch48 -p0
%patch49 -p1

# Replace path to %%_datadir

subst 's,/usr/lib/linuxmint,%_datadir/linuxmint,g' `find usr -type f`

# drop deprecated plugins

rm -f usr/lib/linuxmint/mintMenu/plugins/easygconf.py

%build
#pure python

%install
#clean out questionably liscensed files.
#rm -rf %{buildroot}%{_prefix}/lib/linuxmint/mintMenu/mint*.png
#rm -rf %{buildroot}%{_prefix}/lib/linuxmint/mintMenu/mint*.svg
find . -name '*.orig' -exec rm -f {} ';'
find . -name '*.pyc' -exec rm -f {} ';'
find . -name '*.pot' -exec rm -f {} ';'

mkdir -p %buildroot%prefix
cp -av usr/bin usr/share %buildroot%prefix

cp -av usr/lib/linuxmint %buildroot%_datadir

# Make utilites executable

chmod +x %buildroot%_datadir/linuxmint/mintMenu/*.py

%find_lang %name --with-gnome

install -Dm644 %SOURCE34 %buildroot/etc/apt/apt.conf.d/list-mintmenu.conf
install -Dm755 %SOURCE35 %buildroot/usr/share/apt/scripts/list-mintmenu.lua
install -Dm644 %SOURCE36 %buildroot/etc/buildreqs/files/ignore.d/list-mintmenu

# check patches

sh -v %SOURCE33

# Use alternative for menu button icon

mkdir -p %buildroot%_altdir
rm -f %{buildroot}usr/lib/linuxmint/mintMenu/mintMenu.png
install -Dm644 %SOURCE37 %buildroot%_pixmapsdir/mintmenu-basealt.png
printf "/usr/share/linuxmint/mintMenu/mintMenu.png\t%_pixmapsdir/mintmenu-basealt.png\t20\n" > %buildroot%_altdir/mintmenu-icon-alt

%files -f %{name}.lang
%_bindir/mintmenu
%_datadir/linuxmint/*
%_datadir/mate-panel/*
%_datadir/dbus-1/services/*.service
%_datadir/glib-2.0/schemas/*.xml
%_man1dir/%name.1.*
%_pixmapsdir/mintmenu-basealt.png
%_pixmapsdir/mintmenu.svg
%_altdir/mintmenu-icon-alt

# list-mintmenu

/usr/share/apt
%config /etc/apt/apt.conf.d/*
%config /etc/buildreqs/files/ignore.d/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin