deepin-image-viewer/deepin-image-viewer.spec

75 lines
1.9 KiB
RPMSpec
Raw Normal View History

2020-07-14 10:39:51 +08:00
Name: deepin-image-viewer
2021-07-20 14:34:19 +08:00
Version: 5.6.3.49
Release: 2
2020-07-14 10:39:51 +08:00
Summary: Deepin Image Viewer
License: GPLv3
URL: https://github.com/linuxdeepin/deepin-image-viewer
2021-07-20 14:34:19 +08:00
Source0: %{name}_%{version}.tar.gz
Patch0: modify-QPainterPath-error.patch
2020-07-14 10:39:51 +08:00
BuildRequires: gcc-c++
2021-07-20 14:34:19 +08:00
BuildRequires: qt5-devel
2020-07-14 10:39:51 +08:00
BuildRequires: freeimage-devel
2021-07-20 14:34:19 +08:00
BuildRequires: dtkcore-devel
BuildRequires: dtkwidget-devel
BuildRequires: dtkgui-devel
2020-07-14 10:39:51 +08:00
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(libraw)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(libstartup-notification-1.0)
BuildRequires: pkgconfig(xcb-util)
2021-07-20 14:34:19 +08:00
BuildRequires: pkgconfig(xext)
BuildRequires: udisks2-qt5-devel
BuildRequires: libgio-qt libgio-qt-devel
2020-07-14 10:39:51 +08:00
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
BuildRequires: qt5-qtbase-private-devel
2020-07-14 10:39:51 +08:00
Requires: hicolor-icon-theme
%description
%{summary}.
%prep
%setup -q
%patch0 -p1
2020-07-14 10:39:51 +08:00
%build
2021-07-20 14:34:19 +08:00
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
export PATH=%{_qt5_bindir}:$PATH
mkdir build && pushd build
%qmake_qt5 PREFIX=%{_prefix} VERSION=%{version} DEFINES+="VERSION=%{version}" ../
2020-07-14 10:39:51 +08:00
%make_build
2021-07-20 14:34:19 +08:00
popd
2020-07-14 10:39:51 +08:00
%install
2021-07-20 14:34:19 +08:00
%make_install -C build INSTALL_ROOT="%buildroot"
2020-07-14 10:39:51 +08:00
%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_qt5_plugindir}/imageformats/*.so
%{_datadir}/dbus-1/services/*.service
%{_datadir}/%{name}/
%{_datadir}/dman/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%changelog
* Mon Feb 07 2022 liweigang <liweiganga@uniontech.com> - 5.6.3.49-2
- fix build error
* Mon Jul 12 2021 weidong <weidong@uniontech.com> - 5.6.3.49-1
2021-07-20 14:34:19 +08:00
- Update 5.6.3.49
2020-09-04 12:06:41 +08:00
* Fri Sep 4 2020 chenbo pan <panchenbo@uniontech.com> - 1.3.17-3
- fix compile fail
2020-08-28 10:46:11 +08:00
* Fri Aug 28 2020 chenbo pan <panchenbo@uniontech.com> - 1.3.17-2
- fix compile fail
2020-07-30 16:06:06 +08:00
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.3.17-1
- Package init