From a66d456012acbfd20a0c8a0a78ea71afbf0a905b Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Dec 20 2014 17:51:59 +0000 Subject: Add man page, appdata --- diff --git a/4Pane-HEAD-0002-Add-the-man-page-to-git.patch b/4Pane-HEAD-0002-Add-the-man-page-to-git.patch new file mode 100644 index 0000000..1726a00 --- /dev/null +++ b/4Pane-HEAD-0002-Add-the-man-page-to-git.patch @@ -0,0 +1,65 @@ +From 12dcd5315f7c5b8c9487b81ad73a577959633ceb Mon Sep 17 00:00:00 2001 +From: dghart +Date: Fri, 12 Dec 2014 16:43:28 +0000 +Subject: [PATCH 2/4] Add the man page to git + +See https://sourceforge.net/p/fourpane/feature-requests/9/ +--- + 4Pane.1 | 45 +++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 45 insertions(+) + create mode 100755 4Pane.1 + +diff --git a/4Pane.1 b/4Pane.1 +new file mode 100755 +index 0000000..f7a7644 +--- /dev/null ++++ b/4Pane.1 +@@ -0,0 +1,45 @@ ++.\" Hey, EMACS: -*- nroff -*- ++.\" First parameter, NAME, should be all caps ++.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection ++.\" other parameters are allowed: see man(7), man(1) ++.TH 4PANE 1 "October 27, 2007" ++.\" Please adjust this date whenever revising the manpage. ++.\" ++.\" Some roff macros, for reference: ++.\" .nh disable hyphenation ++.\" .hy enable hyphenation ++.\" .ad l left justify ++.\" .ad b justify to both left and right margins ++.\" .nf disable filling ++.\" .fi enable filling ++.\" .br insert line break ++.\" .sp insert n+1 empty lines ++.\" for manpage-specific macros, see man(7) ++.SH NAME ++4Pane - a detailed-view quad-pane file manager for GTK+ ++.SH SYNOPSIS ++.B 4Pane ++[-d ] [-c ] [-h] [Display from this filepath (optional)...] ++.br ++ ++.SH DESCRIPTION ++This manual page documents only 4Pane\'s rarely-used invocation options (generally you'll just type '4Pane'). ++.br ++A detailed manual is available from within 4Pane, either from the help menu or by pressing F1; and also online at http://4pane.co.uk ++.PP ++.SH OPTIONS ++.TP ++.B \-d, \-\-home\-dir= ++Use as the home directory (optional) ++.TP ++.B \-c, \-\-config\-fpath= ++Use this filepath as 4Pane's configuration file (optional. If the filepath doesn't exist, it will be created) ++.TP ++.B \-h, \-\-help ++Show a summary of options ++.br ++.SH AUTHOR ++4Pane was written by David Hart . ++.PP ++This manual page was written by David Hart , ++(but may be used by others). +-- +2.1.0 + diff --git a/4Pane-HEAD-0003-Add-an-appdata-file-see-https-sourceforge.net-p-four.patch b/4Pane-HEAD-0003-Add-an-appdata-file-see-https-sourceforge.net-p-four.patch new file mode 100644 index 0000000..c7ac8de --- /dev/null +++ b/4Pane-HEAD-0003-Add-an-appdata-file-see-https-sourceforge.net-p-four.patch @@ -0,0 +1,114 @@ +From 3b55430a83dd521dbc7633b3416c2cb54849f243 Mon Sep 17 00:00:00 2001 +From: dghart +Date: Thu, 18 Dec 2014 12:06:26 +0000 +Subject: [PATCH 3/4] Add an appdata file: see + https://sourceforge.net/p/fourpane/feature-requests/10/ + +--- + .build/4Pane.bkl | 15 ++++++++++++--- + 4Pane.appdata.xml | 28 ++++++++++++++++++++++++++++ + Makefile.in | 4 ++++ + 3 files changed, 44 insertions(+), 3 deletions(-) + create mode 100644 4Pane.appdata.xml + +diff --git a/.build/4Pane.bkl b/.build/4Pane.bkl +index 6ec38d9..8b184da 100755 +--- a/.build/4Pane.bkl ++++ b/.build/4Pane.bkl +@@ -153,6 +153,12 @@ + ln -fs 4Pane $(DESTDIR)$(BINDIR)/4pane ;\ + fi; + ++ ++ ++ @if test -d /usr/share/appdata/ ; then \ ++ cp $(DESTDIR)4Pane.appdata.xml /usr/share/appdata/ ;\ ++ fi; ++ + + + @if test $(desktop) = yes || test $(desktop) = install_only ; then \ +@@ -164,18 +170,21 @@ + + + +- ++ + + + @if test $(symlink) = yes || test $(symlink) = uninstall_only; then \ + rm -f $(DESTDIR)$(BINDIR)/4pane ;\ + fi; +- ++ ++ ++ @rm -f /usr/share/appdata/4Pane.appdata.xml ; ++ + + @if test $(desktop) = yes || test $(desktop) = uninstall_only; then \ + rm -f ~/Desktop/4Pane.desktop ;\ + fi; +- ++ + + + +diff --git a/4Pane.appdata.xml b/4Pane.appdata.xml +new file mode 100644 +index 0000000..918ecf5 +--- /dev/null ++++ b/4Pane.appdata.xml +@@ -0,0 +1,28 @@ ++ ++ ++ ++ 4Pane.desktop ++ CC0-1.0 ++ GPL-3.0 ++ 4Pane ++ File manager ++ ++

++ 4Pane is a highly configurable Linux filemanager. It has dual twin-panes, ++ each of which has a directory tree-view pane and a detailed-list pane for ++ files. ++

++

++ In addition to standard file manager things, it offers multiple undo and redo ++ of most operations (including deletions), archive management including ++ 'virtual browsing' inside archives, multiple renaming/duplication of files, ++ a terminal emulator and user-defined tools. ++

++
++ ++ ++ http://www.4Pane.co.uk/4Pane624x351.png ++ ++ ++ http://www.4pane.co.uk ++
+diff --git a/Makefile.in b/Makefile.in +index 7a7b8b2..19ae920 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -106,6 +106,9 @@ install: install_4Pane + @if test $(symlink) = yes || test $(symlink) = install_only ; then \ + ln -fs 4Pane $(DESTDIR)$(bindir)/4pane ;\ + fi; ++ @if test -d /usr/share/appdata/ ; then \ ++ cp $(DESTDIR)4Pane.appdata.xml /usr/share/appdata/ ;\ ++ fi; + @if test $(desktop) = yes || test $(desktop) = install_only ; then \ + if test -d ~/Desktop/ ; then \ + cp -up rc/4Pane.desktop ~/Desktop/4Pane.desktop ;\ +@@ -142,6 +145,7 @@ uninstall: uninstall_4Pane + @if test $(symlink) = yes || test $(symlink) = uninstall_only; then \ + rm -f $(DESTDIR)$(bindir)/4pane ;\ + fi; ++ @rm -f /usr/share/appdata/4Pane.appdata.xml ; + @if test $(desktop) = yes || test $(desktop) = uninstall_only; then \ + rm -f ~/Desktop/4Pane.desktop ;\ + fi; +-- +2.1.0 + diff --git a/4Pane-HEAD-0004-Correct-the-use-of-DESTDIR-in-the-last-commit.patch b/4Pane-HEAD-0004-Correct-the-use-of-DESTDIR-in-the-last-commit.patch new file mode 100644 index 0000000..7ba7cbf --- /dev/null +++ b/4Pane-HEAD-0004-Correct-the-use-of-DESTDIR-in-the-last-commit.patch @@ -0,0 +1,78 @@ +From 1147a5bfa2283df5b98df01c6174203b801e04ea Mon Sep 17 00:00:00 2001 +From: dghart +Date: Fri, 19 Dec 2014 12:34:08 +0000 +Subject: [PATCH 4/4] Correct the use of DESTDIR in the last commit + +--- + .build/4Pane.bkl | 17 +++++++++-------- + Makefile.in | 5 +++-- + 2 files changed, 12 insertions(+), 10 deletions(-) + +diff --git a/.build/4Pane.bkl b/.build/4Pane.bkl +index 8b184da..f018318 100755 +--- a/.build/4Pane.bkl ++++ b/.build/4Pane.bkl +@@ -136,9 +136,9 @@ + + + +- ifneq ($(BZIP2_FLAGS),-DUSE_SYSTEM_BZIP2) +- $(fileList(['sdk/bzip/*.c'])) +- endif ++ ifneq ($(BZIP2_FLAGS),-DUSE_SYSTEM_BZIP2) ++ $(fileList(['sdk/bzip/*.c'])) ++ endif + + + $(BINDIR) +@@ -156,7 +156,8 @@ + + + @if test -d /usr/share/appdata/ ; then \ +- cp $(DESTDIR)4Pane.appdata.xml /usr/share/appdata/ ;\ ++ $(INSTALL_DIR) $(DESTDIR)/usr/share/appdata/ ;\ ++ cp 4Pane.appdata.xml $(DESTDIR)/usr/share/appdata/ ;\ + fi; + + +@@ -177,10 +178,10 @@ + rm -f $(DESTDIR)$(BINDIR)/4pane ;\ + fi; + +- +- @rm -f /usr/share/appdata/4Pane.appdata.xml ; +- +- ++ ++ @rm -f $(DESTDIR)/usr/share/appdata/4Pane.appdata.xml ; ++ ++ + @if test $(desktop) = yes || test $(desktop) = uninstall_only; then \ + rm -f ~/Desktop/4Pane.desktop ;\ + fi; +diff --git a/Makefile.in b/Makefile.in +index 19ae920..c11e531 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -107,7 +107,8 @@ install: install_4Pane + ln -fs 4Pane $(DESTDIR)$(bindir)/4pane ;\ + fi; + @if test -d /usr/share/appdata/ ; then \ +- cp $(DESTDIR)4Pane.appdata.xml /usr/share/appdata/ ;\ ++ $(INSTALL_DIR) $(DESTDIR)/usr/share/appdata/ ;\ ++ cp 4Pane.appdata.xml $(DESTDIR)/usr/share/appdata/ ;\ + fi; + @if test $(desktop) = yes || test $(desktop) = install_only ; then \ + if test -d ~/Desktop/ ; then \ +@@ -145,7 +146,7 @@ uninstall: uninstall_4Pane + @if test $(symlink) = yes || test $(symlink) = uninstall_only; then \ + rm -f $(DESTDIR)$(bindir)/4pane ;\ + fi; +- @rm -f /usr/share/appdata/4Pane.appdata.xml ; ++ @rm -f $(DESTDIR)/usr/share/appdata/4Pane.appdata.xml ; + @if test $(desktop) = yes || test $(desktop) = uninstall_only; then \ + rm -f ~/Desktop/4Pane.desktop ;\ + fi; +-- +2.1.0 + diff --git a/4Pane.spec b/4Pane.spec index 9c71f74..e8998b0 100644 --- a/4Pane.spec +++ b/4Pane.spec @@ -8,7 +8,7 @@ Name: 4Pane Version: 3.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Multi-pane, detailed-list file manager License: GPLv3 @@ -16,6 +16,11 @@ URL: http://www.4pane.co.uk/ Source0: http://downloads.sourceforge.net/fourpane/4pane-%{version}.tar.gz # https://sourceforge.net/p/fourpane/discussion/767206/thread/9daf0cda/ Patch0: 4Pane-HEAD-0001-When-getting-a-pointer-to-a-menubar-menu-don-t-searc.patch +# http://sourceforge.net/p/fourpane/feature-requests/9/ +Patch1: 4Pane-HEAD-0002-Add-the-man-page-to-git.patch +# http://sourceforge.net/p/fourpane/feature-requests/10/ +Patch2: 4Pane-HEAD-0003-Add-an-appdata-file-see-https-sourceforge.net-p-four.patch +Patch3: 4Pane-HEAD-0004-Correct-the-use-of-DESTDIR-in-the-last-commit.patch BuildRequires: bzip2-devel BuildRequires: xz-devel @@ -35,6 +40,9 @@ tools. %prep %setup -q -n 4pane-%{version} %patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 sed -i -e '\@Icon=@s|^.*$|Icon=%{name}|' rc/%{name}.desktop @@ -62,6 +70,9 @@ install -cpm 644 bitmaps/%{name}Icon48.png %{buildroot}%{_datadir}/icons/hicolor desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop +mkdir -p %{buildroot}%{_mandir}/man1 +install -cpm 644 4Pane.1 %{buildroot}%{_mandir}/man1/ + %find_lang %{name} # Once remove document and let %%doc re-install them @@ -88,11 +99,17 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{_bindir}/4pane %{_bindir}/%{name} +%{_mandir}/man1/%{name}.1* +%{_datadir}/appdata/%{name}.appdata.xml + %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}* %changelog +* Sun Dec 21 2014 Mamoru TASAKA - 3.0-4 +- Add man page, appdata + * Thu Dec 11 2014 Mamoru TASAKA - 3.0-3 - Replace Patch0 with the one revised by the upstream