2020-09-10 09:07:24 +08:00
|
|
|
Name: deepin-clone
|
2023-06-01 14:24:26 +08:00
|
|
|
Version: 5.0.11
|
2024-05-27 11:20:08 +08:00
|
|
|
Release: 3
|
2020-09-10 09:07:24 +08:00
|
|
|
Summary: Disk and partition backup/restore tool
|
|
|
|
|
License: GPLv3
|
|
|
|
|
URL: https://github.com/linuxdeepin/deepin-clone
|
|
|
|
|
Source0: https://github.com/linuxdeepin/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
2024-05-27 11:20:08 +08:00
|
|
|
%ifarch riscv64
|
|
|
|
|
Patch1000: Init-riscv64-support.patch
|
|
|
|
|
%endif
|
|
|
|
|
|
2023-06-01 14:24:26 +08:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
BuildRequires: qt5-linguist
|
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
|
BuildRequires: qt5-qtbase-private-devel
|
|
|
|
|
BuildRequires: dtkwidget-devel
|
|
|
|
|
BuildRequires: dtkcore-devel
|
|
|
|
|
BuildRequires: dtkgui-devel
|
|
|
|
|
BuildRequires: deepin-gettext-tools
|
|
|
|
|
|
2020-09-10 09:07:24 +08:00
|
|
|
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
|
2023-06-01 14:24:26 +08:00
|
|
|
Requires: hicolor-icon-theme
|
|
|
|
|
Requires: partclone
|
|
|
|
|
Requires: jfsutils
|
|
|
|
|
Requires: ntfs-3g
|
|
|
|
|
Requires: xfsprogs
|
2024-05-27 11:20:08 +08:00
|
|
|
ExclusiveArch: x86_64 %{ix86} aarch64 riscv64
|
2020-09-10 09:07:24 +08:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-02-07 15:24:14 +08:00
|
|
|
%autosetup -p1
|
2023-06-01 14:24:26 +08:00
|
|
|
sed -i 's|sbin|bin|' CMakeLists.txt
|
|
|
|
|
sed -i 's|Version=0.1|Version=%{version}|' app/%{name}.desktop
|
|
|
|
|
#sed -i 's|/usr/sbin|/usr/bin|' app/{%{name}-app.pro,%{name}-ionice,%{name}-pkexec,com.deepin.pkexec.%{name}.policy.tmp}
|
2020-09-10 09:07:24 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export PATH=%{_qt5_bindir}:$PATH
|
2022-02-07 15:24:14 +08:00
|
|
|
export CFLAGS="%{optflags} -Wno-error=format-security"
|
|
|
|
|
export CXXFLAGS="%{optflags} -Wno-error=format-security"
|
2023-08-22 10:02:17 +08:00
|
|
|
%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
|
-DDISABLE_DFM_PLUGIN=YES \
|
|
|
|
|
.
|
2020-09-10 09:07:24 +08:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
|
|
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_bindir}/%{name}*
|
|
|
|
|
%{_datadir}/%{name}/
|
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
%{_datadir}/icons/hicolor/scalable/mimetypes/*.svg
|
|
|
|
|
%{_datadir}/mime/packages/%{name}.xml
|
2020-09-10 09:35:02 +08:00
|
|
|
%{_datadir}/polkit-1/actions//com.deepin.pkexec.%{name}.policy
|
2023-08-22 10:02:17 +08:00
|
|
|
#%{_libdir}/dde-file-manager/plugins/controllers/libdfm-plugin-dim-file.so
|
2020-09-10 09:07:24 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2024-05-27 11:20:08 +08:00
|
|
|
* Mon May 27 2024 misaka00251 <liuxin@iscas.ac.cn> - 5.0.11-3
|
|
|
|
|
- Init riscv64 support
|
|
|
|
|
|
2023-08-22 10:02:17 +08:00
|
|
|
* Tue Aug 22 2023 leeffo <liweiganga@uniontech.com> - 5.0.11-2
|
|
|
|
|
- fix compile error
|
|
|
|
|
|
2023-06-01 14:24:26 +08:00
|
|
|
* Thu Jun 01 2023 leeffo <liweiganga@uniontech.com> - 5.0.11-1
|
|
|
|
|
- update to 5.0.11
|
|
|
|
|
|
2022-02-07 15:24:14 +08:00
|
|
|
* Thu Feb 10 2022 liweigang <liweiganga@uniontech.com> - 5.0.3-2
|
|
|
|
|
- fix build error
|
|
|
|
|
|
2020-09-10 09:07:24 +08:00
|
|
|
* Thu Sep 10 2020 chenbo pan <panchenbo@uniontech.com> - 5.0.3-1
|
|
|
|
|
- Initial build
|