mirror of
https://abf.rosa.ru/djam/peazip.git
synced 2025-02-23 14:02:54 +00:00
69 lines
2.1 KiB
RPMSpec
69 lines
2.1 KiB
RPMSpec
%define debug_package %{nil}
|
|
|
|
Summary: File and archive manager
|
|
Name: peazip
|
|
Version: 8.3.0
|
|
Release: 1
|
|
License: LGPLv3+
|
|
Group: File tools
|
|
Url: http://www.peazip.org
|
|
Source0: https://sourceforge.net/projects/peazip/files/%{version}/%{name}-%{version}.src.zip
|
|
# configure to run in users home appdata
|
|
Source1: altconf.txt
|
|
Source2: rosa-peazip.desktop
|
|
BuildRequires: dos2unix
|
|
BuildRequires: lazarus >= 1.2.0
|
|
BuildRequires: qt5pas-devel
|
|
BuildRequires: qt5-devel
|
|
BuildRequires: icoutils
|
|
Requires: p7zip
|
|
Requires: upx >= 3.09
|
|
# lazaris not build for ARM
|
|
ExcludeArch: %{armx}
|
|
|
|
%description
|
|
PeaZip is a free cross-platform file archiver that provides an unified
|
|
portable GUI for many Open Source technologies like 7-Zip, FreeArc, PAQ,
|
|
UPX...
|
|
|
|
%files
|
|
%doc readme* copying*
|
|
%{_bindir}/*
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
|
%{_datadir}/applications/rosa-peazip.desktop
|
|
%{_datadir}/%{name}
|
|
|
|
#---------------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -qn %{name}-%{version}.src
|
|
%apply_patches
|
|
dos2unix readme*
|
|
|
|
%build
|
|
lazbuild --lazarusdir=%{_libdir}/lazarus --widgetset=qt5 --build-all project_pea.lpi && [ -f pea ]
|
|
lazbuild --lazarusdir=%{_libdir}/lazarus --widgetset=qt5 --build-all project_peach.lpi && [ -f peazip ]
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
rm -rf res/share/icons
|
|
cp -r res %{buildroot}%{_datadir}/%{name}
|
|
cp %{SOURCE1} %{buildroot}%{_datadir}/%{name}/res
|
|
|
|
#install helper apps
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/res/{7z,upx}
|
|
ln -s %{_bindir}/7z %{buildroot}%{_datadir}/%{name}/res/7z
|
|
ln -s %{_bindir}/upx %{buildroot}%{_datadir}/%{name}/res/upx
|
|
|
|
install pea %{buildroot}%{_datadir}/%{name}/res
|
|
ln -s %{_datadir}/%{name}/res/pea %{buildroot}%{_bindir}/pea
|
|
install %{name} %{buildroot}%{_datadir}/%{name}
|
|
ln -s %{_datadir}/%{name}/%{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
cp %{SOURCE2} %{buildroot}%{_datadir}/applications/
|
|
|
|
mkdir -p %{buildroot}%{_iconsdir}/hicolor/256x256/apps
|
|
icotool -x -i 1 -o %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png %{name}.ico
|
|
rm -rf %{buildroot}%{_datadir}/%{name}/res/share/icons
|