Tomohiro "Tomo-p" KATO пре 5 година
родитељ
комит
3723a6d5c2
1 измењених фајлова са 23 додато и 16 уклоњено
  1. 23 16
      o/openssh/openssh-vl.spec

+ 23 - 16
o/openssh/openssh-vl.spec

@@ -1,4 +1,4 @@
-%define ver 7.9p1
+%define ver 8.0p1
 %define rel 1%{_dist_release}
 %define rel 1%{_dist_release}
 
 
 # SELinux
 # SELinux
@@ -14,8 +14,8 @@
 # Do we want to disable building of gnome-askpass? (1=yes 0=no)
 # Do we want to disable building of gnome-askpass? (1=yes 0=no)
 %define no_gnome_askpass 0
 %define no_gnome_askpass 0
 
 
-# Use GTK2 for gnome-ssh-askpass
-%define gtk2 1
+# Use GTK3 for gnome-ssh-askpass
+%define gtk3 1
 
 
 # Build position-independent executables (requires toolchain support)?
 # Build position-independent executables (requires toolchain support)?
 %define pie 1
 %define pie 1
@@ -67,7 +67,7 @@ URL: http://www.openssh.com/portable.html
 Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
 Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
 
 
 Patch0: openssh-7.6p1-vine.patch
 Patch0: openssh-7.6p1-vine.patch
-Patch4: openssh-7.9p1-vendor.patch
+#Patch4: openssh-8.0p1-vendor.patch
 # Patch12: openssh-selinux.patch
 # Patch12: openssh-selinux.patch
 # Patch20: openssh-3.9p1-gssapimitm.patch
 # Patch20: openssh-3.9p1-gssapimitm.patch
 Patch21: openssh-7.6p1-safe-stop.patch
 Patch21: openssh-7.6p1-safe-stop.patch
@@ -76,7 +76,7 @@ Patch26: openssh-5.2p1-pam-no-stack.patch
 # Patch27: openssh-5.1p1-log-in-chroot.patch
 # Patch27: openssh-5.1p1-log-in-chroot.patch
 # Patch30: openssh-5.6p1-exit-deadlock.patch
 # Patch30: openssh-5.6p1-exit-deadlock.patch
 # Patch31: openssh-3.9p1-skip-used.patch
 # Patch31: openssh-3.9p1-skip-used.patch
-Patch35: openssh-7.4p1-askpass-progress.patch
+Patch35: openssh-8.0p1-askpass-progress-gtk3.patch
 
 
 # Vine Source
 # Vine Source
 Source100: sshd.init.vine
 Source100: sshd.init.vine
@@ -99,7 +99,7 @@ BuildRequires: pam-devel
 BuildRequires: zlib-devel
 BuildRequires: zlib-devel
 %if ! %{no_gnome_askpass}
 %if ! %{no_gnome_askpass}
 BuildRequires: libX11-devel
 BuildRequires: libX11-devel
-BuildRequires: gtk2-devel
+BuildRequires: gtk3-devel
 %endif
 %endif
 BuildRequires: xorg-x11-xauth
 BuildRequires: xorg-x11-xauth
 BuildRequires: groff
 BuildRequires: groff
@@ -238,7 +238,7 @@ OpenSSH は OpenBSD による最後のフリーのバージョンの再実装で
 
 
 %setup -q
 %setup -q
 %patch0 -p1 -b .vine
 %patch0 -p1 -b .vine
-%patch4 -p1 -b .vendor
+#patch4 -p1 -b .vendor
 
 
 %if %{WITH_SELINUX}
 %if %{WITH_SELINUX}
 #SELinux
 #SELinux
@@ -299,20 +299,20 @@ perl -pi -e "s|-lcrypto|%{_libdir}/libcrypto.a|g" Makefile
 
 
 make
 make
 
 
-%if %{gtk2}
-	gtk2=yes
+%if %{gtk3}
+	gtk3=yes
 %else
 %else
-        gtk2=no
+        gtk3=no
 %endif
 %endif
 
 
 %if ! %{no_gnome_askpass}
 %if ! %{no_gnome_askpass}
 pushd contrib
 pushd contrib
-if [ $gtk2 = yes ]; then
+if [ $gtk3 = yes ]; then
+	make gnome-ssh-askpass3
+	mv gnome-ssh-askpass3 gnome-ssh-askpass
+else
 	make gnome-ssh-askpass2
 	make gnome-ssh-askpass2
 	mv gnome-ssh-askpass2 gnome-ssh-askpass
 	mv gnome-ssh-askpass2 gnome-ssh-askpass
-else
-	make gnome-ssh-askpass1
-	mv gnome-ssh-askpass1 gnome-ssh-askpass
 fi
 fi
 popd
 popd
 %endif
 %endif
@@ -411,8 +411,6 @@ fi
 %files
 %files
 %defattr(-,root,root)
 %defattr(-,root,root)
 %doc CREDITS ChangeLog INSTALL LICENCE OVERVIEW PROTOCOL* README* TODO
 %doc CREDITS ChangeLog INSTALL LICENCE OVERVIEW PROTOCOL* README* TODO
-%attr(0755,root,root) %{_bindir}/scp
-%attr(0644,root,root) %{_mandir}/man1/scp.1*
 %attr(0755,root,root) %dir %{_sysconfdir}/ssh
 %attr(0755,root,root) %dir %{_sysconfdir}/ssh
 %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/moduli
 %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/moduli
 %attr(644,root,root) %{_mandir}/man5/moduli.5*
 %attr(644,root,root) %{_mandir}/man5/moduli.5*
@@ -430,7 +428,9 @@ fi
 
 
 %files clients
 %files clients
 %defattr(-,root,root)
 %defattr(-,root,root)
+%attr(0755,root,root) %{_bindir}/scp
 %attr(0755,root,root) %{_bindir}/ssh
 %attr(0755,root,root) %{_bindir}/ssh
+%attr(0644,root,root) %{_mandir}/man1/scp.1*
 %attr(0644,root,root) %{_mandir}/man1/ssh.1*
 %attr(0644,root,root) %{_mandir}/man1/ssh.1*
 %attr(0644,root,root) %{_mandir}/man5/ssh_config.5*
 %attr(0644,root,root) %{_mandir}/man5/ssh_config.5*
 # %attr(0644,root,root) %{_mandir}/man1/slogin.1*
 # %attr(0644,root,root) %{_mandir}/man1/slogin.1*
@@ -478,6 +478,13 @@ fi
 
 
 
 
 %changelog
 %changelog
+* Sat Jun 22 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.0p1-1
+- new upstream release.
+- moved scp to openssh-clients.
+- changed "PasswordAuthentication" to "no" as default.
+- dropped Patch4.
+- update Patch35 to use GTK+3 for gnome-ssh-askpass.
+
 * Tue Nov 06 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.9p1-1
 * Tue Nov 06 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.9p1-1
 - new upstream release.
 - new upstream release.
 - updated Patch4.
 - updated Patch4.