Replace vendor with openEuler marco
This commit is contained in:
parent
2bbf5c8636
commit
bbddbc091b
17
proftpd.spec
17
proftpd.spec
@ -18,11 +18,9 @@
|
|||||||
|
|
||||||
%global mod_vroot_version 0.9.11
|
%global mod_vroot_version 0.9.11
|
||||||
|
|
||||||
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
|
|
||||||
|
|
||||||
Name: proftpd
|
Name: proftpd
|
||||||
Version: 1.3.8b
|
Version: 1.3.8b
|
||||||
Release: 1
|
Release: 2
|
||||||
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/
|
||||||
@ -61,7 +59,7 @@ BuildRequires: pcre-devel >= 7.0
|
|||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: perl-interpreter
|
BuildRequires: perl-interpreter
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
%if %{?vendor:1}0
|
%if %{?openEuler:1}0
|
||||||
BuildRequires: postgresql-devel
|
BuildRequires: postgresql-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: sed
|
BuildRequires: sed
|
||||||
@ -141,7 +139,7 @@ Requires: openssl-devel
|
|||||||
Requires: pam-devel
|
Requires: pam-devel
|
||||||
Requires: pcre-devel
|
Requires: pcre-devel
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
%if %{?vendor:1}0
|
%if %{?openEuler:1}0
|
||||||
Requires: postgresql-devel
|
Requires: postgresql-devel
|
||||||
%endif
|
%endif
|
||||||
Requires: sqlite-devel
|
Requires: sqlite-devel
|
||||||
@ -168,7 +166,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 %{?vendor:1}0
|
%if %{?openEuler: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}
|
||||||
@ -262,7 +260,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 %{?vendor:1}0
|
%if %{?openEuler: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
|
||||||
@ -511,7 +509,7 @@ fi
|
|||||||
%files mysql
|
%files mysql
|
||||||
%{_libexecdir}/proftpd/mod_sql_mysql.so
|
%{_libexecdir}/proftpd/mod_sql_mysql.so
|
||||||
|
|
||||||
%if %{?vendor:1}0
|
%if %{?openEuler:1}0
|
||||||
%files postgresql
|
%files postgresql
|
||||||
%{_libexecdir}/proftpd/mod_sql_postgres.so
|
%{_libexecdir}/proftpd/mod_sql_postgres.so
|
||||||
%endif
|
%endif
|
||||||
@ -535,6 +533,9 @@ fi
|
|||||||
%{_mandir}/man1/ftpwho.1*
|
%{_mandir}/man1/ftpwho.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 27 2023 wangkai <13474090681@163.com> - 1.3.8b-2
|
||||||
|
- Replace vendor with openEuler marco
|
||||||
|
|
||||||
* Tue Dec 26 2023 wangkai <13474090681@163.com> - 1.3.8b-1
|
* Tue Dec 26 2023 wangkai <13474090681@163.com> - 1.3.8b-1
|
||||||
- Update to 1.3.8b for fix CVE-2023-51713,CVE-2023-48795
|
- Update to 1.3.8b for fix CVE-2023-51713,CVE-2023-48795
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user