From 5883344cadac2a5a3c952627b58caf341bbc1999f52068a692df1bc7ffc5a251 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Sun, 23 Oct 2016 16:55:34 +0000 Subject: [PATCH 1/9] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krusader?expand=0&rev=6 --- bug309159.patch | 66 ---------------------------- krusader-2.4.0-beta3.tar.bz2 | 3 -- krusader-2.5.0.tar.xz | 3 ++ krusader.spec | 83 ++++++++++++++++++++---------------- 4 files changed, 50 insertions(+), 105 deletions(-) delete mode 100644 bug309159.patch delete mode 100644 krusader-2.4.0-beta3.tar.bz2 create mode 100644 krusader-2.5.0.tar.xz diff --git a/bug309159.patch b/bug309159.patch deleted file mode 100644 index 9bf5a6b..0000000 --- a/bug309159.patch +++ /dev/null @@ -1,66 +0,0 @@ -From: Jan Lepper -Date: Tue, 30 Oct 2012 21:15:43 +0000 -Subject: FIXED: [ 309159 ] Crash in video files preview on F3 -X-Git-Url: http://quickgit.kde.org/?p=krusader.git&a=commitdiff&h=770fa41c1f8e76d91eb981ee56d972efe10dc667 ---- -FIXED: [ 309159 ] Crash in video files preview on F3 -remove unnecessary code that possibly -- causes infinite recursion -- uses an invalid KUrl object -BUG: 309159 ---- - - ---- a/krusader/KViewer/krviewer.cpp -+++ b/krusader/KViewer/krviewer.cpp -@@ -534,11 +534,6 @@ - if (!pvb->part()) - return; - -- //FIXME this belongs to PanelViewer -- if (!pvb->part()->url().equals(pvb->url(), KUrl::CompareWithoutTrailingSlash)) { -- pvb->setUrl(pvb->part()->url()); -- } -- - int ndx = tabBar.indexOf(pvb); - tabBar.setTabText(ndx, makeTabText(pvb)); - tabBar.setTabIcon(ndx, makeTabIcon(pvb)); - ---- a/krusader/KViewer/panelviewer.cpp -+++ b/krusader/KViewer/panelviewer.cpp -@@ -214,9 +214,9 @@ - - KParts::ReadOnlyPart* PanelViewer::openUrl(const KUrl &url, KrViewer::Mode mode) - { -- emit urlChanged(this, url); - closeUrl(); - curl = url; -+ emit urlChanged(this, url); - - KMimeType::Ptr mt = KMimeType::findByUrl(url); - QString mimetype = mt->name(); -@@ -328,9 +328,9 @@ - - KParts::ReadOnlyPart* PanelEditor::openUrl(const KUrl &url, KrViewer::Mode mode) - { -- emit urlChanged(this, url); - closeUrl(); - curl = url; -+ emit urlChanged(this, url); - - KFileItem item = readFileInfo(url); - KIO::filesize_t fileSize = item.isNull() ? 0 : item.size(); - ---- a/krusader/KViewer/panelviewer.h -+++ b/krusader/KViewer/panelviewer.h -@@ -41,9 +41,6 @@ - virtual ~PanelViewerBase(); - inline KUrl url() const { - return curl; -- } -- inline void setUrl(KUrl url) { -- emit urlChanged(this, url); curl = url; - } - inline KParts::ReadOnlyPart* part() const { - return cpart; - diff --git a/krusader-2.4.0-beta3.tar.bz2 b/krusader-2.4.0-beta3.tar.bz2 deleted file mode 100644 index bad8fae..0000000 --- a/krusader-2.4.0-beta3.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ca43ddeef91e2821142b723d13c0be4bf0d138a9718cccd914cecb675cc97dae -size 4305463 diff --git a/krusader-2.5.0.tar.xz b/krusader-2.5.0.tar.xz new file mode 100644 index 0000000..d831c3f --- /dev/null +++ b/krusader-2.5.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb9f4b237378fd5d86d5c0202b9d714f3d8dfe549ba9e7926f6f9de60b5088d7 +size 2704584 diff --git a/krusader.spec b/krusader.spec index 50033a9..ed09d62 100644 --- a/krusader.spec +++ b/krusader.spec @@ -1,7 +1,7 @@ # # spec file for package krusader # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,28 +16,44 @@ # -%define tar_version 2.4.0-beta3 Name: krusader -Version: 2.4.0~beta3 +Version: 2.5.0 Release: 0 Summary: A File Manager License: GPL-2.0+ Group: Productivity/File utilities Url: http://krusader.sourceforge.net/ -Source: %{name}-%{tar_version}.tar.bz2 +Source: http://download.kde.org/stable/krusader/%{version}/%{name}-%{version}.tar.xz Source1: krusader_browse_iso.desktop # PATCH-FIX-OPENSUSE krusader-2.4.0-beta2-generate-manpage.patch -- generate manpage Patch0: krusader-2.4.0-beta2-generate-manpage.patch -# PATCH-FIX-UPSTREAM bug309159.patch [kde#309159] -Patch1: bug309159.patch +BuildRequires: extra-cmake-modules BuildRequires: fdupes -BuildRequires: libkde4-devel -BuildRequires: libkonq-devel +BuildRequires: fdupes +BuildRequires: gettext-devel +BuildRequires: karchive-devel +BuildRequires: kconfig-devel +BuildRequires: kdelibs4support-devel +BuildRequires: kdoctools-devel +BuildRequires: kf5-filesystem +BuildRequires: khtml-devel +BuildRequires: kio-devel +BuildRequires: kparts-devel +BuildRequires: kwallet-devel +BuildRequires: python-devel +BuildRequires: update-desktop-files +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5DBus) +BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: pkgconfig(Qt5Script) +BuildRequires: pkgconfig(Qt5Sql) +BuildRequires: pkgconfig(Qt5Test) +BuildRequires: pkgconfig(Qt5Widgets) +BuildRequires: pkgconfig(Qt5Xml) Requires: kio_iso = %{version} Requires: libktexteditor Suggests: %{name}-doc BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{kde4_runtime_requires} %description An advanced twin panel (commander style) file manager for KDE. @@ -47,7 +63,6 @@ Summary: KIO slave to access ISO images Group: System/GUI/KDE Provides: kde4-kio_iso = 1.80.99 Obsoletes: kde4-kio_iso < 1.80.99 -%{kde4_runtime_requires} %description -n kio_iso KIO slave to access ISO images like zip- or tar.gz-archives in your @@ -63,21 +78,17 @@ An advanced twin panel (commander style) file manager for KDE. %prep %setup -q -n %{name}-%{tar_version} %patch0 -p1 -%patch1 -p1 %build export RPM_OPT_FLAGS="%{optflags} -fpermissive" -%cmake_kde4 -d build +%cmake_kf5 -d build %make_jobs %install -pushd build -%make_install -popd -mkdir -p %{buildroot}%{_kde4_servicesdir}/ServiceMenus/ -cp %{SOURCE1} %{buildroot}%{_kde4_servicesdir}/ServiceMenus/ -%suse_update_desktop_file krusader_root-mode FileManager Utility -%kde_post_install +%kf5_makeinstall -C build +mkdir -p %{buildroot}%{_kf5_servicesdir}/ServiceMenus/ +cp %{SOURCE1} %{buildroot}%{_kf5_servicesdir}/ServiceMenus/ +%suse_update_desktop_file org.kde.krusader.root-mode FileManager Utility %find_lang %{name} %fdupes %{buildroot} @@ -88,28 +99,28 @@ cp %{SOURCE1} %{buildroot}%{_kde4_servicesdir}/ServiceMenus/ %files -f %{name}.lang %defattr(-,root,root) %doc README AUTHORS COPYING ChangeLog TODO SVNNEWS -%{_kde4_applicationsdir}/krusader*.desktop -%{_kde4_appsdir}/krusader -%{_kde4_bindir}/krusader -%{_kde4_iconsdir}/??color/*/apps/krusader*.png -%{_kde4_modules}/kio_krarc.so -%{_kde4_servicesdir}/krarc.protocol -%{_kde4_mandir}/man1/krusader.1.gz -%exclude %{_kde4_htmldir}/*/krusader +%{_kf5_applicationsdir}/krusader*.desktop +%{_kf5_appsdir}/krusader +%{_kf5_bindir}/krusader +%{_kf5_iconsdir}/??color/*/apps/krusader*.png +%{_kf5_plugindir}/kio_krarc.so +%{_kf5_servicesdir}/krarc.protocol +%{_kf5_mandir}/man1/krusader.1.gz +%exclude %{_kf5_htmldir}/*/krusader %files -n kio_iso %defattr(-,root,root) -%config %{_kde4_configdir}/kio_isorc -%{_kde4_modules}/kio_iso.so* -%{_kde4_servicesdir}/iso.protocol -%{_kde4_servicesdir}/ServiceMenus/krusader_browse_iso.desktop +%config %{_kf5_configdir}/kio_isorc +%{_kf5_plugindir}/kio_iso.so* +%{_kf5_servicesdir}/iso.protocol +%{_kf5_servicesdir}/ServiceMenus/krusader_browse_iso.desktop %files doc %defattr(-,root,root) -%doc %lang(en) %{_kde4_htmldir}/en/krusader -%doc %lang(uk) %{_kde4_htmldir}/uk/krusader -%doc %lang(sv) %{_kde4_htmldir}/sv/krusader -%doc %lang(pt) %{_kde4_htmldir}/pt/krusader -%doc %lang(pt_BR) %{_kde4_htmldir}/pt_BR/krusader +%doc %lang(en) %{_kf5_htmldir}/en/krusader +%doc %lang(uk) %{_kf5_htmldir}/uk/krusader +%doc %lang(sv) %{_kf5_htmldir}/sv/krusader +%doc %lang(pt) %{_kf5_htmldir}/pt/krusader +%doc %lang(pt_BR) %{_kf5_htmldir}/pt_BR/krusader %changelog From eae1bf8741c0b325ec16037dbc3cea17da295b4af9ea21c1343f78130933e752 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Sun, 23 Oct 2016 17:00:23 +0000 Subject: [PATCH 2/9] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krusader?expand=0&rev=7 --- krusader.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/krusader.spec b/krusader.spec index ed09d62..3b361f6 100644 --- a/krusader.spec +++ b/krusader.spec @@ -51,7 +51,6 @@ BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Xml) Requires: kio_iso = %{version} -Requires: libktexteditor Suggests: %{name}-doc BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -76,8 +75,8 @@ Group: Productivity/File utilities An advanced twin panel (commander style) file manager for KDE. %prep -%setup -q -n %{name}-%{tar_version} -%patch0 -p1 +%setup -q -n %{name}-%{version} +#patch0 -p1 %build export RPM_OPT_FLAGS="%{optflags} -fpermissive" From 5f6ff453f042a836a1bb15fbe85a02f3a15d14c0ae0637f2981596daae58472d Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Sun, 23 Oct 2016 17:04:31 +0000 Subject: [PATCH 3/9] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krusader?expand=0&rev=8 --- krusader.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/krusader.spec b/krusader.spec index 3b361f6..fc360ed 100644 --- a/krusader.spec +++ b/krusader.spec @@ -98,14 +98,16 @@ cp %{SOURCE1} %{buildroot}%{_kf5_servicesdir}/ServiceMenus/ %files -f %{name}.lang %defattr(-,root,root) %doc README AUTHORS COPYING ChangeLog TODO SVNNEWS -%{_kf5_applicationsdir}/krusader*.desktop +%{_kf5_applicationsdir}/org.kde.krusader*.desktop %{_kf5_appsdir}/krusader %{_kf5_bindir}/krusader %{_kf5_iconsdir}/??color/*/apps/krusader*.png %{_kf5_plugindir}/kio_krarc.so %{_kf5_servicesdir}/krarc.protocol -%{_kf5_mandir}/man1/krusader.1.gz +#{_kf5_mandir}/man1/krusader.1.gz %exclude %{_kf5_htmldir}/*/krusader +%dir %{_kf5_appstreamdir} +%{_kf5_appstreamdir}/org.kde.krusader.appdata.xml %files -n kio_iso %defattr(-,root,root) From 2749de332817c308241000f2c4ce16a6e843285d171b336ab1a126b2f1fc7d66 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Sun, 23 Oct 2016 17:09:40 +0000 Subject: [PATCH 4/9] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krusader?expand=0&rev=9 --- krusader-2.4.0-beta2-generate-manpage.patch | 8 -------- krusader-2.5.0-generate-manpage.patch | 9 +++++++++ krusader.spec | 8 ++++---- 3 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 krusader-2.4.0-beta2-generate-manpage.patch create mode 100644 krusader-2.5.0-generate-manpage.patch diff --git a/krusader-2.4.0-beta2-generate-manpage.patch b/krusader-2.4.0-beta2-generate-manpage.patch deleted file mode 100644 index b745748..0000000 --- a/krusader-2.4.0-beta2-generate-manpage.patch +++ /dev/null @@ -1,8 +0,0 @@ -diff -up krusader-2.4.0-beta2/doc/en_US/CMakeLists.txt.generate-manpage krusader-2.4.0-beta2/doc/en_US/CMakeLists.txt ---- krusader-2.4.0-beta2/doc/en_US/CMakeLists.txt.generate-manpage 2012-10-15 08:51:50.570757518 +0200 -+++ krusader-2.4.0-beta2/doc/en_US/CMakeLists.txt 2012-10-15 08:52:56.522420929 +0200 -@@ -1 +1,3 @@ - kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR krusader ) -+kde4_create_manpage(man-krusader.1.docbook 1 INSTALL_DESTINATION ${MAN_INSTALL_DIR}) -+ - diff --git a/krusader-2.5.0-generate-manpage.patch b/krusader-2.5.0-generate-manpage.patch new file mode 100644 index 0000000..171b262 --- /dev/null +++ b/krusader-2.5.0-generate-manpage.patch @@ -0,0 +1,9 @@ +--- krusader-2.5.0.orig/doc/en/CMakeLists.txt 2016-10-22 15:31:15.000000000 +0200 ++++ krusader-2.5.0/doc/en/CMakeLists.txt 2016-10-23 19:08:08.400469349 +0200 +@@ -2,3 +2,6 @@ kdoctools_create_handbook(index.docbook + INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en + SUBDIR krusader) + ++kdoctools_create_manpage(man-krusader.1.docbook ++ 1 ++ INSTALL_DESTINATION ${MAN_INSTALL_DIR}) diff --git a/krusader.spec b/krusader.spec index fc360ed..6e76fbf 100644 --- a/krusader.spec +++ b/krusader.spec @@ -25,8 +25,8 @@ Group: Productivity/File utilities Url: http://krusader.sourceforge.net/ Source: http://download.kde.org/stable/krusader/%{version}/%{name}-%{version}.tar.xz Source1: krusader_browse_iso.desktop -# PATCH-FIX-OPENSUSE krusader-2.4.0-beta2-generate-manpage.patch -- generate manpage -Patch0: krusader-2.4.0-beta2-generate-manpage.patch +# PATCH-FIX-OPENSUSE krusader-2.5.0-generate-manpage.patch -- generate manpage +Patch0: krusader-2.5.0-generate-manpage.patch BuildRequires: extra-cmake-modules BuildRequires: fdupes BuildRequires: fdupes @@ -76,7 +76,7 @@ An advanced twin panel (commander style) file manager for KDE. %prep %setup -q -n %{name}-%{version} -#patch0 -p1 +%patch0 -p1 %build export RPM_OPT_FLAGS="%{optflags} -fpermissive" @@ -104,7 +104,7 @@ cp %{SOURCE1} %{buildroot}%{_kf5_servicesdir}/ServiceMenus/ %{_kf5_iconsdir}/??color/*/apps/krusader*.png %{_kf5_plugindir}/kio_krarc.so %{_kf5_servicesdir}/krarc.protocol -#{_kf5_mandir}/man1/krusader.1.gz +%{_kf5_mandir}/man1/krusader.1.gz %exclude %{_kf5_htmldir}/*/krusader %dir %{_kf5_appstreamdir} %{_kf5_appstreamdir}/org.kde.krusader.appdata.xml From 3ad473ed382e865bea0494e5ab96c375ea93605c7f1cda30a63dc1da47680bd7 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Sun, 23 Oct 2016 17:21:47 +0000 Subject: [PATCH 5/9] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krusader?expand=0&rev=10 --- krusader.changes | 50 ++++++++++++++++++++++++++++++++++++++++++++++ krusader.spec | 52 +++++++++++++++++++++++++++--------------------- 2 files changed, 79 insertions(+), 23 deletions(-) diff --git a/krusader.changes b/krusader.changes index ef3cf86..18b9968 100644 --- a/krusader.changes +++ b/krusader.changes @@ -1,3 +1,53 @@ +------------------------------------------------------------------- +Sun Oct 23 17:15:55 UTC 2016 - hrvoje.senjan@gmail.com + +- Update to 2.5.0 + * Added actions: Select files with the same name / extension + * Changed disabled build of synchronizer by default, since it + is unmaintained - build togglable with cmake variable + -DENABLE_SYNCHRONIZER=true|false + * Fixed (kde#143927) file search: "s" accelerator is doubled - + new shortcut for "Search in" is ALT+h + * Fixed (kde#308386) Duplicate shortcut on Search window - + new shortcut for "Remote content search" is ALT+n + * Fixed (kde#206926) Search doesn't work in sftp session + (it returns too many results) + * Fixed (kde#269542) Krusader search - Containing text + still used when disabled + * Fixed (kde#324737) symlinks with a target path length + of over 255 do not work + * Fixed (kde#189943) toolbar position settings are not remembered + * Fixed (kde#316031) crash when loading previews + * Fixed (kde#238672) When saving checksums fails, + they are lost. No 2nd chance to save elsewhere. + * Fixed (kde#315764) "application/x-source-rpm" isn't linked + to krarc protocol by default + * Fixed (kde#294816) Krusader needs to restart to apply + new color scheme to panel + * Fixed (kde#308727) external editor command isn't properly parsed + * Fixed (kde#304233) empty main view on startup + * Fixed (kde#315856) main view splitter sizes are not restored + * Fixed (kde#248691) incorrect layout / wrong buttons + in queue manager + * Fixed (kde#315357) krarc silently fails to display + contents of some zip files containing paths with "." as a + path component are still not handled, but now krarc reports an + error instead silently failing + * Fixed (kde#310722) viewer crash when opening file + * Fixed search result view always displays owner and group as "root" + (may not work for remote search) + * Fixed (kde#217711) directory chooser dialog does not allow + to choose a directory + * Fixed (kde#309119) Wrong "New directory" dialog behavior: + can't clear all typed text + * Fixed (kde#309159) Crash in video files preview on F3 + * Fixed (kde#310191) krusader still installs locolor icons + * Fixed (kde#317510 ] icon-size-and-directory-name-mismatch +- Package ported to KF5, changed all the BuildRequires to KF5 ones +- Swap krusader-2.4.0-beta2-generate-manpage.patch for + krusader-2.5.0-generate-manpage.patch +- Drop upstreamed bug309159.patch + ------------------------------------------------------------------- Tue May 26 11:30:52 UTC 2015 - tchvatal@suse.com diff --git a/krusader.spec b/krusader.spec index 6e76fbf..57cdc8e 100644 --- a/krusader.spec +++ b/krusader.spec @@ -27,29 +27,37 @@ Source: http://download.kde.org/stable/krusader/%{version}/%{name}-%{ver Source1: krusader_browse_iso.desktop # PATCH-FIX-OPENSUSE krusader-2.5.0-generate-manpage.patch -- generate manpage Patch0: krusader-2.5.0-generate-manpage.patch -BuildRequires: extra-cmake-modules +BuildRequires: extra-cmake-modules >= 1.1.0 BuildRequires: fdupes -BuildRequires: fdupes -BuildRequires: gettext-devel -BuildRequires: karchive-devel -BuildRequires: kconfig-devel -BuildRequires: kdelibs4support-devel -BuildRequires: kdoctools-devel -BuildRequires: kf5-filesystem -BuildRequires: khtml-devel -BuildRequires: kio-devel -BuildRequires: kparts-devel -BuildRequires: kwallet-devel -BuildRequires: python-devel +BuildRequires: libacl-devel +BuildRequires: libattr-devel BuildRequires: update-desktop-files -BuildRequires: pkgconfig(Qt5Core) -BuildRequires: pkgconfig(Qt5DBus) -BuildRequires: pkgconfig(Qt5Gui) -BuildRequires: pkgconfig(Qt5Script) -BuildRequires: pkgconfig(Qt5Sql) -BuildRequires: pkgconfig(Qt5Test) -BuildRequires: pkgconfig(Qt5Widgets) -BuildRequires: pkgconfig(Qt5Xml) +BuildRequires: cmake(KF5Archive) +BuildRequires: cmake(KF5Bookmarks) +BuildRequires: cmake(KF5Codecs) +BuildRequires: cmake(KF5Completion) +BuildRequires: cmake(KF5Config) +BuildRequires: cmake(KF5CoreAddons) +BuildRequires: cmake(KF5DocTools) +BuildRequires: cmake(KF5GuiAddons) +BuildRequires: cmake(KF5I18n) +BuildRequires: cmake(KF5IconThemes) +BuildRequires: cmake(KF5ItemViews) +BuildRequires: cmake(KF5KIO) +BuildRequires: cmake(KF5Notifications) +BuildRequires: cmake(KF5Parts) +BuildRequires: cmake(KF5Solid) +BuildRequires: cmake(KF5TextWidgets) +BuildRequires: cmake(KF5Wallet) +BuildRequires: cmake(KF5WidgetsAddons) +BuildRequires: cmake(KF5WindowSystem) +BuildRequires: cmake(KF5XmlGui) +BuildRequires: cmake(Qt5Core) >= 5.2.0 +BuildRequires: cmake(Qt5DBus) >= 5.2.0 +BuildRequires: cmake(Qt5Gui) >= 5.2.0 +BuildRequires: cmake(Qt5PrintSupport) >= 5.2.0 +BuildRequires: cmake(Qt5Widgets) >= 5.2.0 +BuildRequires: cmake(Qt5Xml) >= 5.2.0 Requires: kio_iso = %{version} Suggests: %{name}-doc BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -106,8 +114,6 @@ cp %{SOURCE1} %{buildroot}%{_kf5_servicesdir}/ServiceMenus/ %{_kf5_servicesdir}/krarc.protocol %{_kf5_mandir}/man1/krusader.1.gz %exclude %{_kf5_htmldir}/*/krusader -%dir %{_kf5_appstreamdir} -%{_kf5_appstreamdir}/org.kde.krusader.appdata.xml %files -n kio_iso %defattr(-,root,root) From a8984d4db9a869da52675eaa4e633fb8f8225dc3a08018175623958cd29fc77f Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Sun, 23 Oct 2016 17:30:43 +0000 Subject: [PATCH 6/9] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krusader?expand=0&rev=11 --- 0001-Don-t-hardcode-appdata-location.patch | 26 ++++++++++++++++++++++ krusader.changes | 1 + krusader.spec | 8 +++++-- 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 0001-Don-t-hardcode-appdata-location.patch diff --git a/0001-Don-t-hardcode-appdata-location.patch b/0001-Don-t-hardcode-appdata-location.patch new file mode 100644 index 0000000..41b8a3c --- /dev/null +++ b/0001-Don-t-hardcode-appdata-location.patch @@ -0,0 +1,26 @@ +From 84bf36bf7f9f7cbbc5883c7aba405cb5b5d32460 Mon Sep 17 00:00:00 2001 +From: Hrvoje Senjan +Date: Sun, 23 Oct 2016 19:28:08 +0200 +Subject: [PATCH 1/1] Don't hardcode appdata location + +We have a var for that +--- + krusader/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/krusader/CMakeLists.txt b/krusader/CMakeLists.txt +index e3d92cf..c300722 100644 +--- a/krusader/CMakeLists.txt ++++ b/krusader/CMakeLists.txt +@@ -96,7 +96,7 @@ install(FILES midnight_commander.color + splash.png + DESTINATION ${DATA_INSTALL_DIR}/krusader) + install(FILES org.kde.krusader.appdata.xml +- DESTINATION ${SHARE_INSTALL_PREFIX}/appdata) ++ DESTINATION ${KDE_INSTALL_METAINFODIR}) + + ecm_install_icons(ICONS + icons/16-apps-krusader_blue.png +-- +2.10.0 + diff --git a/krusader.changes b/krusader.changes index 18b9968..681c8f2 100644 --- a/krusader.changes +++ b/krusader.changes @@ -47,6 +47,7 @@ Sun Oct 23 17:15:55 UTC 2016 - hrvoje.senjan@gmail.com - Swap krusader-2.4.0-beta2-generate-manpage.patch for krusader-2.5.0-generate-manpage.patch - Drop upstreamed bug309159.patch +- Added 0001-Don-t-hardcode-appdata-location.patch ------------------------------------------------------------------- Tue May 26 11:30:52 UTC 2015 - tchvatal@suse.com diff --git a/krusader.spec b/krusader.spec index 57cdc8e..75d2d84 100644 --- a/krusader.spec +++ b/krusader.spec @@ -22,11 +22,13 @@ Release: 0 Summary: A File Manager License: GPL-2.0+ Group: Productivity/File utilities -Url: http://krusader.sourceforge.net/ +Url: https://krusader.org/ Source: http://download.kde.org/stable/krusader/%{version}/%{name}-%{version}.tar.xz Source1: krusader_browse_iso.desktop # PATCH-FIX-OPENSUSE krusader-2.5.0-generate-manpage.patch -- generate manpage Patch0: krusader-2.5.0-generate-manpage.patch +# PATCH-FIX-UPSTREAM 0001-Don-t-hardcode-appdata-location.patch +Patch1: 0001-Don-t-hardcode-appdata-location.patch BuildRequires: extra-cmake-modules >= 1.1.0 BuildRequires: fdupes BuildRequires: libacl-devel @@ -85,6 +87,7 @@ An advanced twin panel (commander style) file manager for KDE. %prep %setup -q -n %{name}-%{version} %patch0 -p1 +%patch1 -p1 %build export RPM_OPT_FLAGS="%{optflags} -fpermissive" @@ -114,6 +117,8 @@ cp %{SOURCE1} %{buildroot}%{_kf5_servicesdir}/ServiceMenus/ %{_kf5_servicesdir}/krarc.protocol %{_kf5_mandir}/man1/krusader.1.gz %exclude %{_kf5_htmldir}/*/krusader +%dir %{_kf5_appstreamdir} +%{_kf5_appstreamdir}/org.kde.krusader.appdata.xml %files -n kio_iso %defattr(-,root,root) @@ -127,7 +132,6 @@ cp %{SOURCE1} %{buildroot}%{_kf5_servicesdir}/ServiceMenus/ %doc %lang(en) %{_kf5_htmldir}/en/krusader %doc %lang(uk) %{_kf5_htmldir}/uk/krusader %doc %lang(sv) %{_kf5_htmldir}/sv/krusader -%doc %lang(pt) %{_kf5_htmldir}/pt/krusader %doc %lang(pt_BR) %{_kf5_htmldir}/pt_BR/krusader %changelog From 1371e9976a37dcd20c830d61b7f0bc245236fdf856caa16cd0c21dc3ceb1ff48 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Sun, 23 Oct 2016 18:08:43 +0000 Subject: [PATCH 7/9] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krusader?expand=0&rev=12 --- krusader.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/krusader.spec b/krusader.spec index 75d2d84..3d2c263 100644 --- a/krusader.spec +++ b/krusader.spec @@ -115,6 +115,7 @@ cp %{SOURCE1} %{buildroot}%{_kf5_servicesdir}/ServiceMenus/ %{_kf5_iconsdir}/??color/*/apps/krusader*.png %{_kf5_plugindir}/kio_krarc.so %{_kf5_servicesdir}/krarc.protocol +%{_kf5_kxmlguidir}/ %{_kf5_mandir}/man1/krusader.1.gz %exclude %{_kf5_htmldir}/*/krusader %dir %{_kf5_appstreamdir} From 8068fc5e515a32d4f8521718abe851621a96e206b6f20ba233abb47ff67c6398 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Sun, 23 Oct 2016 18:19:35 +0000 Subject: [PATCH 8/9] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krusader?expand=0&rev=13 --- krusader.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/krusader.spec b/krusader.spec index 3d2c263..219b683 100644 --- a/krusader.spec +++ b/krusader.spec @@ -126,6 +126,7 @@ cp %{SOURCE1} %{buildroot}%{_kf5_servicesdir}/ServiceMenus/ %config %{_kf5_configdir}/kio_isorc %{_kf5_plugindir}/kio_iso.so* %{_kf5_servicesdir}/iso.protocol +%dir %{_kf5_servicesdir}/ServiceMenus %{_kf5_servicesdir}/ServiceMenus/krusader_browse_iso.desktop %files doc From 974e7aafffb2e36594a6e6080a8d77d8af18f930ae0ff4e77c0f126b216d775e Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Sun, 23 Oct 2016 19:31:32 +0000 Subject: [PATCH 9/9] OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krusader?expand=0&rev=14 --- krusader.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/krusader.spec b/krusader.spec index 219b683..4e1fd95 100644 --- a/krusader.spec +++ b/krusader.spec @@ -134,6 +134,7 @@ cp %{SOURCE1} %{buildroot}%{_kf5_servicesdir}/ServiceMenus/ %doc %lang(en) %{_kf5_htmldir}/en/krusader %doc %lang(uk) %{_kf5_htmldir}/uk/krusader %doc %lang(sv) %{_kf5_htmldir}/sv/krusader +%dir %{_kf5_htmldir}/pt_BR %doc %lang(pt_BR) %{_kf5_htmldir}/pt_BR/krusader %changelog