Репозитории 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 |
Другие репозитории
Upstream: | 0.15 |
Группа :: Графические оболочки/Прочее
Пакет: desktop-file-utils
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_with emacs
%define emacs_mode desktop-entry
%define _emacs_startscriptsdir %_sysconfdir/emacs/site-start.d
Name: desktop-file-utils
Version: 0.26
Release: alt4
Summary: Utilities for manipulating .desktop files
Group: Graphical desktop/Other
License: GPLv2+
URL: http://www.freedesktop.org/software/desktop-file-utils
Source: %name-%version.tar
Patch0: desktop-file-utils-0.23-altlinux-add-de-to-main-categories.patch
Patch1: desktop-file-utils-0.23-altlinux-fix-TextTools.patch
Patch2: desktop-file-utils-0.26-add-DesktopNames.patch
BuildRequires: gcc glibc-devel glib2-devel libpopt-devel pkg-config automake
%{?_with_emacs:BuildRequires: emacs-cedet emacs-common emacs-leim}
%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
BuildArch: noarch
%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
BuildArch: noarch
%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
%patch1 -p1
%patch2 -p1
%build
#autoreconf
sh autogen.sh
%configure --disable-static %{?_with_emacs:--with-lispdir=%_emacslispdir}
%make_build
%install
%make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p %buildroot/%_rpmlibdir/
cat <<__TRIGGER__ >%buildroot/%_rpmlibdir/update-desktop-database.filetrigger
#!/bin/sh -e
XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/share:/var/cache}"
echo "$XDG_DATA_DIRS" | grep '/var/cache' || XDG_DATA_DIRS+=":/var/cache"
export XDG_DATA_DIRS
grep -qs -e '/applications/' && update-desktop-database -q ||:
__TRIGGER__
chmod 0755 %buildroot/%_rpmlibdir/update-desktop-database.filetrigger
%if_with emacs
# 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
(autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop entry mode." t)
(setq auto-mode-alist (append '(("\\.desktop$" . desktop-entry-mode))
auto-mode-alist))
(setq auto-coding-alist (append '(("\\.desktop$" . utf-8)) auto-coding-alist))
__INIT__
install -pD -m644 %emacs_mode-init.el %buildroot%_emacs_startscriptsdir/%emacs_mode-init.el
%endif
mkdir -p %buildroot/%_desktopdir/
touch %buildroot/%_desktopdir/mimeinfo.cache
%post
%_bindir/update-desktop-database ||:
%files
%_bindir/*
%_rpmlibdir/*.filetrigger
%ghost %_desktopdir/mimeinfo.cache
%_man1dir/*
%if_with emacs
%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
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%define emacs_mode desktop-entry
%define _emacs_startscriptsdir %_sysconfdir/emacs/site-start.d
Name: desktop-file-utils
Version: 0.26
Release: alt4
Summary: Utilities for manipulating .desktop files
Group: Graphical desktop/Other
License: GPLv2+
URL: http://www.freedesktop.org/software/desktop-file-utils
Source: %name-%version.tar
Patch0: desktop-file-utils-0.23-altlinux-add-de-to-main-categories.patch
Patch1: desktop-file-utils-0.23-altlinux-fix-TextTools.patch
Patch2: desktop-file-utils-0.26-add-DesktopNames.patch
BuildRequires: gcc glibc-devel glib2-devel libpopt-devel pkg-config automake
%{?_with_emacs:BuildRequires: emacs-cedet emacs-common emacs-leim}
%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
BuildArch: noarch
%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
BuildArch: noarch
%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
%patch1 -p1
%patch2 -p1
%build
#autoreconf
sh autogen.sh
%configure --disable-static %{?_with_emacs:--with-lispdir=%_emacslispdir}
%make_build
%install
%make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p %buildroot/%_rpmlibdir/
cat <<__TRIGGER__ >%buildroot/%_rpmlibdir/update-desktop-database.filetrigger
#!/bin/sh -e
XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/share:/var/cache}"
echo "$XDG_DATA_DIRS" | grep '/var/cache' || XDG_DATA_DIRS+=":/var/cache"
export XDG_DATA_DIRS
grep -qs -e '/applications/' && update-desktop-database -q ||:
__TRIGGER__
chmod 0755 %buildroot/%_rpmlibdir/update-desktop-database.filetrigger
%if_with emacs
# 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
(autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop entry mode." t)
(setq auto-mode-alist (append '(("\\.desktop$" . desktop-entry-mode))
auto-mode-alist))
(setq auto-coding-alist (append '(("\\.desktop$" . utf-8)) auto-coding-alist))
__INIT__
install -pD -m644 %emacs_mode-init.el %buildroot%_emacs_startscriptsdir/%emacs_mode-init.el
%endif
mkdir -p %buildroot/%_desktopdir/
touch %buildroot/%_desktopdir/mimeinfo.cache
%post
%_bindir/update-desktop-database ||:
%files
%_bindir/*
%_rpmlibdir/*.filetrigger
%ghost %_desktopdir/mimeinfo.cache
%_man1dir/*
%if_with emacs
%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
%endif
%changelog
…
Полный changelog можно просмотреть здесь