%define debug_package %{nil} Summary: File and archive manager Name: peazip Version: 5.2.1 Release: 2 License: LGPLv3+ Group: File tools Url: http://peazip.sourceforge.net/peazip-linux.html Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.src.zip # configure to run in users home appdata Source1: altconf.txt BuildRequires: icoutils BuildRequires: lazarus >= 1.0.8 BuildRequires: pkgconfig(gtk+-2.0) Requires: p7zip Requires: upx >= 3.09 %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.txt %{_bindir}/* %{_datadir}/icons/hicolor/*/apps/*.png %{_datadir}/applications/*.desktop %{_libdir}/%{name} #---------------------------------------------------------------------------- %prep %setup -q -n %{name}-%{version}.src chmod +w res/lang %build lazbuild -B project_peach.lpi project_pea.lpi project_gwrap.lpi %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_libdir}/%{name} rm -rf res/icons cp -r res %{buildroot}%{_libdir}/%{name} cp %{SOURCE1} %{buildroot}%{_libdir}/%{name}/res #install helper apps mkdir -p %{buildroot}%{_libdir}/%{name}/res/{7z,upx} ln -s %{_bindir}/7z %{buildroot}%{_libdir}/%{name}/res/7z ln -s %{_bindir}/upx %{buildroot}%{_libdir}/%{name}/res/upx install pea %{buildroot}%{_libdir}/%{name}/res ln -s %{_libdir}/%{name}/res/pea %{buildroot}%{_bindir}/pea install %{name} %{buildroot}%{_libdir}/%{name} ln -s %{_libdir}/%{name}/%{name} %{buildroot}%{_bindir}/%{name} install pealauncher %{buildroot}%{_libdir}/%{name}/res ln -s %{_libdir}/%{name}/res/pealauncher %{buildroot}%{_bindir}/pealauncher mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <