Name: peazip Version: 5.8.1 Release: alt1 Summary: A GTK+2 only archive manager Group: File tools License: LGPLv3 Url: http://peazip.org Packager: Alex Cracken Source: https://github.com/giorgiotani/PeaZip/releases/download/%version/%name-%version.src.zip Source1: altconf.txt Source2: %name.desktop Patch: peazip-5.8.1-alt-path.patch %define srcname %name-%version.src Requires: glib2 p7zip arc upx zpaq BuildRequires: lazarus glib2-devel unzip %description Free archiver and file compressor Extract RAR 7Z CAB TAR ZIP files Extract 7Z CAB ISO RAR TAR ZIP archive files Free file archiver and data compression software Over 150 file formats supported for extraction %package kde3 Summary: Konqueror extension for the PeaZip archiver Group: File tools BuildArch: noarch Requires: %name = %version %description kde3 This package provides integration with the PeaZip for the Konqueror file manager. %package kde4 Summary: KDE4 extension for the PeaZip archiver Group: File tools BuildArch: noarch Requires: %name = %version %description kde4 This package provides integration with the PeaZip for the Dolphin file manager. %prep %setup -n %srcname %patch0 -p1 %build lazbuild -qB project_pea.lpi lazbuild -qB project_gwrap.lpi lazbuild -qB project_peach.lpi %install install -m 755 -d . %buildroot%_datadir/peazip install -m 755 -d res %buildroot%_datadir/peazip/res install -m 755 -d res/icons %buildroot%_datadir/peazip/res/icons install -m 755 -pD res/icons/PeaZip.ico %buildroot%_datadir/peazip/res/icons/PeaZip.ico install -m 755 -d res/lang %buildroot%_datadir/peazip/res/lang install -m 755 -pD res/lang/* %buildroot%_datadir/peazip/res/lang install -m 755 -d res/themes %buildroot%_datadir/peazip/res/themes install -m 755 -d res/themes/nographic-embedded %buildroot%_datadir/peazip/res/themes/nographic-embedded install -m 755 -pD res/themes/nographic-embedded/* %buildroot%_datadir/peazip/res/themes/nographic-embedded install -m 755 -d res/themes/seven-embedded %buildroot%_datadir/peazip/res/themes/seven-embedded install -m 755 -pD res/themes/seven-embedded/* %buildroot%_datadir/peazip/res/themes/seven-embedded install -m 755 -pD res/themes/firecrystal.theme.7z %buildroot%_datadir/peazip/res/themes/firecrystal.theme.7z install -m 755 -pD res/themes/seven.theme.7z %buildroot%_datadir/peazip/res/themes/seven.theme.7z #install exec files install -m 755 -pD peazip %buildroot%_bindir/peazip install -m 755 -pD pea %buildroot%_bindir/pea install -m 755 -pD pealauncher %buildroot%_bindir/pealauncher #konqueror integration install -m 755 -d FreeDesktop_integration/kde3-konqueror/opt/kde3/share/apps/konqueror/servicemenus %buildroot%_datadir/kde/share/apps/konqueror/servicemenus install -m 755 -pD FreeDesktop_integration/kde3-konqueror/opt/kde3/share/apps/konqueror/servicemenus/* %buildroot%_datadir/kde/share/apps/konqueror/servicemenus #dolphin integration install -m 755 -d FreeDesktop_integration/kde4-dolphin/usr/share/kde4/services/ServiceMenus %buildroot%_datadir/kde4/services/ServiceMenus install -m 755 -pD FreeDesktop_integration/kde4-dolphin/usr/share/kde4/services/ServiceMenus/* %buildroot%_datadir/kde4/services/ServiceMenus #make symbol link on p7zip mkdir %buildroot%_datadir/peazip/res/7z ln -s %_bindir/7z %buildroot%_datadir/peazip/res/7z/7z #make symbol link on arc mkdir %buildroot%_datadir/peazip/res/arc ln -s %_bindir/arc %buildroot%_datadir/peazip/res/arc/arc #make symbol link on upx mkdir %buildroot%_datadir/peazip/res/upx ln -s %_bindir/upx %buildroot%_datadir/peazip/res/upx/upx #make symbol link on zpaq mkdir %buildroot%_datadir/peazip/res/zpaq ln -s %_bindir/zpaq %buildroot%_datadir/peazip/res/zpaq/zpaq #install alternate config on homedir install -m 755 -pD %SOURCE1 %buildroot%_datadir/peazip/res/altconf.txt #install desktop file install -pD -m 644 %SOURCE2 %buildroot%_datadir/applications/%name.desktop %files %_datadir/peazip/* %_bindir/* %_datadir/applications/*.desktop %files kde3 %_datadir/kde/share/apps/konqueror/servicemenus/* %files kde4 %_datadir/kde4/services/ServiceMenus/* %changelog * Fri Oct 23 2015 Alex Cracken 5.8.1-alt1 - initial build for ALT Linux Sisyphus