dde-device-formatter/dde-device-formatter.spec

42 lines
970 B
RPMSpec
Raw Normal View History

2020-09-10 08:56:21 +08:00
Name: dde-device-formatter
2023-10-10 13:22:32 +08:00
Version: 0.0.1.15
Release: 2%{?dist}.01
Summary: A simple graphical interface for creating file system in a block device
2020-09-10 08:56:21 +08:00
License: GPLv3+
URL: https://github.com/linuxdeepin/dde-device-formatter
2023-10-10 13:22:32 +08:00
Source0: %{name}-%{version}.tar.gz
2020-09-10 08:56:21 +08:00
2023-10-10 13:22:32 +08:00
BuildRequires: qt5-devel
BuildRequires: dtkwidget-devel
BuildRequires: dtkgui-devel
BuildRequires: udisks2-qt5-devel
BuildRequires: deepin-gettext-tools
2020-09-10 08:56:21 +08:00
%description
2023-10-10 13:22:32 +08:00
%{summary}.
2020-09-10 08:56:21 +08:00
%prep
%autosetup
%build
2023-10-10 13:22:32 +08:00
export PATH=%{_qt5_bindir}:$PATH
mkdir build && pushd build
%qmake_qt5 ../ VERSION=%{version} LIB_INSTALL_DIR=%{_libdir} DEFINES+="VERSION=%{version}"
%make_build
popd
2020-09-10 08:56:21 +08:00
%install
2023-10-10 13:22:32 +08:00
%make_install -C build INSTALL_ROOT="%buildroot"
2020-09-10 08:56:21 +08:00
2023-10-10 13:22:32 +08:00
%files
2020-09-10 08:56:21 +08:00
%doc README.md
%license LICENSE
2023-10-10 13:22:32 +08:00
%{_bindir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/dde-device-formatter.desktop
2020-09-10 08:56:21 +08:00
%changelog
2023-10-10 13:22:32 +08:00
* Fri Jun 10 2022 uoser <uoser@uniontech.com> - 0.0.1.15-2.01
- package init