]> git.pld-linux.org Git - packages/cifs-utils.git/commitdiff
- swith all scripts to python 3, rel 2 master auto/th/cifs-utils-7.0-2
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Sep 2023 10:51:04 +0000 (12:51 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Sep 2023 10:51:04 +0000 (12:51 +0200)
cifs-utils.spec
python3.patch [new file with mode: 0644]

index 3dac809ab66d5a9b268c17a15768610f1d78b61b..1c64895c3fa548b28b07585cac8a67dcf094cff2 100644 (file)
@@ -2,12 +2,13 @@ Summary:      Utilities for mounting and managing CIFS mounts
 Summary(pl.UTF-8):     Narzędzia do montowania i zarządzania montowaniami CIFS
 Name:          cifs-utils
 Version:       7.0
-Release:       1
+Release:       2
 License:       GPL v3+
 Group:         Daemons
 Source0:       https://ftp.samba.org/pub/linux-cifs/cifs-utils/%{name}-%{version}.tar.bz2
 # Source0-md5: 518431bf43f23e6aacd97e80e2060df7
 Patch0:                %{name}-heimdal.patch
+Patch1:                python3.patch
 URL:           https://wiki.samba.org/index.php/LinuxCIFS_utils
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
@@ -55,12 +56,12 @@ Plik nagłówkowy interfejsu wtyczek ID Mapping cifs-utils.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
-%{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' \
+%{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' \
+       -e '1s,/usr/bin/env python3,%{__python3},' \
        smb2-quota \
-       smb2-secdesc
-
-%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' \
+       smb2-secdesc \
        checkopts \
        smbinfo
 
diff --git a/python3.patch b/python3.patch
new file mode 100644 (file)
index 0000000..585aab0
--- /dev/null
@@ -0,0 +1,20 @@
+--- cifs-utils-7.0/smb2-secdesc.orig   2023-09-09 12:42:49.000000000 +0200
++++ cifs-utils-7.0/smb2-secdesc        2023-09-09 12:48:13.717223739 +0200
+@@ -8,7 +8,7 @@
+ import struct
+ import stat
+ import sys
+-from Tkinter import *
++from tkinter import *
+ FULL_CONTROL = 0x001f01ff
+ EWRITE = 0x00000116
+@@ -297,7 +297,7 @@
+ CIFS_QUERY_INFO = 0xc018cf07
+ def usage():
+-      print "Usage: %s <filename>" % (sys.argv[0])
++      print("Usage: %s <filename>" % (sys.argv[0]))
+       sys.exit()
This page took 0.189175 seconds and 4 git commands to generate.