Summary: The Ultimate Packer for eXecutables Summary(pl.UTF-8): Program pakujący pliki wykonywalne Name: upx Version: 3.91 Release: 1 License: GPL v2+ Group: Development/Tools Source0: http://upx.sourceforge.net/download/%{name}-%{version}-src.tar.bz2 # Source0-md5: c6d0b3ea2ecb28cb8031d59a4b087a43 Source1: http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2 # Source1-md5: 29d5ffd03a5a3e51aef6a74e9eafb759 URL: http://upx.sourceforge.net/ BuildRequires: libstdc++-devel BuildRequires: perl-base BuildRequires: perl-tools-pod BuildRequires: rpmbuild(macros) >= 1.167 BuildRequires: ucl-devel >= 1.01 BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description UPX is an advanced executable file compressor. UPX will typically reduce the file size of programs by around 50%-70%. Note that UPX needs to decompress the program file before run, what request some space in /tmp. You shouldn't compress suid guid and some others "strategic" for security programs. UPX needs access to the /proc filesystem. %description -l pl.UTF-8 UPX jest zaawansowanym kompresorem plików wykonywalnych. Zazwyczaj zmniejsza wielkość programów o około 50%-70%. UPX dekompresuje program przed uruchomieniem, co wymaga trochę miejsca w /tmp. Nie należy nim kompresować programów mających suid, guid oraz innych ważnych dla bezpieczeństwa systemu. Do pracy wymaga dostępu do systemu plików /proc. %prep %setup -q -n %{name}-%{version}-src -a1 %build %{__make} -C doc %{__make} -C src \ CCARCH="" \ CC="%{__cc}" \ CXX="%{__cxx}" \ CFLAGS_O="%{rpmcflags}" \ CXXFLAGS="%{rpmcxxflags}" \ UCLDIR="%{_prefix}" \ UPX_LZMADIR="../" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} install doc/upx.1 $RPM_BUILD_ROOT%{_mandir}/man1 install src/upx.out $RPM_BUILD_ROOT%{_bindir}/upx %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc BUGS LICENSE NEWS PROJECTS README README.1ST README.SRC THANKS %attr(755,root,root) %{_bindir}/upx %{_mandir}/man1/upx.1*