]> git.pld-linux.org Git - packages/upx.git/blob - upx.spec
- updated to 3.04
[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.04
5 Release:        1
6 License:        GPL v2+
7 Group:          Development/Tools
8 Source0:        http://upx.sourceforge.net/download/%{name}-%{version}-src.tar.bz2
9 # Source0-md5:  68d662b1f831335460f9bfdbf632c6ce
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:  rpmbuild(macros) >= 1.167
15 BuildRequires:  ucl-devel >= 1.01
16 BuildRequires:  zlib-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
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.
26
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
33
34 %prep
35 %setup -q -n %{name}-%{version}-src -a1
36
37 %build
38 %{__make} -C doc
39 %{__make} -C src \
40         CCARCH="" \
41         CC="%{__cc}" \
42         CXX="%{__cxx}" \
43         CFLAGS_O="%{rpmcflags}" \
44         CXXFLAGS="%{rpmcxxflags}" \
45         UCLDIR="%{_prefix}" \
46         UPX_LZMADIR="../"
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.out $RPM_BUILD_ROOT%{_bindir}/upx
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.1ST README.SRC THANKS
61 %attr(755,root,root) %{_bindir}/upx
62 %{_mandir}/man1/upx.1*
This page took 0.063344 seconds and 3 git commands to generate.