Replace openEuler with vendor macro
(cherry picked from commit de2c51025e0196e8ca1c071e72fca5a15cd5ec4e)
This commit is contained in:
parent
cf42f54388
commit
8d1f97b46d
19
proftpd.spec
19
proftpd.spec
@ -13,14 +13,16 @@
|
|||||||
# Do a hardened build where possible
|
# Do a hardened build where possible
|
||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
|
|
||||||
# Dynamic modules contain references to symbols in main dæmon, so we need to disable linker checks for undefined symbols
|
# Dynamic modules contain references to symbols in main daemon, so we need to disable linker checks for undefined symbols
|
||||||
%undefine _strict_symbol_defs_build
|
%undefine _strict_symbol_defs_build
|
||||||
|
|
||||||
%global mod_vroot_version 0.9.9
|
%global mod_vroot_version 0.9.9
|
||||||
|
|
||||||
|
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
|
||||||
|
|
||||||
Name: proftpd
|
Name: proftpd
|
||||||
Version: 1.3.7c
|
Version: 1.3.7c
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Flexible, stable and highly-configurable FTP server
|
Summary: Flexible, stable and highly-configurable FTP server
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.proftpd.org/
|
URL: http://www.proftpd.org/
|
||||||
@ -60,7 +62,7 @@ BuildRequires: pcre-devel >= 7.0
|
|||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: perl-interpreter
|
BuildRequires: perl-interpreter
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
%if %{?openEuler:1}0
|
%if %{?vendor:1}0
|
||||||
BuildRequires: postgresql-devel
|
BuildRequires: postgresql-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: sed
|
BuildRequires: sed
|
||||||
@ -136,7 +138,7 @@ Requires: openssl-devel
|
|||||||
Requires: pam-devel
|
Requires: pam-devel
|
||||||
Requires: pcre-devel
|
Requires: pcre-devel
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
%if %{?openEuler:1}0
|
%if %{?vendor:1}0
|
||||||
Requires: postgresql-devel
|
Requires: postgresql-devel
|
||||||
%endif
|
%endif
|
||||||
Requires: sqlite-devel
|
Requires: sqlite-devel
|
||||||
@ -159,7 +161,7 @@ Requires: %{name} = %{version}-%{release}
|
|||||||
%description mysql
|
%description mysql
|
||||||
Module to add MySQL support to the ProFTPD FTP server.
|
Module to add MySQL support to the ProFTPD FTP server.
|
||||||
|
|
||||||
%if %{?openEuler:1}0
|
%if %{?vendor:1}0
|
||||||
%package postgresql
|
%package postgresql
|
||||||
Summary: Module to add PostgreSQL support to the ProFTPD FTP server
|
Summary: Module to add PostgreSQL support to the ProFTPD FTP server
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -254,7 +256,7 @@ find doc/ contrib/ -name '*.orig' -delete
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# Modules to be built as DSO's (excluding mod_ifsession, always specified last)
|
# Modules to be built as DSO's (excluding mod_ifsession, always specified last)
|
||||||
%if %{?openEuler:1}0
|
%if %{?vendor:1}0
|
||||||
SMOD1=mod_sql:mod_sql_passwd:mod_sql_mysql:mod_sql_postgres:mod_sql_sqlite
|
SMOD1=mod_sql:mod_sql_passwd:mod_sql_mysql:mod_sql_postgres:mod_sql_sqlite
|
||||||
%else
|
%else
|
||||||
SMOD1=mod_sql:mod_sql_passwd:mod_sql_mysql:mod_sql_sqlite
|
SMOD1=mod_sql:mod_sql_passwd:mod_sql_mysql:mod_sql_sqlite
|
||||||
@ -501,7 +503,7 @@ fi
|
|||||||
%files mysql
|
%files mysql
|
||||||
%{_libexecdir}/proftpd/mod_sql_mysql.so
|
%{_libexecdir}/proftpd/mod_sql_mysql.so
|
||||||
|
|
||||||
%if %{?openEuler:1}0
|
%if %{?vendor:1}0
|
||||||
%files postgresql
|
%files postgresql
|
||||||
%{_libexecdir}/proftpd/mod_sql_postgres.so
|
%{_libexecdir}/proftpd/mod_sql_postgres.so
|
||||||
%endif
|
%endif
|
||||||
@ -525,6 +527,9 @@ fi
|
|||||||
%{_mandir}/man1/ftpwho.1*
|
%{_mandir}/man1/ftpwho.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 18 2022 caodongxia <caodongxia@h-partners.com> - 1.3.7c-4
|
||||||
|
- Replace openEuler with vendor macro
|
||||||
|
|
||||||
* Thu Mar 17 2022 gaihuiying <eaglegai@163.com> - 1.3.7c-3
|
* Thu Mar 17 2022 gaihuiying <eaglegai@163.com> - 1.3.7c-3
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user