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