Skip to content

Commit 108ce6b

Browse files
committed
Removed arch exclusion in pki.spec
The pki.spec has been modified to remove unnecessary arch exclusion and for some other cleanups.
1 parent df237f6 commit 108ce6b

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

pki.spec

+4-17
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ URL: http://www.dogtagpki.org/
77
# The entire source code is GPLv2 except for 'pki-tps' which is LGPLv2
88
License: GPLv2 and LGPLv2
99

10-
%if 0%{?rhel} && 0%{?rhel} <= 7
11-
# no arch exclusion
12-
%else
13-
# Exclude 's390' and 's390x' architectures since
14-
# 'esc' does not exist on these two platforms
15-
ExcludeArch: s390 s390x
16-
%endif
17-
1810
Version: 10.6.8
1911
Release: 1%{?_timestamp}%{?_commit_id}%{?dist}
2012
# global _phase -a1
@@ -248,7 +240,7 @@ BuildRequires: resteasy-jackson2-provider >= 3.0.17-1
248240
%endif
249241

250242
%if 0%{?with_python2}
251-
%if 0%{?rhel} && 0%{?rhel} <= 7
243+
%if 0%{?rhel}
252244
# no pylint
253245
%else
254246
BuildRequires: pylint
@@ -263,7 +255,7 @@ BuildRequires: python2-pyflakes >= 1.2.3
263255
%endif # with_python2
264256

265257
%if 0%{?with_python3}
266-
%if 0%{?rhel} && 0%{?rhel} <= 7
258+
%if 0%{?rhel}
267259
# no pylint
268260
%else
269261
BuildRequires: python3-pylint
@@ -890,12 +882,6 @@ Requires: pki-console-theme >= %{version}
890882
%description -n pki-console
891883
The PKI Console is a Java application used to administer PKI server.
892884

893-
For deployment purposes, a PKI Console requires ONE AND ONLY ONE of the
894-
following "Mutually-Exclusive" PKI Theme packages:
895-
896-
* dogtag-pki-console-theme (Dogtag Certificate System deployments)
897-
* redhat-pki-console-theme (Red Hat Certificate System deployments)
898-
899885
%endif # with console
900886

901887
%if %{with theme}
@@ -965,6 +951,7 @@ cd build
965951
%if 0%{?with_python3_default}
966952
-DWITH_PYTHON3_DEFAULT:BOOL=ON \
967953
%endif
954+
-DPYTHON_EXECUTABLE=%{__python3} \
968955
-DWITH_TEST:BOOL=%{?with_test:ON}%{!?with_test:OFF} \
969956
%if ! %{with server} && ! %{with ca} && ! %{with kra} && ! %{with ocsp} && ! %{with tks} && ! %{with tps}
970957
-DWITH_SERVER:BOOL=OFF \
@@ -1090,7 +1077,7 @@ fi
10901077
rm -f %{buildroot}%{_datadir}/pki/server/lib/slf4j-jdk14.jar
10911078
%endif
10921079

1093-
%if 0%{?rhel} && 0%{?rhel} <= 7
1080+
%if 0%{?rhel}
10941081
# no pylint
10951082
%else
10961083

0 commit comments

Comments
 (0)