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