commit
b59099dfce
BIN
peony-2.2.0.tar.gz
Normal file
BIN
peony-2.2.0.tar.gz
Normal file
Binary file not shown.
129
peony.spec
Normal file
129
peony.spec
Normal file
@ -0,0 +1,129 @@
|
||||
%define debug_package %{nil}
|
||||
|
||||
Name: peony
|
||||
Version: 2.2.0
|
||||
Release: 1
|
||||
Summary: file Manager for the UKUI desktop
|
||||
License: GPL-2.0+ GPL-3.0+ Expat LGPL-3.0+
|
||||
URL: http://www.ukui.org
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
#BuildRequires: pkg-kde-tools,qtbase5-dev-tools,qttools5-dev-tools,
|
||||
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
|
||||
Requires: peony-common, libpeony2
|
||||
Requires: gvfs
|
||||
|
||||
%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: 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
|
||||
|
||||
|
||||
%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 -n libpeony2
|
||||
Summary: libraries for Peony components
|
||||
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
|
||||
Provides: libpeony
|
||||
|
||||
%description -n libpeony2
|
||||
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: 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
|
||||
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
|
||||
|
||||
%build
|
||||
qmake-qt5
|
||||
make
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
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
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
#libpeony2
|
||||
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/*
|
||||
%{_sysconfdir}/xdg/autostart/*
|
||||
|
||||
%files common
|
||||
%doc debian/copyright debian/changelog
|
||||
%{_datadir}/dbus-1/interfaces/*
|
||||
%{_datadir}/dbus-1/services/*
|
||||
%{_datadir}/peony-qt/*
|
||||
%{_datadir}/peony-qt-desktop/*
|
||||
|
||||
%files -n libpeony2
|
||||
%{_prefix}/%{_lib}/*.so.*
|
||||
%{_datadir}/libpeony-qt/*
|
||||
|
||||
%files -n libpeony-dev
|
||||
%{_prefix}/include/peony-qt/*
|
||||
%{_prefix}/%{_lib}/pkgconfig/*.pc
|
||||
%{_prefix}/%{_lib}/*.so
|
||||
|
||||
%changelog
|
||||
* Thu Jul 9 2020 douyan <douyan@kylinos.cn> - 2.2.0-1
|
||||
- Init package for openEuler
|
||||
Loading…
x
Reference in New Issue
Block a user