]> git.pld-linux.org Git - packages/upx.git/blob - upx.spec
- cosmetics
[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.24
5 Release:        1
6 License:        GPL
7 Group:          Applications
8 Source0:        http://upx.sourceforge.net/download/%{name}-%{version}-src.tar.gz
9 # Source0-md5:  c7addf22766bdc9878e0a191855eec16
10 Patch0:         %{name}-opt.patch
11 Patch1:         %{name}-ucl.patch
12 URL:            http://upx.sourceforge.net/
13 BuildRequires:  glibc-static
14 BuildRequires:  ucl-devel >= 1.01
15 BuildRequires:  libstdc++-devel
16 Exclusivearch:  %{ix86}
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 UPX is an advenced executable file compressor. UPX will typically
21 reduce the file size of programs by around 50%-70%. Note that UPX need
22 decompress program file before run, what request some space on /tmp.
23 You shouldn't compress suid guid and some others "strategy" for
24 security programs. UPX need access to /proc filesystem.
25
26 %description -l pl
27 UPX jest zaawansowanym kompresorem plików wykonywalnych. Zazwyczaj
28 zmniejsza wielko¶æ programów o oko³o 50%-70%. UPX wymaga dekompresji
29 programu przed uruchomieniem, co wymaga trochê miejsca na /tmp. Nie
30 powiniene¶ nim kompresowaæ programów maj±cych suid, guid i innych
31 wa¿nych dla bezpieczeñstwa systemu. Do pracy wymaga dostêpu do systemu
32 /proc
33
34 %prep
35 %setup -q
36 %patch0 -p1
37 %patch1 -p1
38
39 %build
40 cd doc
41 %{__make} CFLAGS_O="%{rpmcflags}"
42 cd ../src
43 %{__make} \
44         CFLAGS_O="%{rpmcflags}" \
45         CC="%{__cxx}"
46 cd ..
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
51
52 install doc/upx.1 $RPM_BUILD_ROOT%{_mandir}/man1
53 install src/upx $RPM_BUILD_ROOT%{_bindir}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc BUGS LICENSE NEWS PROJECTS README README.SRC THANKS
61 %attr(755,root,root) %{_bindir}/upx
62 %{_mandir}/man1/upx.1*
This page took 0.065358 seconds and 4 git commands to generate.