deepin-log-viewer/deepin-log-viewer.spec

54 lines
1.4 KiB
RPMSpec
Raw Normal View History

2020-07-14 10:41:15 +08:00
Name: deepin-log-viewer
2021-07-12 14:12:02 +08:00
Version: 5.8.0.23
Release: 1
2020-07-14 10:41:15 +08:00
Summary: Log Viewer is a useful tool for viewing system logs.
License: GPLv3+
2021-07-12 14:12:02 +08:00
URL: https://github.com/linuxdeepin/deepin-log-viewer
Source0: %{name}-%{version}.tar.gz
2020-07-14 10:41:15 +08:00
2021-07-12 14:12:02 +08:00
BuildRequires: gcc-c++
BuildRequires: cmake3
2020-08-28 10:48:51 +08:00
BuildRequires: dtkcore-devel
2020-07-14 10:41:15 +08:00
BuildRequires: dtkwidget-devel
BuildRequires: systemd-devel
2021-07-12 14:12:02 +08:00
BuildRequires: libicu-devel
BuildRequires: qt5-devel
2020-07-14 10:41:15 +08:00
%description
2021-07-12 14:12:02 +08:00
%{summary}.
2020-07-14 10:41:15 +08:00
%prep
%autosetup
%build
2021-07-12 14:12:02 +08:00
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
export PATH=%{_qt5_bindir}:$PATH
sed -i "s|^cmake_minimum_required.*|cmake_minimum_required(VERSION 3.0)|" $(find . -name "CMakeLists.txt")
mkdir build && pushd build
%cmake -DCMAKE_BUILD_TYPE=Release ../ -DAPP_VERSION=%{version} -DVERSION=%{version}
%make_build
2020-07-14 10:41:15 +08:00
popd
2021-07-12 14:12:02 +08:00
%install
%make_install -C build INSTALL_ROOT="%buildroot"
2020-07-14 10:41:15 +08:00
%files
2021-07-12 14:12:02 +08:00
%license LICENSE
%{_bindir}/%{name}
2020-07-14 10:41:15 +08:00
%{_bindir}/logViewerAuth
2021-07-12 14:12:02 +08:00
%{_bindir}/logViewerTruncate
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/translations/%{name}*
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/polkit-1/actions/*.policy
2020-07-14 10:41:15 +08:00
%changelog
2021-07-12 14:12:02 +08:00
* Mon Jul 12 2021 weidong <weidong@uniontech.com> - 5.8.0.23-1
- Update 5.8.0.23
2020-08-28 10:48:51 +08:00
* Fri Aug 28 2020 chenbo pan <panchenbo@uniontech.com> - 5.0.10-2
- fix compile fail
2020-07-30 16:10:36 +08:00
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.6.1-1
- Package init