diff options
author | Nico Kadel-Garcia <nkadel@gmail.com> | 2019-10-12 17:51:01 -0400 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-02-22 11:48:05 +1100 |
commit | b2491c289dd1b557a18a2aca04eeff5c157fc5ef (patch) | |
tree | 759c3873c4cc9294731a6a227970411273f86114 /contrib | |
parent | b18dcf6cca7c7aba1cc22e668e04492090ef0255 (diff) |
Switch %define to %global for redhat/openssh.spec
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/redhat/openssh.spec | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec index 54dc39610..c340cd4fb 100644 --- a/contrib/redhat/openssh.spec +++ b/contrib/redhat/openssh.spec | |||
@@ -1,78 +1,78 @@ | |||
1 | %define ver 8.2p1 | 1 | %global ver 8.2p1 |
2 | %define rel 1%{?dist} | 2 | %global rel 1%{?dist} |
3 | 3 | ||
4 | # OpenSSH privilege separation requires a user & group ID | 4 | # OpenSSH privilege separation requires a user & group ID |
5 | %define sshd_uid 74 | 5 | %global sshd_uid 74 |
6 | %define sshd_gid 74 | 6 | %global sshd_gid 74 |
7 | 7 | ||
8 | # Version of ssh-askpass | 8 | # Version of ssh-askpass |
9 | %define aversion 1.2.4.1 | 9 | %global aversion 1.2.4.1 |
10 | 10 | ||
11 | # Do we want to disable building of x11-askpass? (1=yes 0=no) | 11 | # Do we want to disable building of x11-askpass? (1=yes 0=no) |
12 | %define no_x11_askpass 0 | 12 | %global no_x11_askpass 0 |
13 | 13 | ||
14 | # Do we want to disable building of gnome-askpass? (1=yes 0=no) | 14 | # Do we want to disable building of gnome-askpass? (1=yes 0=no) |
15 | %define no_gnome_askpass 0 | 15 | %global no_gnome_askpass 0 |
16 | 16 | ||
17 | # Do we want to link against a static libcrypto? (1=yes 0=no) | 17 | # Do we want to link against a static libcrypto? (1=yes 0=no) |
18 | %define static_libcrypto 0 | 18 | %global static_libcrypto 0 |
19 | 19 | ||
20 | # Do we want smartcard support (1=yes 0=no) | 20 | # Do we want smartcard support (1=yes 0=no) |
21 | %define scard 0 | 21 | %global scard 0 |
22 | 22 | ||
23 | # Use GTK2 instead of GNOME in gnome-ssh-askpass | 23 | # Use GTK2 instead of GNOME in gnome-ssh-askpass |
24 | %define gtk2 1 | 24 | %global gtk2 1 |
25 | 25 | ||
26 | # Use build6x options for older RHEL builds | 26 | # Use build6x options for older RHEL builds |
27 | # RHEL 7 not yet supported | 27 | # RHEL 7 not yet supported |
28 | %if 0%{?rhel} > 6 | 28 | %if 0%{?rhel} > 6 |
29 | %define build6x 0 | 29 | %global build6x 0 |
30 | %else | 30 | %else |
31 | %define build6x 1 | 31 | %global build6x 1 |
32 | %endif | 32 | %endif |
33 | 33 | ||
34 | %if 0%{?fedora} >= 26 | 34 | %if 0%{?fedora} >= 26 |
35 | %define compat_openssl 1 | 35 | %global compat_openssl 1 |
36 | %else | 36 | %else |
37 | %define compat_openssl 0 | 37 | %global compat_openssl 0 |
38 | %endif | 38 | %endif |
39 | 39 | ||
40 | # Do we want kerberos5 support (1=yes 0=no) | 40 | # Do we want kerberos5 support (1=yes 0=no) |
41 | %define kerberos5 1 | 41 | %global kerberos5 1 |
42 | 42 | ||
43 | # Reserve options to override askpass settings with: | 43 | # Reserve options to override askpass settings with: |
44 | # rpm -ba|--rebuild --define 'skip_xxx 1' | 44 | # rpm -ba|--rebuild --define 'skip_xxx 1' |
45 | %{?skip_x11_askpass:%define no_x11_askpass 1} | 45 | %{?skip_x11_askpass:%global no_x11_askpass 1} |
46 | %{?skip_gnome_askpass:%define no_gnome_askpass 1} | 46 | %{?skip_gnome_askpass:%global no_gnome_askpass 1} |
47 | 47 | ||
48 | # Add option to build without GTK2 for older platforms with only GTK+. | 48 | # Add option to build without GTK2 for older platforms with only GTK+. |
49 | # RedHat <= 7.2 and Red Hat Advanced Server 2.1 are examples. | 49 | # RedHat <= 7.2 and Red Hat Advanced Server 2.1 are examples. |
50 | # rpm -ba|--rebuild --define 'no_gtk2 1' | 50 | # rpm -ba|--rebuild --define 'no_gtk2 1' |
51 | %{?no_gtk2:%define gtk2 0} | 51 | %{?no_gtk2:%global gtk2 0} |
52 | 52 | ||
53 | # Is this a build for RHL 6.x or earlier? | 53 | # Is this a build for RHL 6.x or earlier? |
54 | %{?build_6x:%define build6x 1} | 54 | %{?build_6x:%global build6x 1} |
55 | 55 | ||
56 | # If this is RHL 6.x, the default configuration has sysconfdir in /usr/etc. | 56 | # If this is RHL 6.x, the default configuration has sysconfdir in /usr/etc. |
57 | %if %{build6x} | 57 | %if %{build6x} |
58 | %define _sysconfdir /etc | 58 | %global _sysconfdir /etc |
59 | %endif | 59 | %endif |
60 | 60 | ||
61 | # Options for static OpenSSL link: | 61 | # Options for static OpenSSL link: |
62 | # rpm -ba|--rebuild --define "static_openssl 1" | 62 | # rpm -ba|--rebuild --define "static_openssl 1" |
63 | %{?static_openssl:%define static_libcrypto 1} | 63 | %{?static_openssl:%global static_libcrypto 1} |
64 | 64 | ||
65 | # Options for Smartcard support: (needs libsectok and openssl-engine) | 65 | # Options for Smartcard support: (needs libsectok and openssl-engine) |
66 | # rpm -ba|--rebuild --define "smartcard 1" | 66 | # rpm -ba|--rebuild --define "smartcard 1" |
67 | %{?smartcard:%define scard 1} | 67 | %{?smartcard:%global scard 1} |
68 | 68 | ||
69 | # Is this a build for the rescue CD (without PAM, with MD5)? (1=yes 0=no) | 69 | # Is this a build for the rescue CD (without PAM, with MD5)? (1=yes 0=no) |
70 | %define rescue 0 | 70 | %global rescue 0 |
71 | %{?build_rescue:%define rescue 1} | 71 | %{?build_rescue:%global rescue 1} |
72 | 72 | ||
73 | # Turn off some stuff for resuce builds | 73 | # Turn off some stuff for resuce builds |
74 | %if %{rescue} | 74 | %if %{rescue} |
75 | %define kerberos5 0 | 75 | %global kerberos5 0 |
76 | %endif | 76 | %endif |
77 | 77 | ||
78 | Summary: The OpenSSH implementation of SSH protocol version 2. | 78 | Summary: The OpenSSH implementation of SSH protocol version 2. |