deepin-editor/deepin-editor.spec

112 lines
3.1 KiB
RPMSpec
Raw Permalink Normal View History

2023-03-16 15:29:43 +08:00
%global debug_package %{nil}
2023-04-06 13:31:49 +08:00
%define pkgrelease 1
2022-07-28 17:20:39 +08:00
%if 0%{?openeuler}
%define specrelease %{pkgrelease}
%else
## allow specrelease to have configurable %%{?dist} tag in other distribution
%define specrelease %{pkgrelease}%{?dist}
%endif
2020-07-14 10:34:34 +08:00
Name: deepin-editor
Version: 6.0.6
2022-07-28 17:20:39 +08:00
Release: %{specrelease}
2020-07-14 10:34:34 +08:00
Summary: Simple editor for Linux Deepin
License: GPLv3
URL: https://github.com/linuxdeepin/deepin-editor
Source0: %{name}-%{version}.tar.gz
#%Patch0: 0001-feat-broken-KF5-include-path.patch
2020-07-14 10:34:34 +08:00
2021-07-12 13:22:51 +08:00
BuildRequires: cmake3
2022-07-28 17:20:39 +08:00
BuildRequires: qt5-devel
2021-07-12 13:22:51 +08:00
BuildRequires: gcc-c++
BuildRequires: freeimage-devel
BuildRequires: dtkcommon-devel
2022-07-28 17:20:39 +08:00
BuildRequires: dtkwidget-devel
BuildRequires: dtkcore-devel
2021-07-12 13:22:51 +08:00
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(xcb-aux)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(polkit-qt5-1)
BuildRequires: pkgconfig(Qt5)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5X11Extras)
2022-07-28 17:20:39 +08:00
BuildRequires: pkgconfig(dframeworkdbus)
2021-07-12 13:22:51 +08:00
BuildRequires: qt5-linguist
BuildRequires: qt5-qtbase-private-devel
2022-07-28 17:20:39 +08:00
BuildRequires: kf5-kcodecs-devel
BuildRequires: kf5-syntax-highlighting-devel
BuildRequires: gtest-devel
BuildRequires: gmock-devel
2023-04-06 13:31:49 +08:00
BuildRequires: dtkcommon-devel
BuildRequires: uchardet-devel
BuildRequires: enca-devel
BuildRequires: libicu-devel
BuildRequires: libchardet-devel
2022-07-28 17:20:39 +08:00
2020-07-14 10:34:34 +08:00
%description
%{summary}.
%prep
%setup -q
#%%patch0 -p1
2020-07-14 10:34:34 +08:00
2023-03-16 15:29:43 +08:00
# fix strip
sed -i 's|-Wall"|-Wall -s"|' CMakeLists.txt
%build
2021-07-12 13:22:51 +08:00
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
2020-07-14 10:34:34 +08:00
export PATH=%{_qt5_bindir}:$PATH
2022-07-28 17:20:39 +08:00
# cmake_minimum_required version is too high
2021-07-12 13:22:51 +08:00
sed -i "s|^cmake_minimum_required.*|cmake_minimum_required(VERSION 3.0)|" $(find . -name "CMakeLists.txt")
2022-07-28 17:20:39 +08:00
mkdir build && pushd build
%cmake -DCMAKE_BUILD_TYPE=Release -DAPP_VERSION=%{version} -DVERSION=%{version} ../
2020-07-14 10:34:34 +08:00
%make_build
2022-07-28 17:20:39 +08:00
popd
2020-07-14 10:34:34 +08:00
%install
2022-07-28 17:20:39 +08:00
%make_install -C build INSTALL_ROOT="%buildroot"
2020-07-14 10:34:34 +08:00
2022-07-28 17:20:39 +08:00
# %check
# desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop ||:
2020-07-14 10:34:34 +08:00
%files
%doc README.md
%license LICENSE.txt
2020-07-14 10:34:34 +08:00
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
2021-07-12 13:22:51 +08:00
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
2022-07-28 17:20:39 +08:00
%{_datadir}/deepin-manual/manual-assets/application/deepin-editor/editor/*
%{_datadir}/dsg/configs/org.deepin.editor/org.deepin.editor.json
2020-07-14 10:34:34 +08:00
%changelog
* Wed Jul 26 2023 leeffo <liweiganga@uniontech.com> - 6.0.6-1
- upgrade to version 6.0.6
2023-04-06 13:31:49 +08:00
* Fri Mar 31 2023 liweiganga <liweiganga@uniontech.com> - 5.9.23-1
- update: update to 5.9.23
2023-03-16 15:29:43 +08:00
* Thu Mar 16 2023 liweiganga <liweiganga@uniontech.com> - 5.9.7-4
- feat: fix strip
* Wed Dec 21 2022 liweiganga <liweiganga@uniontech.com> - 5.9.7-3
- enable debuginfo for fix strip
2022-07-28 17:20:39 +08:00
* Wed Jul 27 2022 liweiganga <liweiganga@uniontech.com> - 5.9.7-2
- fix: broken KF5 include path
* Mon Jul 18 2022 konglidong <konglidong@uniontech.com> - 5.9.7-1
- update to 5.9.7
2021-07-12 13:22:51 +08:00
* Mon Jul 12 2021 weidong <weidong@uniontech.com> - 5.6.28-1
- Update 5.6.28
2020-08-28 10:41:32 +08:00
* Fri Aug 28 2020 chenbo pan <panchenbo@uniontech.com> - 5.6.1-4
- fix compile fail
2020-07-30 15:58:55 +08:00
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.6.1-3
- Package init