diff --git a/postgresql13.spec b/postgresql13.spec index 37d65b0..d0f194d 100644 --- a/postgresql13.spec +++ b/postgresql13.spec @@ -72,7 +72,7 @@ BuildRequires: tcl-devel BuildRequires: timezone BuildRequires: zlib-devel %bcond_without selinux -%if %pgmajor > 10 || 0%{?suse_version} <= 1500 +%if 0%{?suse_version} <= 1500 %bcond_without icu %else %bcond_with icu @@ -154,7 +154,9 @@ Patch4: postgresql-plperl-keep-rpath.patch Patch6: postgresql-testsuite-int8.sql.patch Patch8: postgresql-testsuite-keep-results-file.patch Patch9: postgresql-var-run-socket.patch +%if %{with llvm} Patch10: postgresql-llvm-optional.patch +%endif URL: https://www.postgresql.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: postgresql = %version-%release @@ -461,7 +463,9 @@ touch -r configure tmp %patch6 %patch8 -p1 %patch9 +%if %{with llvm} %patch10 +%endif touch -r tmp configure rm tmp find src/test/ -name '*.orig' -delete