From 1872e73ee13b683fab988875a6a94256a77155f6 Mon Sep 17 00:00:00 2001 From: chengzihan2 Date: Fri, 23 Oct 2020 15:47:40 +0800 Subject: [PATCH] package init --- proftpd.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/proftpd.spec b/proftpd.spec index 40f444d..0a27719 100644 --- a/proftpd.spec +++ b/proftpd.spec @@ -10,6 +10,7 @@ %undefine _strict_symbol_defs_build %global rpmrel 20 %global mod_vroot_version 0.9.5 +%bcond_with enable_test 0 Name: proftpd Version: 1.3.6 @@ -198,12 +199,6 @@ sed -i -e '/killall/s/test.*/systemctl reload proftpd.service/' \ chmod -c -x contrib/xferstats.holger-preiss chmod -c -x include/hanson-tpl.h lib/hanson-tpl.c find doc/ contrib/ -name '*.orig' -delete -sed -i '867,877d' tests/api/netaddr.c -sed -i '408,413d' tests/api/netaddr.c -sed -i '755,760d' tests/api/netacl.c -sed -i '766,771d' tests/api/netacl.c -sed -i '786,791d' tests/api/netacl.c -sed -i '797,802d' tests/api/netacl.c %build SMOD1=mod_sql:mod_sql_passwd:mod_sql_mysql:mod_sql_postgres:mod_sql_sqlite @@ -267,6 +262,7 @@ install -p -m 644 contrib/dist/rpm/proftpd-tmpfs.conf \ %endif %find_lang proftpd +%if %{with enable_test} %check %if 0%{?_with_integrationtests:1} ln ftpdctl tests/ @@ -280,6 +276,7 @@ if ! make -C tests api-tests; then false fi %endif +%endif %post %if %{use_systemd}