1 Star 0 Fork 11

丈青山/desktop-file-utils

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
desktop-file-utils.spec 2.26 KB
一键复制 编辑 原始数据 按行查看 历史
丈青山 提交于 2021-05-25 13:59 . add BuildRequires gcc-c++
Name: desktop-file-utils
Version: 0.26
Release: 2
Summary: Desktop-file-utils contains utilities for manipulating desktop entries
License: GPLv2+
URL: https://www.freedesktop.org/software/desktop-file-utils
Source0: https://www.freedesktop.org/software/desktop-file-utils/releases/%{name}-%{version}.tar.xz
Source1: desktop-entry-mode-init.el
BuildRequires: glib2-devel emacs meson
BuildRequires: gcc-c++
Requires: emacs-filesystem
Provides: emacs-%{name} = %{version}-%{release} emacs-%{name}-el = %{version}-%{release}
Obsoletes: emacs-%{name} < 0.20-3 emacs-%{name}-el < 0.20-3
%description
desktop-file-utils contains command line utilities for working with desktop entries, it contains:
desktop-file-validate:
validates a desktop file and prints warnings/errors about desktop entry specification violations.
desktop-file-install:
installs a desktop file to the applications directory, optionally munging it a bit in transit.
update-desktop-database:
updates the database containing a cache of MIME types handled by desktop files.
%package help
Summary: Help documents for desktop-file-utils
%description help
Help document for desktop-file-utils.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%meson
%meson_build
%install
%meson_install
install -d $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{name}
mv $RPM_BUILD_ROOT%{_emacs_sitelispdir}/*.el* $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{name}
install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/desktop-entry-mode-init.el
touch $RPM_BUILD_ROOT%{_emacs_sitestartdir}/desktop-entry-mode-init.elc
%files
%doc AUTHORS
%license COPYING
%{_bindir}/*
%{_emacs_sitelispdir}/%{name}
%{_emacs_sitestartdir}/desktop-entry-mode-init.el
%ghost %{_emacs_sitestartdir}/desktop-entry-mode-init.elc
%files help
%doc README NEWS
%{_mandir}/man1/*
%changelog
* Tue May 18 2021 lin.zhang <[email protected]> - 0.26-2
- add BuildRequires gcc-c++
* Mon Jul 20 2020 wangye <[email protected]> - 0.26-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:upgrade to 0.26
* Thu Jan 9 2020 openEuler Buildteam <[email protected]> - 0.24-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:upgrade to 0.24
* Mon Sep 9 2019 yanzhihua <[email protected]> - 0.23-10
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhang__3125/desktop-file-utils.git
[email protected]:zhang__3125/desktop-file-utils.git
zhang__3125
desktop-file-utils
desktop-file-utils
master

搜索帮助