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