]> git.pld-linux.org Git - packages/upx.git/blobdiff - upx.spec
- make spec %%{debug} ready.
[packages/upx.git] / upx.spec
index c6c81e9a560b9582b41fac6bda0b8b6818a1715b..bf1a3597b958a3f2e3149f2ecdd0366a9a9324e9 100644 (file)
--- a/upx.spec
+++ b/upx.spec
@@ -1,16 +1,18 @@
 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
@@ -30,18 +32,20 @@ wa
 
 %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}
 
@@ -55,6 +59,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %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
This page took 0.033984 seconds and 4 git commands to generate.