]>
Commit | Line | Data |
---|---|---|
832e19b4 | 1 | Summary: The Ultimate Packer for eXecutables |
8c355926 | 2 | Summary(pl.UTF-8): Program pakujący pliki wykonywalne |
832e19b4 | 3 | Name: upx |
ef3163f7 | 4 | Version: 2.03 |
6936f15e | 5 | Release: 1 |
832e19b4 | 6 | License: GPL |
7 | Group: Applications | |
fe80e83c | 8 | Source0: http://upx.sourceforge.net/download/%{name}-%{version}-src.tar.gz |
ef3163f7 | 9 | # Source0-md5: a4b1da8a7ab58faf0aad7c67412d5e8e |
fe80e83c | 10 | URL: http://upx.sourceforge.net/ |
83bc65ba | 11 | BuildRequires: glibc-static |
3d19f148 | 12 | BuildRequires: libstdc++-devel |
d7c486e5 | 13 | BuildRequires: ucl-devel >= 1.01 |
832e19b4 | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
ddf92ac4 | 17 | UPX is an advanced executable file compressor. UPX will typically |
18 | reduce the file size of programs by around 50%-70%. Note that UPX | |
19 | needs to decompress the program file before run, what request some | |
20 | space in /tmp. You shouldn't compress suid guid and some others | |
21 | "strategic" for security programs. UPX needs access to the /proc | |
22 | filesystem. | |
832e19b4 | 23 | |
8c355926 JR |
24 | %description -l pl.UTF-8 |
25 | UPX jest zaawansowanym kompresorem plików wykonywalnych. Zazwyczaj | |
26 | zmniejsza wielkość programów o około 50%-70%. UPX dekompresuje program | |
27 | przed uruchomieniem, co wymaga trochę miejsca w /tmp. Nie powinieneś | |
28 | nim kompresować programów mających suid, guid i innych ważnych dla | |
29 | bezpieczeństwa systemu. Do pracy wymaga dostępu do systemu /proc | |
832e19b4 | 30 | |
31 | %prep | |
ef3163f7 | 32 | %setup -q -n %{name}-%{version}-src |
832e19b4 | 33 | |
34 | %build | |
d7c486e5 JB |
35 | %{__make} -C doc |
36 | %{__make} -C src \ | |
e07e5d6b | 37 | CCARCH="" \ |
8b1ac83c | 38 | CFLAGS_O="%{rpmcflags}" \ |
e07e5d6b | 39 | CC="%{__cc}" \ |
40 | CXX="%{__cxx}" \ | |
41 | UCLDIR="%{_prefix}" | |
832e19b4 | 42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} | |
d2e320a7 | 46 | |
832e19b4 | 47 | install doc/upx.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
ef3163f7 | 48 | install src/upx.out $RPM_BUILD_ROOT%{_bindir}/upx |
832e19b4 | 49 | |
832e19b4 | 50 | %clean |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
fe80e83c | 55 | %doc BUGS LICENSE NEWS PROJECTS README README.SRC THANKS |
832e19b4 | 56 | %attr(755,root,root) %{_bindir}/upx |
57 | %{_mandir}/man1/upx.1* |