!23 update package
From: @hanshuang123456 Reviewed-by: @HelloWorld_lvcongqing Signed-off-by: @HelloWorld_lvcongqing
This commit is contained in:
commit
304fd058cd
BIN
deepin-editor-5.9.23.tar.gz
Normal file
BIN
deepin-editor-5.9.23.tar.gz
Normal file
Binary file not shown.
@ -1,32 +1,43 @@
|
|||||||
|
%global debug_package %{nil}
|
||||||
|
|
||||||
Name: deepin-editor
|
Name: deepin-editor
|
||||||
Version: 5.6.1
|
Version: 5.9.23
|
||||||
Release: 4
|
Release: 1%{?dist}.01
|
||||||
Summary: Simple editor for Linux Deepin
|
Summary: Simple editor for Linux Deepin
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: https://github.com/linuxdeepin/deepin-editor
|
URL: https://github.com/linuxdeepin/deepin-editor
|
||||||
Source0: %{name}_%{version}.orig.tar.xz
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc-c++
|
%if 0%{?openeuler}
|
||||||
BuildRequires: freeimage-devel
|
BuildRequires: cmake
|
||||||
BuildRequires: cmake(KF5Codecs)
|
%else
|
||||||
BuildRequires: cmake(KF5SyntaxHighlighting)
|
BuildRequires: cmake3
|
||||||
BuildRequires: dtkcore-devel
|
%endif
|
||||||
BuildRequires: dtkwidget-devel
|
|
||||||
BuildRequires: pkgconfig(libexif)
|
BuildRequires: qt5-devel
|
||||||
BuildRequires: pkgconfig(xcb-aux)
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig(xtst)
|
BuildRequires: freeimage-devel
|
||||||
BuildRequires: pkgconfig(polkit-qt5-1)
|
BuildRequires: pkgconfig(dtkwidget)
|
||||||
BuildRequires: pkgconfig(Qt5)
|
BuildRequires: pkgconfig(dtkcore)
|
||||||
BuildRequires: pkgconfig(Qt5DBus)
|
BuildRequires: pkgconfig(libexif)
|
||||||
BuildRequires: pkgconfig(Qt5Gui)
|
BuildRequires: pkgconfig(xcb-aux)
|
||||||
BuildRequires: pkgconfig(Qt5Svg)
|
BuildRequires: pkgconfig(xtst)
|
||||||
BuildRequires: pkgconfig(Qt5X11Extras)
|
BuildRequires: pkgconfig(polkit-qt5-1)
|
||||||
BuildRequires: qt5-linguist
|
BuildRequires: pkgconfig(Qt5)
|
||||||
BuildRequires: qt5-qtbase-private-devel
|
BuildRequires: pkgconfig(Qt5DBus)
|
||||||
BuildRequires: cmake
|
BuildRequires: pkgconfig(Qt5Gui)
|
||||||
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
|
BuildRequires: pkgconfig(Qt5Svg)
|
||||||
Requires: deepin-notifications
|
BuildRequires: pkgconfig(Qt5X11Extras)
|
||||||
Requires: dde-qt5integration
|
BuildRequires: pkgconfig(dframeworkdbus)
|
||||||
|
BuildRequires: qt5-linguist
|
||||||
|
BuildRequires: qt5-qtbase-private-devel
|
||||||
|
BuildRequires: kf5-kcodecs-devel
|
||||||
|
BuildRequires: kf5-syntax-highlighting-devel
|
||||||
|
BuildRequires: gtest-devel
|
||||||
|
BuildRequires: gmock-devel
|
||||||
|
BuildRequires: uchardet-devel
|
||||||
|
BuildRequires: enca-devel
|
||||||
|
BuildRequires: dtkcommon-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}.
|
%{summary}.
|
||||||
@ -35,27 +46,31 @@ Requires: dde-qt5integration
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
|
||||||
export PATH=%{_qt5_bindir}:$PATH
|
export PATH=%{_qt5_bindir}:$PATH
|
||||||
%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=Release .
|
# cmake_minimum_required version is too high
|
||||||
|
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
|
%make_build
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install INSTALL_ROOT=%{buildroot}
|
%make_install -C build INSTALL_ROOT="%buildroot"
|
||||||
|
|
||||||
%check
|
# %check
|
||||||
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
|
# desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_bindir}/dedit
|
# %{_bindir}/dedit
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_datadir}/%{name}/
|
%{_datadir}/%{name}/
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
|
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
||||||
|
%{_datadir}/deepin-manual/manual-assets/application/deepin-editor/editor/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Aug 28 2020 chenbo pan <panchenbo@uniontech.com> - 5.6.1-4
|
* Mon Jun 13 2022 uoser <uoser@uniontech.com> - 5.9.23-1.01
|
||||||
- fix compile fail
|
- update to 5.9.23-1.01
|
||||||
|
|
||||||
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.6.1-3
|
|
||||||
- Package init
|
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user