diff --git a/appweb.spec b/appweb.spec index 1b31739f012eae49e1bb3ddeebaf9facf4330674..6b357008268933b14bb9cb6333bcebe289e4a2cb 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