[packages/upx] up to 4.2.4
atler
atler at pld-linux.org
Sat Dec 14 13:54:44 CET 2024
commit ff34f23f9bd9189578eca2f070db4bdb03dd68e9
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Dec 14 13:02:29 2024 +0100
up to 4.2.4
- updated urls
- all deps are vendored with sources now
upx.spec | 44 +++++++++++++++++---------------------------
1 file changed, 17 insertions(+), 27 deletions(-)
---
diff --git a/upx.spec b/upx.spec
index ef7d1b8..2830fb7 100644
--- a/upx.spec
+++ b/upx.spec
@@ -1,21 +1,18 @@
Summary: The Ultimate Packer for eXecutables
Summary(pl.UTF-8): Program pakujący pliki wykonywalne
Name: upx
-Version: 3.91
+Version: 4.2.4
Release: 1
License: GPL v2+
Group: Development/Tools
-Source0: http://upx.sourceforge.net/download/%{name}-%{version}-src.tar.bz2
-# Source0-md5: c6d0b3ea2ecb28cb8031d59a4b087a43
-Source1: http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2
-# Source1-md5: 29d5ffd03a5a3e51aef6a74e9eafb759
-URL: http://upx.sourceforge.net/
-BuildRequires: libstdc++-devel
-BuildRequires: perl-base
-BuildRequires: perl-tools-pod
-BuildRequires: rpmbuild(macros) >= 1.167
-BuildRequires: ucl-devel >= 1.01
-BuildRequires: zlib-devel
+Source0: https://github.com/upx/upx/releases/download/v%{version}/%{name}-%{version}-src.tar.xz
+# Source0-md5: e00bd2fef36a86e8916a4b61d6807e2b
+URL: https://upx.github.io
+BuildRequires: cmake >= 3.8
+BuildRequires: libstdc++-devel >= 6:8
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -35,31 +32,24 @@ bezpieczeństwa systemu. Do pracy wymaga dostępu do systemu plików
/proc.
%prep
-%setup -q -n %{name}-%{version}-src -a1
+%setup -q -n %{name}-%{version}-src
%build
-%{__make} -C doc
-%{__make} -C src \
- CCARCH="" \
- CC="%{__cc}" \
- CXX="%{__cxx}" \
- CFLAGS_O="%{rpmcflags}" \
- CXXFLAGS="%{rpmcxxflags}" \
- UCLDIR="%{_prefix}" \
- UPX_LZMADIR="../"
+install -d build
+cd build
+%cmake ..
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
-
-install doc/upx.1 $RPM_BUILD_ROOT%{_mandir}/man1
-install src/upx.out $RPM_BUILD_ROOT%{_bindir}/upx
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc BUGS LICENSE NEWS PROJECTS README README.1ST README.SRC THANKS
+%doc doc/BUGS.txt LICENSE NEWS README README.SRC doc/THANKS.txt
%attr(755,root,root) %{_bindir}/upx
%{_mandir}/man1/upx.1*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/upx.git/commitdiff/ff34f23f9bd9189578eca2f070db4bdb03dd68e9
More information about the pld-cvs-commit
mailing list