!9 update package

From: @hanshuang123456 
Reviewed-by: @HelloWorld_lvcongqing 
Signed-off-by: @HelloWorld_lvcongqing
This commit is contained in:
openeuler-ci-bot 2023-10-25 01:38:56 +00:00 committed by Gitee
commit 8fbbeb47e9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 23 additions and 27 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,45 +1,41 @@
%bcond_with check
%global with_debug 1
%if 0%{?with_debug}
%global debug_package %{nil}
%endif
Name: dde-device-formatter Name: dde-device-formatter
Version: 0.0.1.1 Version: 0.0.1.15
Release: 1 Release: 2%{?dist}.01
Summary: A simple graphical interface for creating file system in a block device. Summary: A simple graphical interface for creating file system in a block device
License: GPLv3+ License: GPLv3+
URL: https://github.com/linuxdeepin/dde-device-formatter URL: https://github.com/linuxdeepin/dde-device-formatter
Source0: https://github.com/linuxdeepin/%{name}/archive/%{version}/%{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
BuildRequires: dtkwidget-devel dtkgui-devel dtkcore-devel dde-qt-dbus-factory-devel deepin-gettext-tools BuildRequires: qt5-devel
BuildRequires: udisks2-qt5 udisks2-qt5-devel qt5-linguist qt5-qtbase-devel qt5-qtx11extras-devel BuildRequires: dtkwidget-devel
BuildRequires: dtkgui-devel
BuildRequires: udisks2-qt5-devel
BuildRequires: deepin-gettext-tools
%description %description
A simple graphical interface for creating file system in a block device. %{summary}.
%prep %prep
%autosetup %autosetup
%build %build
export PATH=$PATH:/usr/lib64/qt5/bin export PATH=%{_qt5_bindir}:$PATH
mkdir build && cd build mkdir build && pushd build
%{_libdir}/qt5/bin/qmake .. %qmake_qt5 ../ VERSION=%{version} LIB_INSTALL_DIR=%{_libdir} DEFINES+="VERSION=%{version}"
%{__make} %make_build
%install
pushd %{_builddir}/%{name}-%{version}/build
%make_install INSTALL_ROOT=%{buildroot}
popd popd
%files %install
%{_bindir}/%{name} %make_install -C build INSTALL_ROOT="%buildroot"
%{_datadir}/%{name}/*
%files
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%{_bindir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/dde-device-formatter.desktop
%changelog %changelog
* Thu Sep 10 2020 chenbo pan <panchenbo@uniontech.com> - 0.0.1.1-1 * Fri Jun 10 2022 uoser <uoser@uniontech.com> - 0.0.1.15-2.01
- Initial package build - package init