automatic version update by autodist [release 4.1.0-1mamba;Sun Sep 03 2023]

This commit is contained in:
Automatic Build System 2024-01-05 18:50:36 +01:00
parent 575988c8ca
commit 10807ae3cf

View File

@ -1,48 +1,37 @@
%define lzma_api_version 912
%define lzma_version 9.12
Name: upx
Version: 3.96
Version: 4.1.0
Release: 1mamba
Summary: An executable packer for several different executable formats
Group: Applications/Archiving
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://upx.sourceforge.net
Source0: http://upx.sourceforge.net/download/upx-%{version}-src.tar.xz
Source1: http://downloads.sourceforge.net/project/sevenzip/LZMA%20SDK/%{lzma_version}/lzma%{lzma_api_version}.tar.bz2
URL: https://github.com/upx/upx
Source0: https://github.com/upx/upx.git/v%{version}/upx-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
BuildRequires: libucl-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
UPX is a free, portable, extendable, high-performance executable packer for several different executable formats. It achieves an excellent compression ratio and offers very fast decompression. Your executables suffer no memory overhead or other drawbacks for most of the formats supported, because of in-place decompression.
%prep
%setup -q -n %{name}-%{version}-src
%debug_package
sed -i -e 's/ -O2/ /' -e 's/ -Werror//' src/Makefile
mkdir lzma%{lzma_api_version}
tar xfj %{SOURCE1} -C lzma%{lzma_api_version}
%prep
%setup -q
%build
export CXXFLAGS="$RPM_OPT_FLAGS"
export CXX=g++
UPX_LZMA_VERSION=0x%{lzma_api_version} UPX_LZMADIR=../lzma%{lzma_api_version} %make -C src CHECK_WHITESPACE=
make -C doc CHECK_WHITESPACE=
%cmake
%cmake_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -m0755 -D src/upx.out %{buildroot}%{_bindir}/upx
mkdir -p %{buildroot}%{_mandir}/man1
install -pm 644 doc/upx.1 %{buildroot}%{_mandir}/man1/
%cmake_install
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -51,10 +40,18 @@ install -pm 644 doc/upx.1 %{buildroot}%{_mandir}/man1/
%defattr(-,root,root)
%{_bindir}/upx
%{_mandir}/man1/upx.1*
%dir %{_docdir}/upx
%{_docdir}/upx/*
%doc COPYING LICENSE
#%doc BUGS NEWS README README.1ST README.SRC THANKS TODO
%changelog
* Sun Sep 03 2023 Automatic Build System <autodist@mambasoft.it> 4.1.0-1mamba
- automatic version update by autodist
* Sat Nov 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.1-1mamba
- update to 4.0.1
* Fri Feb 07 2020 Automatic Build System <autodist@mambasoft.it> 3.96-1mamba
- automatic version update by autodist