1 Star 0 Fork 15

庞庆/deepin-clone_5

forked from src-openEuler/deepin-clone 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
deepin-clone.spec 2.14 KB
一键复制 编辑 原始数据 按行查看 历史
Venland 提交于 2023-08-22 10:02 +08:00 . fix compile fail
Name: deepin-clone
Version: 5.0.11
Release: 2
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
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
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
Requires: hicolor-icon-theme
Requires: partclone
Requires: jfsutils
Requires: ntfs-3g
Requires: xfsprogs
ExclusiveArch: x86_64 %{ix86} aarch64
%description
%{summary}.
%prep
%autosetup -p1
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}
%build
export PATH=%{_qt5_bindir}:$PATH
export CFLAGS="%{optflags} -Wno-error=format-security"
export CXXFLAGS="%{optflags} -Wno-error=format-security"
%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DDISABLE_DFM_PLUGIN=YES \
.
%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
%{_datadir}/polkit-1/actions//com.deepin.pkexec.%{name}.policy
#%{_libdir}/dde-file-manager/plugins/controllers/libdfm-plugin-dim-file.so
%changelog
* Tue Aug 22 2023 leeffo <liweiganga@uniontech.com> - 5.0.11-2
- fix compile error
* Thu Jun 01 2023 leeffo <liweiganga@uniontech.com> - 5.0.11-1
- update to 5.0.11
* Thu Feb 10 2022 liweigang <liweiganga@uniontech.com> - 5.0.3-2
- fix build error
* Thu Sep 10 2020 chenbo pan <panchenbo@uniontech.com> - 5.0.3-1
- Initial build
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/pang-qing/deepin-clone_5.git
git@gitee.com:pang-qing/deepin-clone_5.git
pang-qing
deepin-clone_5
deepin-clone_5
master

搜索帮助