peony/peony.spec

187 lines
6.9 KiB
RPMSpec
Raw Normal View History

2022-06-09 15:26:17 +08:00
Name: peony
2022-12-08 14:18:32 +08:00
Version: 3.10.0
Release: 7
2020-07-09 10:18:49 +08:00
Summary: file Manager for the UKUI desktop
2022-06-09 15:26:17 +08:00
License: GPL-3.0-or-later and MIT and BSD-3-Clause
URL: http://www.ukui.org
Source0: %{name}-%{version}.tar.gz
2023-06-06 17:28:36 +08:00
Patch01: 0001-fix-share-error-of-peony.patch
Patch02: 0001-peony-fix-segment-fault-when-rapidly-open-windows.patch
Patch03: 0001-peony-fix-a-problem-that-failed-to-switch-between-si.patch
Patch04: 0001-readd-function-to-set-file-executable-permission.patch
Patch05: 0001-Fix-inaccurate-translation-about-file-renamed-to-be-.patch
2020-07-09 10:18:49 +08:00
2020-07-24 15:07:20 +08:00
BuildRequires: libudisks2-devel
BuildRequires: libnotify-devel
BuildRequires: gtk2-devel
2020-11-03 14:04:32 +08:00
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
2022-02-22 16:45:40 +08:00
BuildRequires: openssl-devel
BuildRequires: kf5-kwayland
BuildRequires: kf5-kwayland-devel
BuildRequires: wayland-devel
BuildRequires: qt5-qttools-devel
2022-12-08 14:18:32 +08:00
BuildRequires: ukui-interface
BuildRequires: bamf-devel qt5-qtsvg-devel qt5-qtdeclarative-devel
2022-02-22 16:45:40 +08:00
2020-11-03 14:04:32 +08:00
Requires: peony-common, libpeony3
2022-07-13 15:37:40 +08:00
Requires: qt5-qttranslations
2022-02-22 16:45:40 +08:00
Requires: gvfs, dvd+rw-tools ,libcanberra-devel
2020-07-09 10:18:49 +08:00
2020-11-03 14:04:32 +08:00
2020-07-09 10:18:49 +08:00
%description
Peony is the official file manager for the UKUI desktop. It allows one
to browse directories, preview files and launch applications associated
with them. It is also responsible for handling the icons on the UKUI
desktop. It works on local and remote filesystems.
%package common
Summary: file manager for the UKUI desktop (common files)
License: GPL-3.0-or-later
2020-07-09 10:18:49 +08:00
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
%description common
Peony is the official file manager for the UKUI desktop. It allows one
to browse directories, preview files and launch applications associated
with them. It is also responsible for handling the icons on the UKUI
desktop. It works on local and remote filesystems.
.
This package contains the architecture independent files.
2020-11-03 14:04:32 +08:00
%package -n libpeony3
2020-07-09 10:18:49 +08:00
Summary: libraries for Peony components
License: LGPL-3.0-or-later and MIT and BSD-3-Clause
2020-07-09 10:18:49 +08:00
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
2020-11-03 14:04:32 +08:00
%description -n libpeony3
2020-07-09 10:18:49 +08:00
Peony is the official file manager for the UKUI desktop. It allows one
to browse directories, preview files and launch applications associated
with them. It is also responsible for handling the icons on the UKUI
desktop. It works on local and remote filesystems.
.
This package contains a few runtime libraries needed by Peony's
extensions
%package -n libpeony-dev
Summary: libraries for Peony components (development files)
License: LGPL-3.0-or-later and MIT and BSD-3-Clause
2020-07-09 10:18:49 +08:00
#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
%description -n libpeony-dev
Peony is the official file manager for the UKUI desktop. It allows one
to browse directories, preview files and launch applications associated
with them. It is also responsible for handling the icons on the UKUI
desktop. It works on local and remote filesystems.
.
This package contains the development files for the libraries needed
by Peony's extensions.
%prep
%setup -q
%patch 1 -p1
%patch 2 -p1
%patch 3 -p1
%patch 4 -p1
%patch 5 -p1
2020-07-09 10:18:49 +08:00
%build
2023-02-07 17:18:35 +08:00
%{qmake_qt5}
%{make_build}
2020-07-09 10:18:49 +08:00
%install
rm -rf $RPM_BUILD_ROOT
2023-02-07 17:18:35 +08:00
%{make_install} INSTALL_ROOT=%{buildroot}
2020-07-09 10:18:49 +08:00
#peony-common
mkdir -p %{buildroot}/usr/share/dbus-1/interfaces
mkdir -p %{buildroot}/usr/share/dbus-1/services
mkdir -p %{buildroot}/usr/share/peony-qt
mkdir -p %{buildroot}/usr/share/peony-qt-desktop
2022-06-09 15:26:17 +08:00
mkdir -p %{buildroot}/usr/share/kylin-user-guide/data/guide/peony
2020-07-09 10:18:49 +08:00
cp -r %{_builddir}/%{name}-%{version}/peony-qt-desktop/freedesktop-dbus-interfaces.xml %{buildroot}/usr/share/dbus-1/interfaces
cp -r %{_builddir}/%{name}-%{version}/peony-qt-desktop/org.ukui.freedesktop.FileManager1.service %{buildroot}/usr/share/dbus-1/services
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
2022-06-09 15:26:17 +08:00
cp -r %{_builddir}/%{name}-%{version}/data/peony/* %{buildroot}/usr/share/kylin-user-guide/data/guide/peony/
2020-07-09 10:18:49 +08:00
2020-11-03 14:04:32 +08:00
#libpeony3
2020-07-09 10:18:49 +08:00
mkdir -p %{buildroot}/usr/share/libpeony-qt
cp -r %{_builddir}/%{name}-%{version}/translations/libpeony-qt/* %{buildroot}/usr/share/libpeony-qt
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_prefix}/bin/*
%{_datadir}/applications/*
%files common
%doc debian/copyright debian/changelog
%{_datadir}/dbus-1/interfaces/*
%{_datadir}/dbus-1/services/*
2022-06-09 15:26:17 +08:00
%{_datadir}/glib-2.0/schemas/org.ukui.peony.settings.gschema.xml
2022-12-08 14:18:32 +08:00
%{_datadir}/glib-2.0/schemas/org.ukui.peony.desktop.settings.gschema.xml
2020-07-09 10:18:49 +08:00
%{_datadir}/peony-qt/*
%{_datadir}/peony-qt-desktop/*
2022-06-09 15:26:17 +08:00
%{_datadir}/kylin-user-guide/data/guide/peony
%{_sysconfdir}/xdg/autostart/peony-desktop.desktop
2020-07-09 10:18:49 +08:00
2020-11-03 14:04:32 +08:00
%files -n libpeony3
2020-07-09 10:18:49 +08:00
%{_prefix}/%{_lib}/*.so.*
%{_datadir}/libpeony-qt/*
%files -n libpeony-dev
%{_prefix}/include/peony-qt/*
%{_prefix}/%{_lib}/pkgconfig/*.pc
%{_prefix}/%{_lib}/*.so
%changelog
* Fri May 10 2024 houhongxun <houhongxun@kylinos.cn> - 3.10.0-7
- fix inaccurate translation about file renamed to be hidden
* Thu May 09 2024 houhongxun <houhongxun@kylinos.cn> - 3.10.0-6
- readd function to set file executable permission
* Tue Apr 16 2024 houhongxun <houhongxun@kylinos.cn> - 3.10.0-5
- fix problem failed to switch between sidebar items
* Mon Apr 15 2024 houhongxun <houhongxun@kylinos.cn> - 3.10.0-4
- fix segmentation fault when rapidly open windows by mouse clicks
2023-06-06 17:28:36 +08:00
* Tue Jun 06 2023 peijiankang <peijiankang@kylinos.cn> - 3.10.0-3
- fix share error of peony
2023-02-07 17:18:35 +08:00
* Tue Feb 07 2023 peijiankang <peijiankang@kylinos.cn> - 3.10.0-2
- add build debuginfo and debugsource
2022-12-08 14:18:32 +08:00
* Mon Nov 14 2022 tanyulong <tanyulong@kylinos.cn> - 3.10.0-1
- update version 3.10.0
2022-07-13 15:37:40 +08:00
* Wed Jul 13 2022 peijiankang <peijiankang@kylinos.cn> - 3.2.4-4
- add qt5-qttranslations
2022-06-09 15:26:17 +08:00
* Thu Jun 9 2022 peijiankang <peijiankang@kylinos.cn> - 3.2.4-3
- add kylin-user-guide files
* Wed Apr 27 2022 wangyueliang <wangyueliang@kylinos.cn> - 3.2.4-2
- Improve the project according to the requirements of compliance improvement.
2022-02-22 16:45:40 +08:00
* Tue Feb 22 2022 tanyulong <tanyulong@kylinos.cn> - 3.2.4-1
- update version 3.2.4
* Tue Oct 26 2021 douyan <douyan@kylinos.cn> - 3.0.4-2
- add patch:0001-adjust-desktop-readonly-icon-agree-with-icon-view.patch
2020-11-03 14:04:32 +08:00
* Mon Oct 26 2020 douyan <douyan@kylinos.cn> - 3.0.4-1
- update to upstream version 3.0.4
2020-07-24 15:07:20 +08:00
* Thu Jul 9 2020 douyan <douyan@kylinos.cn> - 2.1.2-1
2020-07-09 10:18:49 +08:00
- Init package for openEuler