!4 update to version 3.0.4

Merge pull request !4 from dou33/update
This commit is contained in:
dou33 2020-11-03 15:15:05 +08:00 committed by Gitee
commit b42383692d
4 changed files with 35 additions and 16 deletions

21
001-fix-excute-file.patch Normal file
View File

@ -0,0 +1,21 @@
diff -ur peony-3.0.4/libpeony-qt/file-launcher/file-launch-action.cpp peony-3.0.4~/libpeony-qt/file-launcher/file-launch-action.cpp
--- peony-3.0.4/libpeony-qt/file-launcher/file-launch-action.cpp 2020-10-28 17:37:13.000000000 +0800
+++ peony-3.0.4~/libpeony-qt/file-launcher/file-launch-action.cpp 2020-10-29 17:47:37.262720436 +0800
@@ -123,7 +123,7 @@
}
}
- if (executable && !isDesktopFileAction() && !skipDialog && isShellScript) {
+ if (executable && !isDesktopFileAction() && !skipDialog) {
QMessageBox msg;
auto defaultAction = msg.addButton("By Default App", QMessageBox::ButtonRole::ActionRole);
auto exec = msg.addButton(tr("Execute Directly"), QMessageBox::ButtonRole::ActionRole);
@@ -219,7 +219,7 @@
}
}
- if (executable && !isDesktopFileAction() && !skipDialog && isShellScript) {
+ if (executable && !isDesktopFileAction() && !skipDialog) {
QMessageBox msg;
auto defaultAction = msg.addButton(tr("By Default App"), QMessageBox::ButtonRole::ActionRole);
auto exec = msg.addButton(tr("Execute Directly"), QMessageBox::ButtonRole::ActionRole);

Binary file not shown.

BIN
peony-3.0.4.tar.gz Normal file

Binary file not shown.

View File

@ -1,7 +1,7 @@
%define debug_package %{nil} %define debug_package %{nil}
Name: peony Name: peony
Version: 2.1.2 Version: 3.0.4
Release: 1 Release: 1
Summary: file Manager for the UKUI desktop Summary: file Manager for the UKUI desktop
License: GPL-2.0+ GPL-3.0+ Expat LGPL-3.0+ License: GPL-2.0+ GPL-3.0+ Expat LGPL-3.0+
@ -12,10 +12,12 @@ Source0: %{name}-%{version}.tar.gz
BuildRequires: libudisks2-devel BuildRequires: libudisks2-devel
BuildRequires: libnotify-devel BuildRequires: libnotify-devel
BuildRequires: gtk2-devel BuildRequires: gtk2-devel
BuildRequires: pkg-config, qt5-qtbase-devel, qt5-qtbase-private-devel, qtchooser, glib2-devel, qt5-qtx11extras-devel, gsettings-qt-devel, poppler-devel, poppler-qt5-devel, kf5-kwindowsystem-devel BuildRequires: pkg-config, qt5-qtbase-devel, qt5-qtbase-private-devel, qtchooser, glib2-devel, qt5-qtx11extras-devel, gsettings-qt-devel, poppler-devel, poppler-qt5-devel, kf5-kwindowsystem-devel, libcanberra-devel
Requires: peony-common, libpeony2 Requires: peony-common, libpeony3
Requires: gvfs Requires: gvfs
patch0: 001-fix-excute-file.patch
%description %description
Peony is the official file manager for the UKUI desktop. It allows one Peony is the official file manager for the UKUI desktop. It allows one
to browse directories, preview files and launch applications associated to browse directories, preview files and launch applications associated
@ -36,13 +38,13 @@ BuildRequires: pkg-config, qt5-qtbase-devel, qt5-qtbase-private-devel, qtchooser
. .
This package contains the architecture independent files. This package contains the architecture independent files.
%package -n libpeony2 %package -n libpeony3
Summary: libraries for Peony components Summary: libraries for Peony components
License: LGPLv2+ License: LGPLv2+
BuildRequires: pkg-config, qt5-qtbase-devel, qt5-qtbase-private-devel, qtchooser, glib2-devel, qt5-qtx11extras-devel, gsettings-qt-devel, poppler-devel, poppler-qt5-devel, kf5-kwindowsystem-devel BuildRequires: pkg-config, qt5-qtbase-devel, qt5-qtbase-private-devel, qtchooser, glib2-devel, qt5-qtx11extras-devel, gsettings-qt-devel, poppler-devel, poppler-qt5-devel, kf5-kwindowsystem-devel
Provides: libpeony Provides: libpeony
%description -n libpeony2 %description -n libpeony3
Peony is the official file manager for the UKUI desktop. It allows one Peony is the official file manager for the UKUI desktop. It allows one
to browse directories, preview files and launch applications associated to browse directories, preview files and launch applications associated
with them. It is also responsible for handling the icons on the UKUI with them. It is also responsible for handling the icons on the UKUI
@ -70,6 +72,7 @@ Provides: libpeony
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
qmake-qt5 qmake-qt5
@ -80,14 +83,6 @@ make
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make INSTALL_ROOT=%{buildroot} install make INSTALL_ROOT=%{buildroot} install
mkdir -p %{buildroot}/usr/share/applications
mkdir -p %{buildroot}/etc/xdg/autostart
cp -r %{_builddir}/%{name}-%{version}/data/peony.desktop %{buildroot}/usr/share/applications
cp -r %{_builddir}/%{name}-%{version}/data/peony-computer.desktop %{buildroot}/usr/share/applications
cp -r %{_builddir}/%{name}-%{version}/data/peony-home.desktop %{buildroot}/usr/share/applications
cp -r %{_builddir}/%{name}-%{version}/data/peony-trash.desktop %{buildroot}/usr/share/applications
cp -r %{_builddir}/%{name}-%{version}/data/peony-desktop.desktop %{buildroot}/etc/xdg/autostart
#peony-common #peony-common
mkdir -p %{buildroot}/usr/share/dbus-1/interfaces mkdir -p %{buildroot}/usr/share/dbus-1/interfaces
mkdir -p %{buildroot}/usr/share/dbus-1/services mkdir -p %{buildroot}/usr/share/dbus-1/services
@ -99,7 +94,7 @@ cp -r %{_builddir}/%{name}-%{version}/peony-qt-desktop/org.ukui.freedesktop.File
cp -r %{_builddir}/%{name}-%{version}/translations/peony-qt/* %{buildroot}/usr/share/peony-qt cp -r %{_builddir}/%{name}-%{version}/translations/peony-qt/* %{buildroot}/usr/share/peony-qt
cp -r %{_builddir}/%{name}-%{version}/translations/peony-qt-desktop/* %{buildroot}/usr/share/peony-qt-desktop cp -r %{_builddir}/%{name}-%{version}/translations/peony-qt-desktop/* %{buildroot}/usr/share/peony-qt-desktop
#libpeony2 #libpeony3
mkdir -p %{buildroot}/usr/share/libpeony-qt mkdir -p %{buildroot}/usr/share/libpeony-qt
cp -r %{_builddir}/%{name}-%{version}/translations/libpeony-qt/* %{buildroot}/usr/share/libpeony-qt cp -r %{_builddir}/%{name}-%{version}/translations/libpeony-qt/* %{buildroot}/usr/share/libpeony-qt
@ -109,7 +104,7 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%{_prefix}/bin/* %{_prefix}/bin/*
%{_datadir}/applications/* %{_datadir}/applications/*
%{_sysconfdir}/xdg/autostart/* #%%{_sysconfdir}/xdg/autostart/*
%files common %files common
%doc debian/copyright debian/changelog %doc debian/copyright debian/changelog
@ -118,7 +113,7 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/peony-qt/* %{_datadir}/peony-qt/*
%{_datadir}/peony-qt-desktop/* %{_datadir}/peony-qt-desktop/*
%files -n libpeony2 %files -n libpeony3
%{_prefix}/%{_lib}/*.so.* %{_prefix}/%{_lib}/*.so.*
%{_datadir}/libpeony-qt/* %{_datadir}/libpeony-qt/*
@ -128,5 +123,8 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/%{_lib}/*.so %{_prefix}/%{_lib}/*.so
%changelog %changelog
* Mon Oct 26 2020 douyan <douyan@kylinos.cn> - 3.0.4-1
- update to upstream version 3.0.4
* Thu Jul 9 2020 douyan <douyan@kylinos.cn> - 2.1.2-1 * Thu Jul 9 2020 douyan <douyan@kylinos.cn> - 2.1.2-1
- Init package for openEuler - Init package for openEuler