Package init
This commit is contained in:
commit
b119503fae
37
0001-open-for-post-1.1.3-development.patch
Normal file
37
0001-open-for-post-1.1.3-development.patch
Normal file
@ -0,0 +1,37 @@
|
||||
From 0b73fb82ccf178d496bd8da5b8c0a6906b14d030 Mon Sep 17 00:00:00 2001
|
||||
From: Rex Dieter <rdieter@gmail.com>
|
||||
Date: Sun, 13 May 2018 08:40:55 -0500
|
||||
Subject: [PATCH 1/2] open for post 1.1.3 development
|
||||
|
||||
---
|
||||
ChangeLog | 3 +++
|
||||
scripts/xdg-utils-common.in | 2 +-
|
||||
2 files changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ChangeLog b/ChangeLog
|
||||
index c9eaeea..6864f88 100644
|
||||
--- a/ChangeLog
|
||||
+++ b/ChangeLog
|
||||
@@ -1,3 +1,6 @@
|
||||
+=== xdg-utils 1.1.4 ===
|
||||
+
|
||||
+
|
||||
=== xdg-utils 1.1.3 ===
|
||||
|
||||
2018-05-10
|
||||
diff --git a/scripts/xdg-utils-common.in b/scripts/xdg-utils-common.in
|
||||
index 9cfc8a3..a8abed8 100644
|
||||
--- a/scripts/xdg-utils-common.in
|
||||
+++ b/scripts/xdg-utils-common.in
|
||||
@@ -245,7 +245,7 @@ check_common_commands()
|
||||
;;
|
||||
|
||||
--version)
|
||||
- echo "@NAME@ 1.1.3"
|
||||
+ echo "@NAME@ 1.1.3+"
|
||||
exit_success
|
||||
;;
|
||||
esac
|
||||
--
|
||||
2.17.0
|
||||
|
||||
38
0002-xdg-open-better-pcmanfm-check-BR106636-BR106161.patch
Normal file
38
0002-xdg-open-better-pcmanfm-check-BR106636-BR106161.patch
Normal file
@ -0,0 +1,38 @@
|
||||
From 31525d3855f876ddf2e29091b2e8d376f923e09e Mon Sep 17 00:00:00 2001
|
||||
From: Rex Dieter <rdieter@gmail.com>
|
||||
Date: Thu, 24 May 2018 14:40:53 -0500
|
||||
Subject: [PATCH 2/2] xdg-open: better pcmanfm check (BR106636,BR106161)
|
||||
|
||||
---
|
||||
ChangeLog | 2 ++
|
||||
scripts/xdg-open.in | 2 +-
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ChangeLog b/ChangeLog
|
||||
index 6864f88..3eed7c4 100644
|
||||
--- a/ChangeLog
|
||||
+++ b/ChangeLog
|
||||
@@ -1,5 +1,7 @@
|
||||
=== xdg-utils 1.1.4 ===
|
||||
|
||||
+2018-05-24
|
||||
+ * xdg-open: better pcmanfm check (BR106636,BR106161)
|
||||
|
||||
=== xdg-utils 1.1.3 ===
|
||||
|
||||
diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in
|
||||
index 630e63e..bf9da4c 100644
|
||||
--- a/scripts/xdg-open.in
|
||||
+++ b/scripts/xdg-open.in
|
||||
@@ -451,7 +451,7 @@ open_lxde()
|
||||
{
|
||||
|
||||
# pcmanfm only knows how to handle file:// urls and filepaths, it seems.
|
||||
- if pcmanfm --help >/dev/null 2>&1 -a is_file_url_or_path "$1"; then
|
||||
+ if pcmanfm --help >/dev/null 2>&1 && is_file_url_or_path "$1"; then
|
||||
local file="$(file_url_to_path "$1")"
|
||||
|
||||
# handle relative paths
|
||||
--
|
||||
2.17.0
|
||||
|
||||
BIN
xdg-utils-1.1.3.tar.gz
Normal file
BIN
xdg-utils-1.1.3.tar.gz
Normal file
Binary file not shown.
17
xdg-utils-git_checkout.sh
Normal file
17
xdg-utils-git_checkout.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
MODULE=xdg-utils
|
||||
VERSION=1.1.0
|
||||
DATE=$(date +%Y%m%d)git
|
||||
|
||||
set -x
|
||||
|
||||
rm -rf $MODULE
|
||||
|
||||
git clone git://anongit.freedesktop.org/git/xdg/xdg-utils $MODULE/
|
||||
pushd $MODULE
|
||||
git archive master --format tar --prefix=${MODULE}-${VERSION}/ | gzip -9 > ../${MODULE}-${VERSION}-${DATE}.tar.gz
|
||||
popd
|
||||
|
||||
rm -rf $MODULE
|
||||
58
xdg-utils.spec
Normal file
58
xdg-utils.spec
Normal file
@ -0,0 +1,58 @@
|
||||
Name: xdg-utils
|
||||
Version: 1.1.3
|
||||
Release: 4
|
||||
Summary: A set of easily desktop environment integration tools
|
||||
License: MIT
|
||||
URL: http://portland.freedesktop.org/
|
||||
Source0: https://people.freedesktop.org/~rdieter/xdg-utils/xdg-utils-%{version}.tar.gz
|
||||
Source1: xdg-utils-git_checkout.sh
|
||||
|
||||
Patch0000: 0001-open-for-post-1.1.3-development.patch
|
||||
Patch0001: 0002-xdg-open-better-pcmanfm-check-BR106636-BR106161.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires:gawk xmlto lynx
|
||||
Requires: coreutils desktop-file-utils which
|
||||
|
||||
%description
|
||||
The xdg-utils package is a set of simple scripts that provide
|
||||
basic desktop integration functions for any Free Desktop, such as Linux.
|
||||
The following tools are included in xdg-utils:
|
||||
* xdg-desktop-menu Install desktop menu items
|
||||
* xdg-desktop-icon Install icons to the desktop
|
||||
* xdg-icon-resource Install icon resources
|
||||
* xdg-mime Query information about file type handling and
|
||||
install descriptions for new file types
|
||||
* xdg-open Open a file or URL in the user's preferred application
|
||||
* xdg-email Send mail using the user's preferred e-mail composer
|
||||
* xdg-screensaver Control the screensaver
|
||||
|
||||
%package help
|
||||
Summary: Help document for the xdg-utils package
|
||||
Buildarch: noarch
|
||||
|
||||
%description help
|
||||
Help document for th xdg-utils package.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
%configure
|
||||
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%files
|
||||
%doc ChangeLog LICENSE README TODO
|
||||
%{_bindir}/xdg-*
|
||||
|
||||
%files help
|
||||
%{_mandir}/man1/xdg-*
|
||||
|
||||
%changelog
|
||||
* Fri Oct 25 2019 Lijin Yang <yanglijin@huawei.com> - 1.1.3-4
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user