From a280bb6eb825f7c7131759a83d5b8bf16b79e955 Mon Sep 17 00:00:00 2001 From: seuzw <930zhaowei@163.com> Date: Wed, 2 Dec 2020 20:11:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=20rpm=20package=20no=20file=20problem=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Drpm=E5=8C=85=E4=B8=AD=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=89=93=E5=8C=85=E6=96=87=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appweb.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/appweb.spec b/appweb.spec index 1b31739..6b35700 100755 --- a/appweb.spec +++ b/appweb.spec @@ -1,6 +1,6 @@ Name: appweb Version: 8.2.1 -Release: 1 +Release: 2 Summary: Appweb Community Edition is a fast embedded web server for securely hosting embedded web management application. License: GPL open source license URL: https://www.embedthis.com/licensing/index.html @@ -21,7 +21,11 @@ CFLAGS="$RPM_OPT_FLAGS -DVERSION=appweb-%{version}-%{release}" %{__make} %{_smp_mflags} --no-print-directory -f projects/appweb-linux-default.mk all %install +%define ARCH $(uname -m | sed 's/i.86/x86/;s/x86_64/x64/;s/arm.*/arm/;s/mips.*/mips/') %{__make} --no-print-directory -f projects/appweb-linux-default.mk install +rm -rf ./build/linux-%{ARCH}-default/obj +find ./build/linux-%{ARCH}-default/ -name "*.a" | xargs rm +cp -r ./build/linux-%{ARCH}-default/usr/local/* %{buildroot} %pre %preun @@ -31,8 +35,15 @@ CFLAGS="$RPM_OPT_FLAGS -DVERSION=appweb-%{version}-%{release}" %check %files +/bin/* +/include/* +/lib/* +/share/* %changelog +* Mon Nov 23 2020 seuzw <930zhaowei@163.com> - 8.2.1-2 +- fix rpm package no file problem + * Mon Nov 23 2020 StrongTiger_001 - 8.2.1-1 - Bump version to 8.2.1 -- Gitee