]> git.pld-linux.org Git - packages/upx.git/blob - upx.spec
Massive attack. We use -O0 instead -O flags while debug enabled.
[packages/upx.git] / upx.spec
1 Summary:        The Ultimate Packer for eXecutables
2 Summary(pl):    Program pakuj±cy pliki wykonywalne
3 Name:           upx
4 Version:        1.04
5 Release:        2
6 License:        GPL
7 Group:          Applications
8 Group(de):      Applikationen
9 Group(pl):      Aplikacje
10 Source0:        http://wildsau.idv.uni-linz.ac.at/mfx/download/upx/%{name}-%{version}-src.tar.gz
11 Patch0:         %{name}-opt.patch
12 URL:            http://upx.tsx.org
13 BuildRequires:  glibc-static
14 BuildRequires:  ucl-devel
15 Exclusivearch:  %{ix86}
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 UPX is an advenced executable file compressor. UPX will typically
20 reduce the file size of programs by around 50%-70%. Note that UPX need
21 decompress program file before run, what request some space on /tmp.
22 You shouldn't compress suid guid and some others "strategy" for
23 security programs. UPX need access to /proc filesystem.
24
25 %description -l pl
26 UPX jest zaawansowanym kompresorem plików wykonywalnych. Zazwyczaj
27 zmniejsza wielko¶æ programów o oko³o 50%-70%. UPX wymaga dekompresji
28 programu przed uruchomieniem, co wymaga trochê miejsca na /tmp. Nie
29 powiniene¶ nim kompresowaæ programów maj±cych suid, guid i innych
30 wa¿nych dla bezpieczeñstwa systemu. Do pracy wymaga dostêpu do systemu
31 /proc
32
33 %prep
34 %setup -q
35 %patch0 -p1
36
37 %build
38
39 cd doc
40 %{__make} CFLAGS_O="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}"
41 cd ../src
42 %{__make} CFLAGS_O="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}"
43 cd ..
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
48
49 install doc/upx.1 $RPM_BUILD_ROOT%{_mandir}/man1
50 install src/upx $RPM_BUILD_ROOT%{_bindir}
51
52 gzip -9nf BUGS LICENSE NEWS PROJECTS README README.SRC THANKS 
53
54 %post   
55 %postun 
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc *.gz
63 %attr(755,root,root) %{_bindir}/upx
64 %{_mandir}/man1/upx.1*
This page took 0.063764 seconds and 4 git commands to generate.