Summary: The Ultimate Packer for eXecutables
Summary(pl): Program pakuj±cy pliki wykonywalne
Name: upx
-Version: 1.02
-Release: 1
+Version: 1.04
+Release: 2
License: GPL
Group: Applications
Group(de): Applikationen
Group(pl): Aplikacje
Source0: http://wildsau.idv.uni-linz.ac.at/mfx/download/upx/%{name}-%{version}-src.tar.gz
+Patch0: %{name}-opt.patch
URL: http://upx.tsx.org
+BuildRequires: glibc-static
BuildRequires: ucl-devel
-Exclusivearch: %{ix86}
+Exclusivearch: %{ix86}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
+%patch0 -p1
%build
cd doc
-%{__make}
+%{__make} CFLAGS_O="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}"
cd ../src
-%{__make}
+%{__make} CFLAGS_O="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}"
cd ..
%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 $RPM_BUILD_ROOT%{_bindir}
%files
%defattr(644,root,root,755)
+%doc *.gz
%attr(755,root,root) %{_bindir}/upx
%{_mandir}/man1/upx.1*
-%doc {BUGS,LICENSE,NEWS,PROJECTS,README,README.SRC,THANKS}.gz