Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37323018
en ru br
Репозитории ALT
S:0.26-alt4
5.1: 0.15-alt3
4.1: 0.15-alt0.M41.1
4.0: 0.12-alt1
3.0: 0.10-alt2
www.altlinux.org/Changes

Другие репозитории
Upstream:0.15

Группа :: Графические оболочки/Прочее
Пакет: desktop-file-utils

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

%define emacs_mode desktop-entry
%define _emacs_startscriptsdir %_sysconfdir/emacs/site-start.d

Name: desktop-file-utils
Version: 0.10
Release: alt2

Summary: Utilities for manipulating .desktop files
Group: Graphical desktop/Other
License: GPL
URL: http://www.freedesktop.org/software/desktop-file-utils

Source: %name-%version.tar.gz
Patch0: update-desktop-database-ALT.patch

# Manually excluded: gcc-c++ gcc-g77 libstdc++-devel

# Automatically added by buildreq on Sat Nov 13 2004
BuildRequires: emacs-cedet emacs-common emacs-leim glib2-devel libpopt-devel pkgconfig xorg-x11-libs xorg-x11-locales

%description
.desktop files are used to describe an application for inclusion in
GNOME or KDE menus.  This package contains desktop-file-validate which
checks whether a .desktop file complies with the specification at
http://www.freedesktop.org/standards/, and desktop-file-install
which installs a desktop file to the standard directory, optionally
fixing it up in the process.

%package -n emacs-mode-%emacs_mode
Summary: Emacs major mode for editing .desktop files
Group: Editors
Requires: %name = %version-%release

%description -n emacs-mode-%emacs_mode
emacs-mode-%emacs_mode provides support for editing freedesktop.org
desktop entry files.

All Emacs Lisp code is byte-copmpiled, install emacs-mode-%emacs_mode-el for sources.

%package -n emacs-mode-%emacs_mode-el
Summary: The Emacs Lisp sources for bytecode included in emacs-mode-%emacs_mode
Group: Development/Lisp

%description -n emacs-mode-%emacs_mode-el
emacs-mode-%emacs_mode provides support for editing freedesktop.org
desktop entry files.

emacs-mode-%emacs_mode-el contains the Emacs Lisp sources for the bytecode
included in the emacs-mode-%emacs_mode package, that extends the Emacs editor.

You need to install emacs-mode-%emacs_mode-el only if you intend to modify any of the
emacs-mode-%emacs_mode code or see some Lisp examples.


%prep
%setup -q
#%patch0 -p1
autoreconf -isfv

%build
%configure --disable-static --with-lispdir=%_emacslispdir
%make_build

%install
%make install DESTDIR=$RPM_BUILD_ROOT

# {update,clean}_desktopdb macros

%__mkdir_p %buildroot%_sysconfdir/rpm/macros.d
%__cat <<__MACRO__ >%buildroot%_sysconfdir/rpm/macros.d/%name
%%_update_desktopdb_bin %%_bindir/update-desktop-database
%%update_desktopdb [ -x %%_update_desktopdb_bin ] && %%_update_desktopdb_bin -q ||:
%%clean_desktopdb [ "\$1" = 0 -a -x %%_update_desktopdb_bin ] && %%_update_desktopdb_bin -q ||:
__MACRO__

# Create %emacs_mode-init.el

%__cat <<__INIT__ >%emacs_mode-init.el
;;; %emacs_mode-init.el --- Startup code for desktop-entry mode
;;;
   
;; load %emacs_mode-mode
   (setq auto-mode-alist (append '(("\\.desktop$" . %emacs_mode)) auto-mode-alist))

__INIT__

%__install -pD -m644 %emacs_mode-init.el %buildroot%_emacs_startscriptsdir/%emacs_mode-init.el

# remove none-packaged files

%__rm -f %buildroot%_libdir/gnome-vfs-2.0/modules/*.la

%post
%_bindir/update-desktop-database ||:

%files
%_bindir/*
%_sysconfdir/rpm/macros.d/*

%files -n emacs-mode-%emacs_mode
%config(noreplace) %_emacs_startscriptsdir/%emacs_mode-init.el
%_emacslispdir/%emacs_mode-mode.elc

%files -n emacs-mode-%emacs_mode-el
%_emacslispdir/%emacs_mode-mode.el

%changelog

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

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