nxssh.spec 3.3 KB
Newer Older
Vitaly Lipatov's avatar
Vitaly Lipatov committed
1
%def_with kerberos5
2

Pavel Vainerman's avatar
Pavel Vainerman committed
3 4
Name: nxssh
Version: 7.5
Konstantin Artyushkin's avatar
Konstantin Artyushkin committed
5
Release: alt14
Pavel Vainerman's avatar
Pavel Vainerman committed
6

Vitaly Lipatov's avatar
Vitaly Lipatov committed
7
Summary: Openssh portable (Etersoft edition) for using with NX in RX@Etersoft
Pavel Vainerman's avatar
Pavel Vainerman committed
8 9

License: GPL, MIT/X11 for X11 bits
Vitaly Lipatov's avatar
Vitaly Lipatov committed
10
Group: Networking/Remote access
Pavel Vainerman's avatar
Pavel Vainerman committed
11 12
Url: https://github.com/openssh/openssh-portable

Vitaly Lipatov's avatar
Vitaly Lipatov committed
13 14 15
Packager: Pavel Vainerman <pv@altlinux.ru>

# Source-git: https://github.com/openssh/openssh-portable.git
Pavel Vainerman's avatar
Pavel Vainerman committed
16 17
Source: %name-%version.tar

18 19
Patch1: 0001-fix-openssl-1.1.patch-eterbug-12901.patch

20
Requires: nx-libs >= 3.5.0.31
21

Vitaly Lipatov's avatar
Vitaly Lipatov committed
22
BuildRequires: libpam-devel libssl-devel nx-libs-devel openssh-clients
Pavel Vainerman's avatar
Pavel Vainerman committed
23

Vitaly Lipatov's avatar
Vitaly Lipatov committed
24
%if_with kerberos5
25 26 27
BuildRequires: libkrb5-devel
%endif

Pavel Vainerman's avatar
Pavel Vainerman committed
28
%description
Vitaly Lipatov's avatar
Vitaly Lipatov committed
29
Openssh portable (Etersoft edition) for using with NX in RX@Etersoft.
Pavel Vainerman's avatar
Pavel Vainerman committed
30 31 32 33

%prep
%setup

34 35
# fix build with openssl >= 1.1
if [ ! -s %_libdir/libssl.so.1.0.* ] || [ ! -s /%_lib/libssl.so.1.0.* ] ; then
36 37 38
%patch1 -p1
fi

Pavel Vainerman's avatar
Pavel Vainerman committed
39
%build
Vitaly Lipatov's avatar
Vitaly Lipatov committed
40 41
# detect config placement
confdir=""
42 43 44
[ -r "/etc/openssh/ssh_config" ] && confdir="/openssh"
[ -r "/etc/ssh/ssh_config" ] && confdir="/ssh"
[ -r "/etc/ssh_config" ] && confdir="/"
Vitaly Lipatov's avatar
Vitaly Lipatov committed
45
%__subst "s|-DSSHDIR=\\\\\"\$(sysconfdir)\\\\\"|-DSSHDIR=\\\\\"\$(sysconfdir)${confdir}\\\\\"|g" Makefile.in
46

Pavel Vainerman's avatar
Pavel Vainerman committed
47
%autoreconf
Vitaly Lipatov's avatar
Vitaly Lipatov committed
48
%configure --without-zlib-version-check %{subst_with kerberos5}
Pavel Vainerman's avatar
Pavel Vainerman committed
49 50
%make_build || %make

Vitaly Lipatov's avatar
Vitaly Lipatov committed
51
echo "checking ssh config path"
52
grep -a "/etc${confdir}/ssh_config" nxssh
53

Pavel Vainerman's avatar
Pavel Vainerman committed
54
%install
Vitaly Lipatov's avatar
Vitaly Lipatov committed
55 56
mkdir -p %buildroot%_bindir/
install -m755 nxssh %buildroot%_bindir/
Pavel Vainerman's avatar
Pavel Vainerman committed
57 58

%files
Vitaly Lipatov's avatar
Vitaly Lipatov committed
59
%_bindir/nxssh
Pavel Vainerman's avatar
Pavel Vainerman committed
60 61

%changelog
Konstantin Artyushkin's avatar
Konstantin Artyushkin committed
62 63 64
* Thu Nov 30 2023 Konstantin Artyushkin <akv@altlinux.org> 7.5-alt14
- fix build for openssl >= 1.1

Vitaly Lipatov's avatar
Vitaly Lipatov committed
65
* Sun Nov 25 2018 Vitaly Lipatov <lav@altlinux.ru> 7.5-alt13
Etersoft builder's avatar
Etersoft builder committed
66 67
- fix build

Pavel Vainerman's avatar
Pavel Vainerman committed
68 69 70
* Wed Aug 29 2018 Pavel Vainerman <pv@altlinux.ru> 7.5-alt11
- fix openssl 1.1 detection, use grep -a for check text in binary

Etersoft builder's avatar
Etersoft builder committed
71 72 73 74
* Wed Aug 08 2018 Etersoft Builder <builder@etersoft.ru> 7.5-alt10
- (CI): added build for c7
- revert "(CI): added build for c7"

Vitaly Lipatov's avatar
Vitaly Lipatov committed
75 76 77 78 79
* Fri Jul 06 2018 Vitaly Lipatov <lav@altlinux.ru> 7.5-alt9
- fix bug with kerberos build missing
- drop gcc-c++ and other image libs buildrequires
- use optflags from rpm (drop hardcoded CFLAGS)

Etersoft builder's avatar
Etersoft builder committed
80 81 82
* Thu Jun 28 2018 Etersoft Builder <builder@etersoft.ru> 7.5-alt8
- (CI): added test build

Vitaly Lipatov's avatar
Vitaly Lipatov committed
83 84 85
* Sat Jun 23 2018 Vitaly Lipatov <lav@altlinux.ru> 7.5-alt7
- cleanup spec, pack only nxssh

Etersoft builder's avatar
Etersoft builder committed
86 87 88
* Wed Jun 06 2018 Etersoft Builder <builder@etersoft.ru> 7.5-alt6
- added path validation for ssh config (eterbug #12807)

Etersoft builder's avatar
Etersoft builder committed
89 90 91
* Wed May 23 2018 Etersoft Builder <builder@etersoft.ru> 7.5-alt5
- restore fix-openssl-1.1.patch

Etersoft builder's avatar
Etersoft builder committed
92 93 94
* Thu Apr 12 2018 Etersoft Builder <builder@etersoft.ru> 7.5-alt4
- update build requires: use nx-libs

Etersoft builder's avatar
Etersoft builder committed
95 96 97
* Fri Mar 30 2018 Etersoft Builder <builder@etersoft.ru> 7.5-alt3
- update build requires

Etersoft builder's avatar
Etersoft builder committed
98 99 100
* Fri Mar 30 2018 Etersoft Builder <builder@etersoft.ru> 7.5-alt2
- fixed openssh confdir (eterbug #12796)

Etersoft builder's avatar
Etersoft builder committed
101 102 103 104 105
* Tue Mar 20 2018 Etersoft Builder <builder@etersoft.ru> 7.5-alt1
- added gitlab-ci.yml
- (gitlab-ci): fixed spec name
- (gitlab-ci): fixed spec path

Pavel Vainerman's avatar
Pavel Vainerman committed
106 107 108
* Wed Nov 08 2017 Pavel Vainerman <pv@altlinux.ru> 7.5-alt0.5
- update requires

109 110 111
* Wed Nov 08 2017 Pavel Vainerman <pv@altlinux.ru> 7.5-alt0.4
- fixed bug for SSL session

112 113 114
* Wed Nov 01 2017 Pavel Vainerman <pv@altlinux.ru> 7.5-alt0.3
- fixed bug in spec file (--enable-kerberos5 --> --with-kerberos5)

115 116 117
* Mon Oct 30 2017 Pavel Vainerman <pv@altlinux.ru> 7.5-alt0.2
- build with kerberos5 

Pavel Vainerman's avatar
Pavel Vainerman committed
118 119 120
* Wed Oct 18 2017 Pavel Vainerman <pv@altlinux.ru> 7.5-alt0.1
- initial commit