upx/upx.spec

54 lines
1.6 KiB
RPMSpec
Raw Normal View History

2012-02-01 21:15:15 +04:00
Summary: The Ultimate Packer for eXecutables
Name: upx
2018-10-05 04:23:32 +03:00
Version: 3.95
2025-02-03 09:39:54 +00:00
Release: 2
2014-02-03 19:23:25 +11:00
License: GPLv2+
2012-02-01 21:15:15 +04:00
Group: Archiving/Compression
2018-10-05 04:23:32 +03:00
URL: https://upx.github.io/
Source0: upx-%{version}.tar.gz
Source1: upx-lzma-sdk-%{version}.tar.gz
2014-02-03 19:23:25 +11:00
BuildRequires: ucl-devel
2012-10-19 13:08:45 +00:00
BuildRequires: pkgconfig(zlib)
2012-02-01 21:15:15 +04:00
%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
2014-02-03 19:23:25 +11:00
%files
%doc BUGS LICENSE NEWS PROJECTS README* THANKS doc/upx.doc doc/upx.html doc/*.txt
%{_bindir}/*
%attr(644,root,man) %{_mandir}/man1/*
#----------------------------------------------------------------------------
2012-02-01 21:15:15 +04:00
2014-02-03 19:23:25 +11:00
%prep
2018-10-05 04:23:32 +03:00
%setup -q -n %{name}-%{version}
tar xfz %{SOURCE1} --strip-components=1 -C src/lzma-sdk/
2012-02-01 21:15:15 +04:00
%build
# building the docs
%make -C doc
export UCLDIR=%{_prefix}
2018-10-05 04:23:32 +03:00
export CXX="%__cxx"
export CXXFLAGS="%{optflags}"
make %{?_smp_mflags} -C src
2012-02-01 21:15:15 +04:00
%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/