%define lzma_api_version 912 %define lzma_version 9.12 Name: upx Version: 3.07 Release: 2mamba Summary: An executable packer for several different executable formats Group: Applications/Archiving Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://upx.sourceforge.net Source0: http://upx.sourceforge.net/download/upx-%{version}-src.tar.bz2 Source1: http://downloads.sourceforge.net/project/sevenzip/LZMA%20SDK/%{lzma_version}/lzma%{lzma_api_version}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libstdc++6-devel BuildRequires: libz-devel BuildRequires: libucl-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description UPX is a free, portable, extendable, high-performance executable packer for several different executable formats. It achieves an excellent compression ratio and offers very fast decompression. Your executables suffer no memory overhead or other drawbacks for most of the formats supported, because of in-place decompression. %prep %setup -q -n %{name}-%{version}-src sed -i -e 's/ -O2/ /' -e 's/ -Werror//' src/Makefile mkdir lzma%{lzma_api_version} tar xfj %{SOURCE1} -C lzma%{lzma_api_version} %build export CXXFLAGS="$RPM_OPT_FLAGS" UPX_LZMA_VERSION=0x%{lzma_api_version} UPX_LZMADIR=../lzma%{lzma_api_version} %make -C src make -C doc %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -m0755 -D src/upx.out %{buildroot}%{_bindir}/upx mkdir -p %{buildroot}%{_mandir}/man1 install -pm 644 doc/upx.1 %{buildroot}%{_mandir}/man1/ %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/upx %{_mandir}/man1/upx.1.gz %doc BUGS COPYING LICENSE NEWS README README.1ST README.SRC THANKS TODO %changelog * Thu Sep 23 2010 gil 3.07-2mamba - add lzma support * Tue Sep 14 2010 Automatic Build System 3.07-1mamba - automatic update by autodist * Thu Apr 29 2010 Automatic Build System 3.05-1mamba - automatic update by autodist * Mon Sep 28 2009 Automatic Build System 3.04-1mamba - automatic update by autodist * Thu Jan 03 2008 Silvan Calarco src-1mamba - package created by autospec