Name: upx Version: 3.07 Release: 3%{?dist} Summary: Ultimate Packer for eXecutables Group: Applications/Archiving License: GPLv2+ and Public Domain URL: http://upx.sourceforge.net/ Source0: http://upx.sourceforge.net/download/%{name}-%{version}-src.tar.bz2 #Patch0: upx-3.03-pefile-strictproto.patch Patch1: upx-3.07-use-lzma-sdk-lib.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ucl-devel >= 1.01 BuildRequires: zlib-devel BuildRequires: lzma-sdk-devel %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. %prep %setup -q -n %{name}-%{version}-src sed -i -e 's/ -O2/ /' -e 's/ -Werror//' src/Makefile #%patch0 -p0 %patch1 -p1 -b .use-lib %build export CXXFLAGS="$RPM_OPT_FLAGS" # export, not to make so it won't trump all UPX_LZMA_VERSION=0x465 UPX_LZMADIR=%{_includedir}/lzma465 make %{?_smp_mflags} -C src make -C doc %install rm -rf $RPM_BUILD_ROOT install -Dpm 644 doc/upx.1 $RPM_BUILD_ROOT%{_mandir}/man1/upx.1 install -Dpm 755 src/upx.out $RPM_BUILD_ROOT%{_bindir}/upx %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc BUGS COPYING LICENSE NEWS PROJECTS README README.1ST THANKS TODO doc/*.txt %{_bindir}/upx %{_mandir}/man1/upx.1* %changelog * Tue Aug 09 2011 Tom Callaway - 3.07-3 - use lzma-sdk system library/headers * Mon Feb 07 2011 Fedora Release Engineering - 3.07-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Oct 18 2010 Jon Ciesla - 3.07-1 - New upstream. * Fri Jan 08 2010 Jon Ciesla - 3.04-2 - LZMA fixes by John Reiser (jreiser@bitwagon.com) BZ 501636. * Mon Nov 16 2009 Jon Ciesla - 3.04-1 - 3.04. - Stict prototype patch upstreamed. * Sun Jul 26 2009 Fedora Release Engineering - 3.03-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Feb 27 2009 Jon Ciesla - 3.03-3 - Patch for stricter glibc. * Wed Feb 25 2009 Fedora Release Engineering - 3.03-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu May 08 2008 Jon Ciesla - 3.03-1 - 3.03. * Fri Feb 08 2008 Jon Ciesla - 3.02-2 - GCC 4.3 rebuild. * Mon Dec 31 2007 Jon Ciesla - 3.02-1 - 3.02. * Thu Aug 16 2007 Jon Ciesla - 3.01-2 - License tag correction. * Mon Aug 06 2007 Jon Ciesla - 3.01-1 - 3.01. * Sun May 13 2007 Ville Skyttä - 3.00-1 - 3.00. * Wed Apr 4 2007 Ville Skyttä - 2.03-1 - 2.03. * Wed Aug 30 2006 Ville Skyttä - 2.02-1 - 2.02. * Tue May 16 2006 Ville Skyttä - 2.00-2 - BR: zlib-devel. * Tue May 16 2006 Ville Skyttä - 2.00-1 - 2.00. * Wed Feb 15 2006 Ville Skyttä - 1.25-5 - Rebuild. * Thu May 19 2005 Ville Skyttä - 1.25-4 - Rebuild. * Fri Apr 7 2005 Michael Schwendt - 1.25-3 - rebuilt * Fri Dec 17 2004 Ville Skyttä - 0:1.25-2 - Let rpmbuild take care of stripping binaries. - Honor build environment settings better. * Thu Jul 1 2004 Ville Skyttä - 0:1.25-0.fdr.1 - Update to 1.25. * Mon May 3 2004 Ville Skyttä - 0:1.24-0.fdr.3 - Add workaround for building with UCL 1.02, thanks to upstream. * Sun Nov 16 2003 Ville Skyttä - 0:1.24-0.fdr.2 - Spec cleanup. * Sat Jul 26 2003 Ville Skyttä - 0:1.24-0.fdr.1 - First build.