commit b119503faedc43b584e610606e9ddb392041d16d Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:58:31 2019 +0800 Package init diff --git a/0001-open-for-post-1.1.3-development.patch b/0001-open-for-post-1.1.3-development.patch new file mode 100644 index 0000000..0472e21 --- /dev/null +++ b/0001-open-for-post-1.1.3-development.patch @@ -0,0 +1,37 @@ +From 0b73fb82ccf178d496bd8da5b8c0a6906b14d030 Mon Sep 17 00:00:00 2001 +From: Rex Dieter +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 + diff --git a/0002-xdg-open-better-pcmanfm-check-BR106636-BR106161.patch b/0002-xdg-open-better-pcmanfm-check-BR106636-BR106161.patch new file mode 100644 index 0000000..f5ed02e --- /dev/null +++ b/0002-xdg-open-better-pcmanfm-check-BR106636-BR106161.patch @@ -0,0 +1,38 @@ +From 31525d3855f876ddf2e29091b2e8d376f923e09e Mon Sep 17 00:00:00 2001 +From: Rex Dieter +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 + diff --git a/xdg-utils-1.1.3.tar.gz b/xdg-utils-1.1.3.tar.gz new file mode 100644 index 0000000..6838360 Binary files /dev/null and b/xdg-utils-1.1.3.tar.gz differ diff --git a/xdg-utils-git_checkout.sh b/xdg-utils-git_checkout.sh new file mode 100644 index 0000000..b00452a --- /dev/null +++ b/xdg-utils-git_checkout.sh @@ -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 diff --git a/xdg-utils.spec b/xdg-utils.spec new file mode 100644 index 0000000..1bcbc1a --- /dev/null +++ b/xdg-utils.spec @@ -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 - 1.1.3-4 +- Package init