mirror of
https://abf.rosa.ru/djam/upx.git
synced 2025-02-23 09:03:00 +00:00
50 lines
1.6 KiB
RPMSpec
50 lines
1.6 KiB
RPMSpec
Summary: The Ultimate Packer for eXecutables
|
|
Name: upx
|
|
Version: 3.91
|
|
Release: 4
|
|
License: GPLv2+
|
|
Group: Archiving/Compression
|
|
URL: http://upx.sourceforge.net/
|
|
Source0: http://upx.sourceforge.net/download/%{name}-%{version}-src.tar.bz2
|
|
BuildRequires: ucl-devel
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
%description
|
|
UPX is an advanced executable file compressor. UPX will typically
|
|
reduce the file size of programs and DLLs by around 50%-70%, thus
|
|
reducing disk space, network load times, download times and other
|
|
distribution and storage costs.
|
|
|
|
Programs and libraries compressed by UPX are completely self-contained
|
|
and run exactly as before, with no runtime or memory penalty for most
|
|
of the supported formats.
|
|
|
|
UPX supports a number of different executable formats, including
|
|
Win95/98/ME/NT/2000 programs and DLLs, DOS programs, and Linux executables.
|
|
|
|
UPX is rated number one in the well known Archive Comparison Test. Visit
|
|
http://compression.ca/act-exepack.html
|
|
|
|
%files
|
|
%doc BUGS LICENSE NEWS PROJECTS README* THANKS doc/upx.doc doc/upx.html doc/*.txt
|
|
%{_bindir}/*
|
|
%attr(644,root,man) %{_mandir}/man1/*
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}-src
|
|
|
|
%build
|
|
# building the docs
|
|
%make -C doc
|
|
export UCLDIR=%{_prefix}
|
|
%make -C src CXXFLAGS="%{optflags} -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings" CXX="%__cxx"
|
|
|
|
%install
|
|
install -d %{buildroot}%{_bindir}
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
|
|
install -m 755 src/upx.out %{buildroot}%{_bindir}/upx
|
|
install -m 644 doc/upx.1 %{buildroot}%{_mandir}/man1/
|
|
|