Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
X11:Deepin:Factory
deepin-image-viewer
deepin-image-viewer.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File deepin-image-viewer.spec of Package deepin-image-viewer
# # spec file for package deepin-image-viewer # # Copyright (c) 2023 SUSE LLC # Copyright (c) 2017-2022 Hillwood Yang <hillwood@opensuse.org> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %if 0%{?is_opensuse} %define distribution openSUSE-Edition %else %define distribution SUSE-Edition %endif Name: deepin-image-viewer Version: 6.0.3 Release: 0 Summary: Deepin Image Viewer License: GPL-3.0-or-later Group: Productivity/Graphics/Viewers URL: https://github.com/linuxdeepin/deepin-image-viewer Source0: https://github.com/linuxdeepin/deepin-image-viewer/archive/%{version}/%{name}-%{version}.tar.gz Source1: %{name}-rpmlintrc Source99: %{name}.appdata.xml # PATCH-FIX-UPSTREAM fix-plugin-path.patch hillwood@opensuse.org Patch1: fix-plugin-path.patch # PATCH-FIX-UPSTREAM fix-library-link.patch hillwood@opensuse.org - Need link freeimage for aarch64 Patch2: fix-library-link.patch BuildRequires: chrpath BuildRequires: deepin-gettext-tools %ifarch ppc ppc64 ppc64le s390 s390x BuildRequires: deepin-desktop-base %else BuildRequires: deepin-manual %endif BuildRequires: dtkcore >= 5.0.0 BuildRequires: fdupes BuildRequires: freeimage-devel BuildRequires: hicolor-icon-theme BuildRequires: libQt5Widgets-private-headers-devel BuildRequires: libimageviewer-devel BuildRequires: libqt5-linguist BuildRequires: update-desktop-files BuildRequires: cmake(DtkDeclarative) BuildRequires: cmake(Qt5LinguistTools) BuildRequires: pkgconfig(Qt5Concurrent) BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5OpenGL) BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5Sql) BuildRequires: pkgconfig(Qt5Svg) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: pkgconfig(Qt5Xml) BuildRequires: pkgconfig(deepin-ocr-plugin-manager) BuildRequires: pkgconfig(dtkwidget) >= 5.0.0 BuildRequires: pkgconfig(gio-qt) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(libexif) BuildRequires: pkgconfig(libraw) BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(udisks2-qt5) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xext) Requires: deepin-ocr-plugin-manager Recommends: %{name}-lang BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Deepin Image Viewer is the Image Viewer for Deepin Desktop Environment(DDE) %lang_package %prep %autosetup -p1 %build %cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DAPP_VERSION=%{version}-%{distribution} \ -DVERSION=%{version}-%{distribution} %cmake_build %install %cmake_install # Install appdata install -d %{buildroot}%{_datadir}/appdata cp %{SOURCE99} %{buildroot}%{_datadir}/appdata/ # Fix version in appdata RELEASE_DATE=$(stat --format="%%y" %{SOURCE0} | grep -Po "\\d{4}-\\d{2}-\\d{2}") sed -i "s/@VERSION@/%{version}/g;s/@DATE@/$RELEASE_DATE/g" \ %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml chrpath --delete %{buildroot}%{_bindir}/%{name} # Fix desktop profile %suse_update_desktop_file -r -G "Deepin Image Viewer" %{name} Graphics 2DGraphics RasterGraphics Viewer # Find translations %find_lang %{name} --with-qt %fdupes %{buildroot} %files %doc README.md README.zh_CN.md %license LICENSE.txt %{_bindir}/%{name} %dir %{_datadir}/%{name} #%{_datadir}/%{name}/icons/ %{_datadir}/deepin-manual/manual-assets/application/%{name} %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_datadir}/applications/%{name}.desktop %dir %{_datadir}/appdata %{_datadir}/appdata/%{name}.appdata.xml %{_libdir}/qt5/plugins/imageformats/libxraw.so* %{_datadir}/dbus-1/services/com.deepin.imageViewer.service %files lang -f %{name}.lang %dir %{_datadir}/%{name}/translations %if %{?suse_version} <=1500 %lang(ast) %{_datadir}/deepin-image-viewer/translations/deepin-image-viewer_ast.qm %endif %{_datadir}/%{name}/translations/deepin-image-viewer.qm %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor