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