!31 update package
From: @hanshuang123456 Reviewed-by: @ut-layne-yang Signed-off-by: @ut-layne-yang
This commit is contained in:
commit
e97e56bb74
BIN
deepin-compressor-5.10.11.tar.gz
Normal file
BIN
deepin-compressor-5.10.11.tar.gz
Normal file
Binary file not shown.
@ -1,70 +1,76 @@
|
|||||||
%bcond_with check
|
Name: deepin-compressor
|
||||||
|
Version: 5.10.11
|
||||||
|
Release: 2
|
||||||
|
Summary: A fast and lightweight application for creating and extracting archives
|
||||||
|
License: GPLv3+
|
||||||
|
URL: https://github.com/linuxdeepin/deepin-devicemanager
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
%global with_debug 1
|
BuildRequires: gcc-c++
|
||||||
%if 0%{?with_debug}
|
BuildRequires: cmake
|
||||||
%global debug_package %{nil}
|
BuildRequires: qt5-devel
|
||||||
|
|
||||||
|
BuildRequires: pkgconfig(gsettings-qt)
|
||||||
|
BuildRequires: pkgconfig(libsecret-1)
|
||||||
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
||||||
|
BuildRequires: pkgconfig(disomaster)
|
||||||
|
BuildRequires: pkgconfig(dtkwidget)
|
||||||
|
BuildRequires: pkgconfig(dtkgui)
|
||||||
|
BuildRequires: kf5-kcodecs-devel
|
||||||
|
BuildRequires: kf5-karchive-devel
|
||||||
|
BuildRequires: libzip-devel
|
||||||
|
BuildRequires: libarchive-devel
|
||||||
|
|
||||||
|
%if 0%{?openeuler}
|
||||||
|
BuildRequires: minizip-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: minizip1.2-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
BuildRequires: poppler-cpp-devel
|
||||||
Name: deepin-compressor
|
BuildRequires: gtest-devel
|
||||||
Version: 5.6.9
|
|
||||||
Release: 3
|
|
||||||
Summary: Archive Manager is a fast and lightweight application for creating and extracting archives.
|
|
||||||
License: GPLv3+
|
|
||||||
URL: https://uos-packages.deepin.com/uos/pool/main/d/deepin-devicemanager/
|
|
||||||
Source0: %{name}_%{version}.orig.tar.xz
|
|
||||||
|
|
||||||
BuildRequires: dtkcore-devel
|
|
||||||
BuildRequires: dtkwidget-devel
|
|
||||||
BuildRequires: qt5-qtbase-devel
|
|
||||||
BuildRequires: gsettings-qt-devel
|
|
||||||
BuildRequires: udisks2-qt5-devel
|
|
||||||
BuildRequires: qt5-qtx11extras-devel
|
|
||||||
BuildRequires: qt5-qtmultimedia-devel
|
|
||||||
BuildRequires: kf5-kcodecs
|
|
||||||
BuildRequires: kf5-kcodecs-devel
|
|
||||||
BuildRequires: libarchive-devel
|
|
||||||
BuildRequires: libarchive
|
|
||||||
BuildRequires: kf5-karchive-devel
|
|
||||||
BuildRequires: libzip-devel
|
|
||||||
BuildRequires: qt5-linguist
|
|
||||||
BuildRequires: libsecret-devel
|
|
||||||
BuildRequires: poppler-cpp-devel
|
|
||||||
BuildRequires: poppler-cpp
|
|
||||||
BuildRequires: disomaster-devel
|
|
||||||
BuildRequires: qt5-qtsvg-devel
|
|
||||||
BuildRequires: zlib-devel
|
|
||||||
|
|
||||||
Requires: p7zip
|
Requires: p7zip
|
||||||
|
Requires: lz4-libs
|
||||||
|
Requires: deepin-shortcut-viewer
|
||||||
|
Requires: lzop
|
||||||
|
Recommends: unrar p7zip-plugins
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Archive Manager is a fast and lightweight application for creating and extracting archives.
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup
|
%autosetup
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export PATH=$PATH:/usr/lib64/qt5/bin
|
export PATH=%{_qt5_bindir}:$PATH
|
||||||
mkdir build && cd build
|
sed -i "s|^cmake_minimum_required.*|cmake_minimum_required(VERSION 3.0)|" $(find . -name "CMakeLists.txt")
|
||||||
%{_libdir}/qt5/bin/qmake ..
|
sed -i "s|lib/|%_lib/|" CMakeLists.txt
|
||||||
%{__make}
|
sed -i "s|/usr/lib|%_libdir|" src/source/common/pluginmanager.cpp
|
||||||
|
mkdir build && pushd build
|
||||||
%install
|
%cmake -DCMAKE_BUILD_TYPE=Release ../ -DAPP_VERSION=%{version} -DVERSION=%{version}
|
||||||
pushd %{_builddir}/%{name}-%{version}/build
|
%make_build
|
||||||
%make_install INSTALL_ROOT=%{buildroot}
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install -C build INSTALL_ROOT="%buildroot"
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_bindir}/%{name}
|
|
||||||
%{_datadir}/*
|
|
||||||
/usr/lib/*
|
|
||||||
%license LICENSE
|
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%_libdir/%{name}/plugins/*.so
|
||||||
|
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
||||||
|
%{_datadir}/%{name}/translations/*.qm
|
||||||
|
%{_datadir}/applications/%{name}.desktop
|
||||||
|
%{_datadir}/mime/packages/%{name}.xml
|
||||||
|
%{_datadir}/deepin-manual/manual-assets/application/deepin-compressor/archive-manager/*
|
||||||
|
%{_datadir}/applications/context-menus/*.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 21 2023 hanshuang <hanshuang@uniontech.com> - 5.10.11-2
|
||||||
|
- fix install depend proble
|
||||||
|
|
||||||
* Sat Jun 05 2021 weidong <weidong@uniontech.com> - 5.6.9-3
|
* Sat Jun 05 2021 weidong <weidong@uniontech.com> - 5.6.9-3
|
||||||
- Update Requires.
|
- Update Requires.
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user