Name: peony Version: 3.0.4 Release: 1%{?dist} Summary: file Manager for the UKUI desktop License: GPL-2.0 License URL: https://github.com/ukui/peony Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: x86_64 BuildRequires: pkgconfig(nss) BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qttools-devel BuildRequires: glib2-devel BuildRequires: qt5-qtbase-devel BuildRequires: gsettings-qt-devel BuildRequires: kf5-kwindowsystem-devel BuildRequires: poppler-qt5-devel BuildRequires: qt5-qtx11extras-devel BuildRequires: qt5-qtbase-private-devel BuildRequires: qt5-linguist BuildRequires: libudisks2-devel BuildRequires: libnotify-devel Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-common%{?_isa} = %{version}-%{release} Requires: kf5-kwindowsystem Recommends: gvfs-backends Recommends: peony-open-terminal Recommends: peony-admin Recommends: peony-share Recommends: parchives %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) %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. %package libs Summary: libraries for Peony components %description libs 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 devel Summary: libraries for Peony components (development files) Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel 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 %build export PATH=%{_qt5_bindir}:$PATH mkdir qmake-build pushd qmake-build %if 0%{?rhel} == 8 if ! grep -q "qm_files.CONFIG" /usr/lib64/qt5/mkspecs/features/lrelease.prf; then sed -i '/qm_files.path/a qm_files.CONFIG = no_check_exist' /usr/lib64/qt5/mkspecs/features/lrelease.prf fi %endif %{qmake_qt5} .. %{make_build} popd %install pushd qmake-build %{make_install} INSTALL_ROOT=%{buildroot} popd install -d %{buildroot}/usr/share/man/man1/ %{buildroot}/usr/share/dbus-1/interfaces/ %{buildroot}/usr/share/dbus-1/services/ install -m644 peony-qt-desktop/freedesktop-dbus-interfaces.xml %{buildroot}/usr/share/dbus-1/interfaces/freedesktop-dbus-interfaces.xml install -m644 peony-qt-desktop/org.ukui.freedesktop.FileManager1.service %{buildroot}/usr/share/dbus-1/services/org.ukui.freedesktop.FileManager1.service gzip -c src/man/peony.1 > %{buildroot}/usr/share/man/man1/peony.1.gz gzip -c peony-qt-desktop/man/peony-qt-desktop.1 > %{buildroot}/usr/share/man/man1/peony-qt-desktop.1.gz %files %{_bindir}/peony %{_bindir}/peony-qt-desktop %{_datadir}/applications/peony.desktop %{_datadir}/applications/peony-computer.desktop %{_datadir}/applications/peony-home.desktop %{_datadir}/applications/peony-trash.desktop %{_datadir}/applications/peony-desktop.desktop %files common %doc debian/changelog %license debian/copyright %{_mandir}/man1/peony-qt-desktop.1.gz %{_mandir}/man1/peony.1.gz %{_datadir}/dbus-1/interfaces/freedesktop-dbus-interfaces.xml %{_datadir}/dbus-1/services/org.ukui.freedesktop.FileManager1.service %{_datadir}/libpeony-qt/ %{_datadir}/peony-qt-desktop/ %{_datadir}/peony-qt/ %files libs %{_libdir}/libpeony.* %files devel %{_includedir}/peony-qt %{_libdir}/pkgconfig/peony.pc