| 1 |
%define pkgrelease 1 |
| 2 |
%if 0%{?openeuler} |
| 3 |
%define specrelease %{pkgrelease} |
| 4 |
%else |
| 5 |
## allow specrelease to have configurable %%{?dist} tag in other distribution |
| 6 |
%define specrelease %{pkgrelease}%{?dist} |
| 7 |
%endif |
| 8 |
|
| 9 |
Name: deepin-boot-maker |
| 10 |
Version: 5.6.14 |
| 11 |
Release: %{specrelease} |
| 12 |
Summary: Simple tool to write system image files into CD/DVD, USB flash drive and other media. |
| 13 |
License: GPLv3 |
| 14 |
URL: https://github.com/linuxdeepin/%{name} |
| 15 |
Packager: LiuRui |
| 16 |
Source0: %{name}_%{version}.orig.tar.xz |
| 17 |
|
| 18 |
|
| 19 |
BuildRequires: python3 |
| 20 |
BuildRequires: qt5-devel |
| 21 |
BuildRequires: xcb-util-devel |
| 22 |
BuildRequires: mtdev-devel |
| 23 |
BuildRequires: libXrender-devel |
| 24 |
BuildRequires: glib2-devel |
| 25 |
BuildRequires: fontconfig-devel |
| 26 |
BuildRequires: mesa-libEGL-devel |
| 27 |
BuildRequires: startup-notification-devel |
| 28 |
BuildRequires: dtkwidget-devel |
| 29 |
BuildRequires: gtest-devel |
| 30 |
BuildRequires: libXext-devel |
| 31 |
|
| 32 |
|
| 33 |
%ifarch x86_64 |
| 34 |
Requires: syslinux |
| 35 |
Requires: syslinux-nonlinux |
| 36 |
%endif |
| 37 |
Requires: p7zip |
| 38 |
Requires: mtools |
| 39 |
Requires: udisks2 |
| 40 |
Requires: genisoimage |
| 41 |
|
| 42 |
|
| 43 |
%description |
| 44 |
%{summary}. |
| 45 |
|
| 46 |
%prep |
| 47 |
%autosetup |
| 48 |
|
| 49 |
|
| 50 |
%build |
| 51 |
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease |
| 52 |
export PATH=%{_qt5_bindir}:$PATH |
| 53 |
%qmake_qt5 DAPP_VERSION=%{version} DEFINES+="VERSION=%{version}" |
| 54 |
%make_build |
| 55 |
|
| 56 |
|
| 57 |
%install |
| 58 |
%make_install INSTALL_ROOT="%buildroot" |
| 59 |
|
| 60 |
%files |
| 61 |
%doc README.md |
| 62 |
%license LICENSE |
| 63 |
%{_bindir}/* |
| 64 |
%{_datadir}/* |
| 65 |
/usr/lib/deepin-daemon/deepin-boot-maker-service |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
%changelog |
| 70 |
|