deepin-compressor/deepin-compressor.spec

122 lines
3.5 KiB
RPMSpec
Raw Normal View History

2023-04-06 10:35:50 +08:00
%define specrelease 1
2020-07-14 10:10:39 +08:00
Name: deepin-compressor
2023-04-06 10:35:50 +08:00
Version: 5.10.11
Release: %{specrelease}
2021-07-09 16:48:24 +08:00
Summary: A fast and lightweight application for creating and extracting archives
2020-07-14 10:10:39 +08:00
License: GPLv3+
2021-07-09 16:48:24 +08:00
URL: https://github.com/linuxdeepin/deepin-devicemanager
Source0: %{name}-%{version}.tar.gz
2023-03-14 10:34:30 +08:00
Patch0: 0001-feat-enable-debuginfo.patch
2023-04-06 10:35:50 +08:00
Patch1: 0002-feat-fix-build-error.patch
2021-07-09 16:48:24 +08:00
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: qt5-devel
2020-07-14 10:10:39 +08:00
2021-07-09 16:48:24 +08:00
BuildRequires: pkgconfig(gsettings-qt)
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(disomaster)
2022-02-11 14:35:33 +08:00
BuildRequires: dtkwidget-devel
BuildRequires: dtkcore-devel
2021-07-09 16:48:24 +08:00
BuildRequires: pkgconfig(dtkgui)
BuildRequires: pkgconfig(udisks2-qt5)
BuildRequires: kf5-kcodecs-devel
BuildRequires: kf5-karchive-devel
BuildRequires: libzip-devel
BuildRequires: libarchive-devel
BuildRequires: minizip-devel
BuildRequires: poppler-cpp-devel
BuildRequires: gtest-devel gmock
2023-03-14 10:34:30 +08:00
BuildRequires: chrpath
2021-07-09 16:48:24 +08:00
Requires: p7zip
Requires: lz4-libs
Requires: deepin-shortcut-viewer
Requires: lzop
Recommends: unrar p7zip-plugins
2020-07-14 10:10:39 +08:00
%description
2021-07-09 16:48:24 +08:00
%{summary}.
2020-07-14 10:10:39 +08:00
%prep
2023-03-14 10:34:30 +08:00
%autosetup -p1
2020-07-14 10:10:39 +08:00
%build
2021-07-09 16:48:24 +08:00
export PATH=%{_qt5_bindir}:$PATH
sed -i "s|^cmake_minimum_required.*|cmake_minimum_required(VERSION 3.0)|" $(find . -name "CMakeLists.txt")
sed -i "s|lib/|%_lib/|" CMakeLists.txt
sed -i "s|/usr/lib|%_libdir|" src/source/common/pluginmanager.cpp
mkdir build && pushd build
%cmake -DCMAKE_BUILD_TYPE=Release ../ -DAPP_VERSION=%{version} -DVERSION=%{version}
%make_build
2020-07-14 10:10:39 +08:00
popd
2021-07-09 16:48:24 +08:00
%install
%make_install -C build INSTALL_ROOT="%buildroot"
2020-07-14 10:10:39 +08:00
2023-03-14 10:34:30 +08:00
# remove rpath info
for file in $(find %{buildroot}/ -executable -type f -exec file {} ';' | grep "\<ELF\>" | awk -F ':' '{print $1}')
do
if [ ! -u "$file" ]; then
if [ -w $file ]; then
chrpath -d $file
fi
fi
done
# add rpath path in ld.so.conf.d
mkdir -p %{buildroot}/%{_sysconfdir}/ld.so.conf.d
echo "%{_bindir}/%{name}" > %{buildroot}/%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
echo "%{_libdir}/%{name}/plugins/" > %{buildroot}/%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
2020-07-14 10:10:39 +08:00
%files
%doc README.md
2021-07-09 16:48:24 +08:00
%license LICENSE
%{_bindir}/%{name}
%_libdir/%{name}/plugins/*.so
# %{_datadir}/deepin/dde-file-manager/oem-menuextensions/*.desktop
2021-07-09 16:48:24 +08:00
%{_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
2023-03-14 10:34:30 +08:00
%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
2020-07-14 10:10:39 +08:00
%changelog
2023-04-06 10:35:50 +08:00
* Thu Mar 30 2023 liweiganga <liweiganga@uniontech.com> - 5.10.11-1
- update: update to 5.10.11
2023-03-14 10:34:30 +08:00
* Tue Mar 14 2023 liweigang <liweiganga@uniontech.com> - 5.10.5-3
- feat: remove rpath
* Fri Aug 05 2022 liweigang <liweiganga@uniontech.com> - 5.10.5-2
- fix nothing install requires
* Mon Jul 18 2022 konglidong <konglidong@uniontech.com> - 5.10.5-1
- update to 5.10.5
2022-02-11 14:35:33 +08:00
* Fri Feb 11 2022 liweigang <liweiganga@uniontech.com> - 5.8.0.14-2
- fix nothing install requires
* Fri Jul 09 2021 weidong <weidong@uniontech.com> - 5.8.0.14-1
2021-07-09 16:48:24 +08:00
- Update 5.8.0.14
* Sat Jun 05 2021 weidong <weidong@uniontech.com> - 5.6.9-3
- Update Requires.
2020-09-01 08:50:28 +08:00
* Tue Sep 1 2020 chenbo pan <panchenbo@uniontech.com> - 5.6.9-2
- fix compile fail
2020-07-30 15:53:07 +08:00
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.6.9-1
- Package init
2023-04-06 10:35:50 +08:00