%global repo image-editor Name: deepin-image-editor Version: 1.0.44 Release: %autorelease Summary: Public library for deepin-image-viewer and deepin-album License: GPL-3.0-or-later URL: https://github.com/linuxdeepin/image-editor Source0: %{url}/archive/%{version}/%{repo}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: cmake(Qt5Core) BuildRequires: cmake(Qt5Gui) BuildRequires: cmake(Qt5Widgets) BuildRequires: cmake(Qt5Svg) BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5Concurrent) BuildRequires: cmake(Qt5PrintSupport) BuildRequires: cmake(Qt5LinguistTools) BuildRequires: pkgconfig(dtkwidget) BuildRequires: pkgconfig(dtkcore) BuildRequires: pkgconfig(dtkgui) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(libmediainfo) BuildRequires: pkgconfig(dfm-io) BuildRequires: pkgconfig(libffmpegthumbnailer) BuildRequires: libtiff-devel BuildRequires: freeimage-devel %description %{summary}. %package -n libimageviewer Summary: The library of Deepin Image editor %description -n libimageviewer This package contains the libraries for Deepin Image editor. %package -n libimageviewer-devel Summary: Development files for libimageviewer Requires: libimageviewer%{?_isa} = %{version}-%{release} %description -n libimageviewer-devel This package contains development files for libimageviewer. %package -n libimagevisualresult Summary: The library of Deepin Image editor Requires: libimagevisualresult-data%{?_isa} = %{version}-%{release} %description -n libimagevisualresult A Toolkit of libimagevisualresult. %package -n libimagevisualresult-devel Summary: Development files for libimagevisualresult Requires: libimagevisualresult%{?_isa} = %{version}-%{release} %description -n libimagevisualresult-devel This package contains development files for libimagevisualresult. %package -n libimagevisualresult-data Summary: Data files for libimagevisualresult Requires: libimagevisualresult%{?_isa} = %{version}-%{release} %description -n libimagevisualresult-data This package provides dat files for libimagevisualresult. %prep %autosetup -p1 -n %{repo}-%{version} # use Fedora build flags sed -i 's|-O3 -Wl,-O1||; s|-march=loongson3a||' \ libimageviewer/CMakeLists.txt \ libimagevisualresult/CMakeLists.txt %build %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo %cmake_build %install %cmake_install %find_lang libimageviewer --all-name --with-qt %files -n libimageviewer -f libimageviewer.lang %license LICENSE.txt %doc README.md %{_libdir}/libimageviewer.so.0.1* %files -n libimageviewer-devel %{_includedir}/libimageviewer/ %{_libdir}/libimageviewer.so %{_libdir}/pkgconfig/libimageviewer.pc %files -n libimagevisualresult %license LICENSE.txt %doc README.md %{_libdir}/libimagevisualresult.so.0.1* %files -n libimagevisualresult-devel %{_includedir}/libimagevisualresult/ %{_libdir}/libimagevisualresult.so %{_libdir}/pkgconfig/libimagevisualresult.pc %files -n libimagevisualresult-data %dir %{_datadir}/libimagevisualresult %{_datadir}/libimagevisualresult/filter_cube/ %changelog %autochangelog