From ca6e36ab213b11203b9e0300fde205106a6e389c Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 30 May 2025 09:49:03 +0200 Subject: [PATCH 01/37] F40 is EOL --- vim-update.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vim-update.sh b/vim-update.sh index 61f7965d..81b69dee 100755 --- a/vim-update.sh +++ b/vim-update.sh @@ -1,12 +1,12 @@ #!/bin/bash debug="" #debug="echo " -branches=( "rawhide" "f42" "f41" "f40" ) -releases=( "fc43" "fc42" "fc41" "fc40" ) +branches=( "rawhide" "f42" "f41" ) +releases=( "fc43" "fc42" "fc41" ) # the first bodhi enabled release is the last without \| - all # others need to have \| -regexps=( "fc43" "fc42" "\|fc41" "\|fc40" ) -bodhi_enabled=( "0" "1" "1" "1" ) +regexps=( "fc43" "fc42" "\|fc41" ) +bodhi_enabled=( "0" "1" "1" ) needs_update=() #releases_regexp=fc28\\\|fc27\\\|fc28 From f158e7ec35e8d4d8c8911f9ca2feb4ad4ccac5a5 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 30 May 2025 09:50:27 +0200 Subject: [PATCH 02/37] - patchlevel 1418 --- sources | 2 +- vim-8.0-copy-paste.patch | 40 ++++++++++++++++++---------------------- vim.spec | 7 +++++-- 3 files changed, 24 insertions(+), 25 deletions(-) diff --git a/sources b/sources index 60fb1b97..d7ebfd85 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1291.tar.bz2) = 66b9f4f81e33f3e9ef61e8e9d792d5f0896833912434c204697b71686a4d21996d1030a4a2549f3d82f7be3f47578fed87f12b9b2b2a4473bf695c164f8851c6 +SHA512 (vim-9.1-1418.tar.bz2) = c4efb023d47221f42bcbf63f577fe4356fe3c4ee75ddd453a029c2914a0cd2bd4de63c57d89bfd54ca5a7ecdc1812851645c798df311ec3ab6ef911461456da5 diff --git a/vim-8.0-copy-paste.patch b/vim-8.0-copy-paste.patch index a1487d12..c85f1544 100644 --- a/vim-8.0-copy-paste.patch +++ b/vim-8.0-copy-paste.patch @@ -1,8 +1,7 @@ -diff --git a/runtime/defaults.vim b/runtime/defaults.vim -index ff8ce8e..2ed8542 100644 ---- a/runtime/defaults.vim -+++ b/runtime/defaults.vim -@@ -75,18 +75,6 @@ sunmap Q +diff -up vim91/runtime/defaults.vim.copypaste vim91/runtime/defaults.vim +--- vim91/runtime/defaults.vim.copypaste 2025-05-30 09:49:31.000000000 +0200 ++++ vim91/runtime/defaults.vim 2025-05-30 09:57:03.715615959 +0200 +@@ -70,18 +70,6 @@ sunmap Q " Revert with ":iunmap ". inoremap u @@ -21,23 +20,21 @@ index ff8ce8e..2ed8542 100644 " Only do this part when Vim was compiled with the +eval feature. if 1 -diff --git a/src/testdir/test_balloon.vim b/src/testdir/test_balloon.vim -index 80d5831..713f580 100644 ---- a/src/testdir/test_balloon.vim -+++ b/src/testdir/test_balloon.vim -@@ -9,6 +9,7 @@ source screendump.vim - CheckScreendump +diff -up vim91/src/testdir/test_balloon.vim.copypaste vim91/src/testdir/test_balloon.vim +--- vim91/src/testdir/test_balloon.vim.copypaste 2025-05-30 09:57:03.715773219 +0200 ++++ vim91/src/testdir/test_balloon.vim 2025-05-30 09:58:51.344389890 +0200 +@@ -8,6 +8,7 @@ CheckFeature balloon_eval_term + source screendump.vim let s:common_script =<< trim [CODE] + set mouse=a call setline(1, ["one one one", "two tXo two", "three three three"]) set balloonevalterm balloonexpr=MyBalloonExpr()..s:trailing balloondelay=100 let s:trailing = '<' " check that script context is set -diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim -index d930133..0c74032 100644 ---- a/src/testdir/test_popup.vim -+++ b/src/testdir/test_popup.vim -@@ -945,6 +945,7 @@ func Test_mouse_popup_position() +diff -up vim91/src/testdir/test_popup.vim.copypaste vim91/src/testdir/test_popup.vim +--- vim91/src/testdir/test_popup.vim.copypaste 2025-05-30 09:49:32.000000000 +0200 ++++ vim91/src/testdir/test_popup.vim 2025-05-30 09:57:03.716006063 +0200 +@@ -959,6 +959,7 @@ func Test_mouse_popup_position() let script =<< trim END set mousemodel=popup_setpos source $VIMRUNTIME/menu.vim @@ -45,10 +42,9 @@ index d930133..0c74032 100644 call setline(1, join(range(20))) func Trigger(col) call test_setmouse(1, a:col) -diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim -index 64aa654..1a1261c 100644 ---- a/src/testdir/test_popupwin.vim -+++ b/src/testdir/test_popupwin.vim +diff -up vim91/src/testdir/test_popupwin.vim.copypaste vim91/src/testdir/test_popupwin.vim +--- vim91/src/testdir/test_popupwin.vim.copypaste 2025-05-30 09:49:32.000000000 +0200 ++++ vim91/src/testdir/test_popupwin.vim 2025-05-30 09:57:03.716358043 +0200 @@ -558,6 +558,7 @@ func Test_popup_drag() " create a popup that covers the command line let lines =<< trim END @@ -81,7 +77,7 @@ index 64aa654..1a1261c 100644 " With border, can click on X let winid = popup_create('foobar', #{ \ close: 'button', -@@ -1559,6 +1563,7 @@ func Test_popup_beval() +@@ -1560,6 +1564,7 @@ func Test_popup_beval() let lines =<< trim END call setline(1, range(1, 20)) call setline(5, 'here is some text to hover over') @@ -89,7 +85,7 @@ index 64aa654..1a1261c 100644 set balloonevalterm set balloonexpr=BalloonExpr() set balloondelay=100 -@@ -2255,6 +2260,7 @@ func Test_popup_scrollbar() +@@ -2270,6 +2275,7 @@ func Test_popup_scrollbar() let lines =<< trim END call setline(1, range(1, 20)) diff --git a/vim.spec b/vim.spec index d703d848..a19d8140 100644 --- a/vim.spec +++ b/vim.spec @@ -10,7 +10,7 @@ %bcond_with libsodium_crypt %endif -%define patchlevel 1291 +%define patchlevel 1418 %if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} %define WITH_SELINUX 1 @@ -844,7 +844,6 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %endif %lang(af) %{_datadir}/%{name}/%{vimdir}/lang/af -%lang(am) %{_datadir}/%{name}/%{vimdir}/lang/am %lang(ca) %{_datadir}/%{name}/%{vimdir}/lang/ca %lang(cs) %{_datadir}/%{name}/%{vimdir}/lang/cs %lang(cs.cp1250) %{_datadir}/%{name}/%{vimdir}/lang/cs.cp1250 @@ -857,6 +856,7 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %lang(fr) %{_datadir}/%{name}/%{vimdir}/lang/fr %lang(ga) %{_datadir}/%{name}/%{vimdir}/lang/ga %lang(hu) %{_datadir}/%{name}/%{vimdir}/lang/hu +%lang(hy) %{_datadir}/%{name}/%{vimdir}/lang/hy %lang(it) %{_datadir}/%{name}/%{vimdir}/lang/it %lang(ja) %{_datadir}/%{name}/%{vimdir}/lang/ja %lang(ja.euc-jp) %{_datadir}/%{name}/%{vimdir}/lang/ja.euc-jp @@ -1058,6 +1058,9 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %changelog +* Fri May 30 2025 Zdenek Dohnal - 2:9.1.1418-1 +- patchlevel 1418 + * Fri Apr 11 2025 Zdenek Dohnal - 2:9.1.1291-1 - patchlevel 1291 From d1c415d03600b15b9a182da4f7b46285c77760e1 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 6 Jun 2025 07:03:55 +0200 Subject: [PATCH 03/37] - patchlevel 1435 --- sources | 2 +- vim.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources b/sources index d7ebfd85..29399985 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1418.tar.bz2) = c4efb023d47221f42bcbf63f577fe4356fe3c4ee75ddd453a029c2914a0cd2bd4de63c57d89bfd54ca5a7ecdc1812851645c798df311ec3ab6ef911461456da5 +SHA512 (vim-9.1-1435.tar.bz2) = 467a45ddbaa24639e307e1a135852a77326f467d44d6863d94e85487b5b16e6ca8b0b6da0ac70aba7c25754f04f85a5c6a64baa7ca878741d244c3afc8efb5a9 diff --git a/vim.spec b/vim.spec index a19d8140..92069150 100644 --- a/vim.spec +++ b/vim.spec @@ -10,7 +10,7 @@ %bcond_with libsodium_crypt %endif -%define patchlevel 1418 +%define patchlevel 1435 %if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} %define WITH_SELINUX 1 @@ -1058,6 +1058,9 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %changelog +* Fri Jun 06 2025 Zdenek Dohnal - 2:9.1.1435-1 +- patchlevel 1435 + * Fri May 30 2025 Zdenek Dohnal - 2:9.1.1418-1 - patchlevel 1418 From 4d63e8a53c29ec5904e14127d7a9039f794c5a8d Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Thu, 19 Jun 2025 14:50:43 +0200 Subject: [PATCH 04/37] FTBFS with Python 3.14 (fedora#2373314) --- vim-py314-nogetsize.patch | 35 +++++++++++++++++++++++++++++++++++ vim.spec | 9 ++++++++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 vim-py314-nogetsize.patch diff --git a/vim-py314-nogetsize.patch b/vim-py314-nogetsize.patch new file mode 100644 index 00000000..e5a1c194 --- /dev/null +++ b/vim-py314-nogetsize.patch @@ -0,0 +1,35 @@ +diff --git a/src/if_py_both.h b/src/if_py_both.h +index ed66254ff..7fc055db5 100644 +--- a/src/if_py_both.h ++++ b/src/if_py_both.h +@@ -2409,18 +2409,18 @@ DictionaryUpdate(DictionaryObject *self, PyObject *args, PyObject *kwargs) + + Py_DECREF(item); + +- if (PySequence_Fast_GET_SIZE(fast) != 2) ++ if (PySequence_Size(fast) != 2) + { + Py_DECREF(iterator); + Py_DECREF(fast); + PyErr_FORMAT(PyExc_ValueError, + N_("expected sequence element of size 2, " + "but got sequence of size %d"), +- (int) PySequence_Fast_GET_SIZE(fast)); ++ (int) PySequence_Size(fast)); + return NULL; + } + +- keyObject = PySequence_Fast_GET_ITEM(fast, 0); ++ keyObject = PySequence_GetItem(fast, 0); + + if (!(key = StringToChars(keyObject, &todecref))) + { +@@ -2442,7 +2442,7 @@ DictionaryUpdate(DictionaryObject *self, PyObject *args, PyObject *kwargs) + } + di->di_tv.v_type = VAR_UNKNOWN; + +- valObject = PySequence_Fast_GET_ITEM(fast, 1); ++ valObject = PySequence_GetItem(fast, 1); + + if (ConvertFromPyObject(valObject, &di->di_tv) == -1) + { diff --git a/vim.spec b/vim.spec index 92069150..fa25cf7e 100644 --- a/vim.spec +++ b/vim.spec @@ -51,7 +51,7 @@ Summary: The VIM editor URL: http://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 2 # swift.vim contains Apache 2.0 with runtime library exception: # which is taken as Apache-2.0 WITH Swift-exception - reported to legal as https://gitlab.com/fedora/legal/fedora-license-data/-/issues/188 @@ -99,6 +99,9 @@ Patch3003: vim-python3-tests.patch Patch3004: vim-crypto-warning.patch # don't ever set mouse (Fedora downstream patch) Patch3005: vim-8.0-copy-paste.patch +# PySequence_Fast_{GET_ITEM,GET_SIZE} removed from stable API +# https://github.com/vim/vim/pull/17575 +Patch3006: vim-py314-nogetsize.patch # uses autoconf in spec file @@ -426,6 +429,7 @@ perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk %patch -P 3003 -p1 -b .python-tests %patch -P 3004 -p1 -b .fips-warning %patch -P 3005 -p1 -b .copypaste +%patch -P 3006 -p1 -b .py314-noget %build @@ -1058,6 +1062,9 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %changelog +* Thu Jun 19 2025 Zdenek Dohnal - 2:9.1.1435-2 +- FTBFS with Python 3.14 (fedora#2373314) + * Fri Jun 06 2025 Zdenek Dohnal - 2:9.1.1435-1 - patchlevel 1435 From 47571c96d79c5e527ac0e2be6a5a7e0f219f1a38 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 27 Jun 2025 06:44:47 +0200 Subject: [PATCH 05/37] - patchlevel 1484 --- sources | 2 +- vim-py314-nogetsize.patch | 35 ----------------------------------- vim.spec | 11 +++++------ 3 files changed, 6 insertions(+), 42 deletions(-) delete mode 100644 vim-py314-nogetsize.patch diff --git a/sources b/sources index 29399985..be4a7a18 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1435.tar.bz2) = 467a45ddbaa24639e307e1a135852a77326f467d44d6863d94e85487b5b16e6ca8b0b6da0ac70aba7c25754f04f85a5c6a64baa7ca878741d244c3afc8efb5a9 +SHA512 (vim-9.1-1484.tar.bz2) = 0c11afd56b0d2d1be61be3be401d30850a2172da52b50ad1a8919bcf59d3a29eeb9a92153f077d7e2596e32f0c2c53ea68a299b2bb36caa5e73ec29859a9d346 diff --git a/vim-py314-nogetsize.patch b/vim-py314-nogetsize.patch deleted file mode 100644 index e5a1c194..00000000 --- a/vim-py314-nogetsize.patch +++ /dev/null @@ -1,35 +0,0 @@ -diff --git a/src/if_py_both.h b/src/if_py_both.h -index ed66254ff..7fc055db5 100644 ---- a/src/if_py_both.h -+++ b/src/if_py_both.h -@@ -2409,18 +2409,18 @@ DictionaryUpdate(DictionaryObject *self, PyObject *args, PyObject *kwargs) - - Py_DECREF(item); - -- if (PySequence_Fast_GET_SIZE(fast) != 2) -+ if (PySequence_Size(fast) != 2) - { - Py_DECREF(iterator); - Py_DECREF(fast); - PyErr_FORMAT(PyExc_ValueError, - N_("expected sequence element of size 2, " - "but got sequence of size %d"), -- (int) PySequence_Fast_GET_SIZE(fast)); -+ (int) PySequence_Size(fast)); - return NULL; - } - -- keyObject = PySequence_Fast_GET_ITEM(fast, 0); -+ keyObject = PySequence_GetItem(fast, 0); - - if (!(key = StringToChars(keyObject, &todecref))) - { -@@ -2442,7 +2442,7 @@ DictionaryUpdate(DictionaryObject *self, PyObject *args, PyObject *kwargs) - } - di->di_tv.v_type = VAR_UNKNOWN; - -- valObject = PySequence_Fast_GET_ITEM(fast, 1); -+ valObject = PySequence_GetItem(fast, 1); - - if (ConvertFromPyObject(valObject, &di->di_tv) == -1) - { diff --git a/vim.spec b/vim.spec index fa25cf7e..4d039c36 100644 --- a/vim.spec +++ b/vim.spec @@ -10,7 +10,7 @@ %bcond_with libsodium_crypt %endif -%define patchlevel 1435 +%define patchlevel 1484 %if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} %define WITH_SELINUX 1 @@ -51,7 +51,7 @@ Summary: The VIM editor URL: http://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 2%{?dist} +Release: 1%{?dist} Epoch: 2 # swift.vim contains Apache 2.0 with runtime library exception: # which is taken as Apache-2.0 WITH Swift-exception - reported to legal as https://gitlab.com/fedora/legal/fedora-license-data/-/issues/188 @@ -99,9 +99,6 @@ Patch3003: vim-python3-tests.patch Patch3004: vim-crypto-warning.patch # don't ever set mouse (Fedora downstream patch) Patch3005: vim-8.0-copy-paste.patch -# PySequence_Fast_{GET_ITEM,GET_SIZE} removed from stable API -# https://github.com/vim/vim/pull/17575 -Patch3006: vim-py314-nogetsize.patch # uses autoconf in spec file @@ -429,7 +426,6 @@ perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk %patch -P 3003 -p1 -b .python-tests %patch -P 3004 -p1 -b .fips-warning %patch -P 3005 -p1 -b .copypaste -%patch -P 3006 -p1 -b .py314-noget %build @@ -1062,6 +1058,9 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %changelog +* Fri Jun 27 2025 Zdenek Dohnal - 2:9.1.1484-1 +- patchlevel 1484 + * Thu Jun 19 2025 Zdenek Dohnal - 2:9.1.1435-2 - FTBFS with Python 3.14 (fedora#2373314) From 97b3fbd6e5d2d085cd4df00129267a6a9bceac7e Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 11 Jul 2025 08:59:31 +0200 Subject: [PATCH 06/37] - patchlevel 1537 --- sources | 2 +- vim-8.0-copy-paste.patch | 34 +++++++++++++++++----------------- vim.spec | 5 ++++- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/sources b/sources index be4a7a18..4c8cb72d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1484.tar.bz2) = 0c11afd56b0d2d1be61be3be401d30850a2172da52b50ad1a8919bcf59d3a29eeb9a92153f077d7e2596e32f0c2c53ea68a299b2bb36caa5e73ec29859a9d346 +SHA512 (vim-9.1-1537.tar.bz2) = dc2b58eb4868ccdea3ee35de617e4e4fae85b44d26c3d7fd72b8762a8e20cd7d0c7d5fdbc4af170ed2ecd900a9027b14a27e2d73180b21c9066df21dd569daa0 diff --git a/vim-8.0-copy-paste.patch b/vim-8.0-copy-paste.patch index c85f1544..07f1e5a6 100644 --- a/vim-8.0-copy-paste.patch +++ b/vim-8.0-copy-paste.patch @@ -1,6 +1,6 @@ diff -up vim91/runtime/defaults.vim.copypaste vim91/runtime/defaults.vim ---- vim91/runtime/defaults.vim.copypaste 2025-05-30 09:49:31.000000000 +0200 -+++ vim91/runtime/defaults.vim 2025-05-30 09:57:03.715615959 +0200 +--- vim91/runtime/defaults.vim.copypaste 2025-06-27 06:43:53.000000000 +0200 ++++ vim91/runtime/defaults.vim 2025-07-11 09:16:19.013363739 +0200 @@ -70,18 +70,6 @@ sunmap Q " Revert with ":iunmap ". inoremap u @@ -21,10 +21,10 @@ diff -up vim91/runtime/defaults.vim.copypaste vim91/runtime/defaults.vim if 1 diff -up vim91/src/testdir/test_balloon.vim.copypaste vim91/src/testdir/test_balloon.vim ---- vim91/src/testdir/test_balloon.vim.copypaste 2025-05-30 09:57:03.715773219 +0200 -+++ vim91/src/testdir/test_balloon.vim 2025-05-30 09:58:51.344389890 +0200 -@@ -8,6 +8,7 @@ CheckFeature balloon_eval_term - source screendump.vim +--- vim91/src/testdir/test_balloon.vim.copypaste 2025-07-11 09:16:19.013500976 +0200 ++++ vim91/src/testdir/test_balloon.vim 2025-07-11 09:17:20.168187029 +0200 +@@ -7,6 +7,7 @@ CheckFeature balloon_eval_term + source util/screendump.vim let s:common_script =<< trim [CODE] + set mouse=a @@ -32,9 +32,9 @@ diff -up vim91/src/testdir/test_balloon.vim.copypaste vim91/src/testdir/test_bal set balloonevalterm balloonexpr=MyBalloonExpr()..s:trailing balloondelay=100 let s:trailing = '<' " check that script context is set diff -up vim91/src/testdir/test_popup.vim.copypaste vim91/src/testdir/test_popup.vim ---- vim91/src/testdir/test_popup.vim.copypaste 2025-05-30 09:49:32.000000000 +0200 -+++ vim91/src/testdir/test_popup.vim 2025-05-30 09:57:03.716006063 +0200 -@@ -959,6 +959,7 @@ func Test_mouse_popup_position() +--- vim91/src/testdir/test_popup.vim.copypaste 2025-07-11 08:58:40.000000000 +0200 ++++ vim91/src/testdir/test_popup.vim 2025-07-11 09:16:19.013692144 +0200 +@@ -957,6 +957,7 @@ func Test_mouse_popup_position() let script =<< trim END set mousemodel=popup_setpos source $VIMRUNTIME/menu.vim @@ -43,9 +43,9 @@ diff -up vim91/src/testdir/test_popup.vim.copypaste vim91/src/testdir/test_popup func Trigger(col) call test_setmouse(1, a:col) diff -up vim91/src/testdir/test_popupwin.vim.copypaste vim91/src/testdir/test_popupwin.vim ---- vim91/src/testdir/test_popupwin.vim.copypaste 2025-05-30 09:49:32.000000000 +0200 -+++ vim91/src/testdir/test_popupwin.vim 2025-05-30 09:57:03.716358043 +0200 -@@ -558,6 +558,7 @@ func Test_popup_drag() +--- vim91/src/testdir/test_popupwin.vim.copypaste 2025-07-11 08:58:40.000000000 +0200 ++++ vim91/src/testdir/test_popupwin.vim 2025-07-11 09:16:19.013971633 +0200 +@@ -556,6 +556,7 @@ func Test_popup_drag() " create a popup that covers the command line let lines =<< trim END call setline(1, range(1, 20)) @@ -53,7 +53,7 @@ diff -up vim91/src/testdir/test_popupwin.vim.copypaste vim91/src/testdir/test_po split vsplit $wincmd w -@@ -625,6 +626,7 @@ func Test_popup_drag_minwidth() +@@ -623,6 +624,7 @@ func Test_popup_drag_minwidth() " create a popup that does not fit let lines =<< trim END @@ -61,7 +61,7 @@ diff -up vim91/src/testdir/test_popupwin.vim.copypaste vim91/src/testdir/test_po call range(40) \ ->map({_,i -> string(i)}) \ ->popup_create({ -@@ -672,6 +674,7 @@ func Test_popup_drag_termwin() +@@ -670,6 +672,7 @@ func Test_popup_drag_termwin() let lines =<< trim END set foldmethod=marker call setline(1, range(100)) @@ -69,7 +69,7 @@ diff -up vim91/src/testdir/test_popupwin.vim.copypaste vim91/src/testdir/test_po for nr in range(7) call setline(nr * 12 + 1, "fold {{{") call setline(nr * 12 + 11, "end }}}") -@@ -724,6 +727,7 @@ func Test_popup_close_with_mouse() +@@ -722,6 +725,7 @@ func Test_popup_close_with_mouse() let lines =<< trim END call setline(1, range(1, 20)) @@ -77,7 +77,7 @@ diff -up vim91/src/testdir/test_popupwin.vim.copypaste vim91/src/testdir/test_po " With border, can click on X let winid = popup_create('foobar', #{ \ close: 'button', -@@ -1560,6 +1564,7 @@ func Test_popup_beval() +@@ -1559,6 +1563,7 @@ func Test_popup_beval() let lines =<< trim END call setline(1, range(1, 20)) call setline(5, 'here is some text to hover over') @@ -85,7 +85,7 @@ diff -up vim91/src/testdir/test_popupwin.vim.copypaste vim91/src/testdir/test_po set balloonevalterm set balloonexpr=BalloonExpr() set balloondelay=100 -@@ -2270,6 +2275,7 @@ func Test_popup_scrollbar() +@@ -2269,6 +2274,7 @@ func Test_popup_scrollbar() let lines =<< trim END call setline(1, range(1, 20)) diff --git a/vim.spec b/vim.spec index 4d039c36..5f8199c5 100644 --- a/vim.spec +++ b/vim.spec @@ -10,7 +10,7 @@ %bcond_with libsodium_crypt %endif -%define patchlevel 1484 +%define patchlevel 1537 %if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} %define WITH_SELINUX 1 @@ -1058,6 +1058,9 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %changelog +* Fri Jul 11 2025 Zdenek Dohnal - 2:9.1.1537-1 +- patchlevel 1537 + * Fri Jun 27 2025 Zdenek Dohnal - 2:9.1.1484-1 - patchlevel 1484 From dc29a314a521f809ec916fdcf44c08665292162c Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Mon, 14 Jul 2025 09:47:17 +0200 Subject: [PATCH 07/37] 2379759 - remove wayland-libs from vim and vi (fedora#2379759) --- vim.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/vim.spec b/vim.spec index 5f8199c5..c8af8497 100644 --- a/vim.spec +++ b/vim.spec @@ -51,7 +51,7 @@ Summary: The VIM editor URL: http://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 2 # swift.vim contains Apache 2.0 with runtime library exception: # which is taken as Apache-2.0 WITH Swift-exception - reported to legal as https://gitlab.com/fedora/legal/fedora-license-data/-/issues/188 @@ -470,6 +470,8 @@ perl -pi -e "s/vimrc/virc/" os_unix.h --enable-fips-warning \ --enable-fail-if-missing \ --disable-canberra \ + --without-wayland \ + --enable-year2038 \ --disable-libsodium %make_build @@ -532,6 +534,8 @@ mv -f os_unix.h.save os_unix.h --disable-libsodium \ %endif --enable-fail-if-missing \ + --with-wayland \ + --enable-year2038 \ --enable-canberra %make_build @@ -587,6 +591,8 @@ make clean --disable-libsodium \ %endif --enable-fail-if-missing \ + --without-wayland \ + --enable-year2038 \ --disable-canberra %make_build @@ -1058,6 +1064,9 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %changelog +* Mon Jul 14 2025 Zdenek Dohnal - 2:9.1.1537-2 +- 2379759 - remove wayland-libs from vim and vi (fedora#2379759) + * Fri Jul 11 2025 Zdenek Dohnal - 2:9.1.1537-1 - patchlevel 1537 From c1048c79306136dc40751198bb7f814fc3adf1cc Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Wed, 16 Jul 2025 07:24:18 +0200 Subject: [PATCH 08/37] - patchlevel 1552 --- sources | 2 +- vim.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 4c8cb72d..929cae9a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1537.tar.bz2) = dc2b58eb4868ccdea3ee35de617e4e4fae85b44d26c3d7fd72b8762a8e20cd7d0c7d5fdbc4af170ed2ecd900a9027b14a27e2d73180b21c9066df21dd569daa0 +SHA512 (vim-9.1-1552.tar.bz2) = f4a4ce55f1472087e0ecbd5c20b7802d08692836282fe063accd5c7503ef57057aa2e56d1d5ced329e4417148e4e4019898930ac822f872e60fd8891feedc008 diff --git a/vim.spec b/vim.spec index c8af8497..f622dab9 100644 --- a/vim.spec +++ b/vim.spec @@ -10,7 +10,7 @@ %bcond_with libsodium_crypt %endif -%define patchlevel 1537 +%define patchlevel 1552 %if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} %define WITH_SELINUX 1 @@ -51,7 +51,7 @@ Summary: The VIM editor URL: http://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 2%{?dist} +Release: 1%{?dist} Epoch: 2 # swift.vim contains Apache 2.0 with runtime library exception: # which is taken as Apache-2.0 WITH Swift-exception - reported to legal as https://gitlab.com/fedora/legal/fedora-license-data/-/issues/188 @@ -1064,6 +1064,9 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %changelog +* Wed Jul 16 2025 Zdenek Dohnal - 2:9.1.1552-1 +- patchlevel 1552 + * Mon Jul 14 2025 Zdenek Dohnal - 2:9.1.1537-2 - 2379759 - remove wayland-libs from vim and vi (fedora#2379759) From 7c60feb6e2a915e7321e84c58c2382fd1a286ae4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 20:05:12 +0000 Subject: [PATCH 09/37] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- vim.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vim.spec b/vim.spec index f622dab9..da4fa8fb 100644 --- a/vim.spec +++ b/vim.spec @@ -51,7 +51,7 @@ Summary: The VIM editor URL: http://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 2 # swift.vim contains Apache 2.0 with runtime library exception: # which is taken as Apache-2.0 WITH Swift-exception - reported to legal as https://gitlab.com/fedora/legal/fedora-license-data/-/issues/188 @@ -1064,6 +1064,9 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 2:9.1.1552-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Wed Jul 16 2025 Zdenek Dohnal - 2:9.1.1552-1 - patchlevel 1552 From 4e61579ba39d433af5c335d43075c12b0ed59813 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 1 Aug 2025 07:31:30 +0200 Subject: [PATCH 10/37] - patchlevel 1591 --- sources | 2 +- vim.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 929cae9a..9f32a8ad 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1552.tar.bz2) = f4a4ce55f1472087e0ecbd5c20b7802d08692836282fe063accd5c7503ef57057aa2e56d1d5ced329e4417148e4e4019898930ac822f872e60fd8891feedc008 +SHA512 (vim-9.1-1591.tar.bz2) = 9bddb2089e90de0aa57ae4541f8a9771e39847731e5661b00aadae2de6d62ebc0b505a3bc0a7fed36a00ad633d02367880122413bc56a24d8689613b4f0d063f diff --git a/vim.spec b/vim.spec index da4fa8fb..912be6aa 100644 --- a/vim.spec +++ b/vim.spec @@ -10,7 +10,7 @@ %bcond_with libsodium_crypt %endif -%define patchlevel 1552 +%define patchlevel 1591 %if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} %define WITH_SELINUX 1 @@ -51,7 +51,7 @@ Summary: The VIM editor URL: http://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 2%{?dist} +Release: 1%{?dist} Epoch: 2 # swift.vim contains Apache 2.0 with runtime library exception: # which is taken as Apache-2.0 WITH Swift-exception - reported to legal as https://gitlab.com/fedora/legal/fedora-license-data/-/issues/188 @@ -1064,6 +1064,9 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %changelog +* Fri Aug 01 2025 Zdenek Dohnal - 2:9.1.1591-1 +- patchlevel 1591 + * Fri Jul 25 2025 Fedora Release Engineering - 2:9.1.1552-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 9e0e978fbb6197af2706f1012d0f3325ae0e944f Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Mon, 11 Aug 2025 11:33:32 +0200 Subject: [PATCH 11/37] - patchlevel 1623 --- sources | 2 +- vim.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources b/sources index 9f32a8ad..e3183ba7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1591.tar.bz2) = 9bddb2089e90de0aa57ae4541f8a9771e39847731e5661b00aadae2de6d62ebc0b505a3bc0a7fed36a00ad633d02367880122413bc56a24d8689613b4f0d063f +SHA512 (vim-9.1-1623.tar.bz2) = dc8bf5abe856e50a43c1eb7d5f0797665bc14443738748075365cbdc6c89330d6fd4a61136d4d47078bcad6ab099e719f3a38ebe8eb6852d891127debb025faa diff --git a/vim.spec b/vim.spec index 912be6aa..05b37eb8 100644 --- a/vim.spec +++ b/vim.spec @@ -10,7 +10,7 @@ %bcond_with libsodium_crypt %endif -%define patchlevel 1591 +%define patchlevel 1623 %if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} %define WITH_SELINUX 1 @@ -1064,6 +1064,9 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %changelog +* Mon Aug 11 2025 Zdenek Dohnal - 2:9.1.1623-1 +- patchlevel 1623 + * Fri Aug 01 2025 Zdenek Dohnal - 2:9.1.1591-1 - patchlevel 1591 From 7d940e947b366f50aa2f5a8356d9430ff3ba4006 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Tue, 12 Aug 2025 08:41:08 +0200 Subject: [PATCH 12/37] Remove old conflicts --- vim.spec | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/vim.spec b/vim.spec index 05b37eb8..001976b1 100644 --- a/vim.spec +++ b/vim.spec @@ -32,6 +32,7 @@ %define withhunspell 0 %define withlua 1 %define withperl 1 + %if 0%{?flatpak} %define withruby 0 %else @@ -124,6 +125,7 @@ BuildRequires: glibc-gconv-extra # for mouse support in console BuildRequires: gpm-devel %endif + # for setting ACL on created files BuildRequires: libacl-devel @@ -149,6 +151,7 @@ BuildRequires: lua-devel BuildRequires: make # screen handling library BuildRequires: ncurses-devel + # for perl plugin %if "%{withperl}" == "1" BuildRequires: perl-devel @@ -156,6 +159,7 @@ BuildRequires: perl-generators BuildRequires: perl(ExtUtils::Embed) BuildRequires: perl(ExtUtils::ParseXS) %endif + # for python plugin BuildRequires: python3-devel @@ -174,24 +178,12 @@ multiple windows, multi-level undo, block highlighting and more. %package common Summary: The common files needed by any version of the VIM editor -# conflicts in package because of manpage move (bug #1599663) -# conflicts because of defaults.vim (bug #2026651) -# remove after F36 EOL+after release CentOS Stream > 9 -Conflicts: %{name}-minimal < %{epoch}:8.2.3642-2 # shared files between common and minimal Requires: %{name}-data = %{epoch}:%{version}-%{release} Requires: %{name}-filesystem # the hexdump binary was part of the package for long time, ship it with it # still for convenience Requires: xxd -# vim-toml was a separate package but the runtime files have been included -# directly in vim since 8.2.3519. The vim-toml package has been retired in -# Fedora, obsolete it so it doesn't get left on users' systems. Added in F38, -# can be removed in F40. -# https://github.com/cespare/vim-toml/commit/2c8983cc391287e5e26e015c3ab9c38de9f9b759 -# https://github.com/vim/vim/commit/2286304cdbba53ceb52b3ba2ba4a521b0a2f8d0f -Provides: vim-toml = %{epoch}:%{version}-%{release} -Obsoletes: vim-toml < 0^1.717bd87-4 %description common VIM (VIsual editor iMproved) is an updated and improved version of the @@ -214,10 +206,6 @@ many different languages. %package minimal Summary: A minimal version of the VIM editor -# conflicts in package because of manpage move (bug #1599663) -# conflicts because of defaults.vim (bug #2026651) -# remove after F36 EOL+after release CentOS Stream > 9 -Conflicts: %{name}-common < %{epoch}:8.2.3642-2 Provides: vi Provides: %{_bindir}/vi # shared files between common and minimal @@ -364,11 +352,6 @@ vim-common package. %package data Summary: Shared data for Vi and Vim BuildArch: noarch -# moved files from filesystem, common and minimal to data -# remove after F36 EOL+after release of CentOS Stream > 9 -Conflicts: %{name}-common < 2:8.2.3642-2 -Conflicts: %{name}-filesystem < 2:8.2.3642-2 -Conflicts: %{name}-minimal < 2:8.2.3642-2 %description data The subpackage is used for shipping files and directories, which need to be @@ -388,10 +371,6 @@ This subpackage contains files needed to set Vim as the default editor. %package -n xxd Summary: A hex dump utility -# the xxd related file were shipped in vim-common in the past, -# we have to conflict with the old ones -# remove this Conflicts once C10S is released -Conflicts: %{name}-common < 2:9.0.1440-2 %description -n xxd xxd creates a hex dump of a given file or standard input. It can also convert From 698ce32e164adbb1333dc5ccd7bf2a8b73590ba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Tue, 12 Aug 2025 10:15:09 +0200 Subject: [PATCH 13/37] Update of fmf plans --- gating.yaml | 10 +++++----- plans.fmf | 35 +++++++++++++++++++++++++++++++++++ plans/public.fmf | 6 ------ plans/tier1-internal.fmf | 12 ------------ 4 files changed, 40 insertions(+), 23 deletions(-) create mode 100644 plans.fmf delete mode 100644 plans/public.fmf delete mode 100644 plans/tier1-internal.fmf diff --git a/gating.yaml b/gating.yaml index 3c35f7d3..80852883 100644 --- a/gating.yaml +++ b/gating.yaml @@ -4,8 +4,8 @@ product_versions: decision_context: bodhi_update_push_testing subject_type: koji_build rules: - - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/public.functional} - + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1-public.functional} + #Rawhide --- !Policy product_versions: @@ -13,13 +13,13 @@ product_versions: decision_context: bodhi_update_push_stable subject_type: koji_build rules: - - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/public.functional} - + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/tier1-public.functional} + #gating rhel --- !Policy product_versions: - rhel-* decision_context: osci_compose_gate rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-public.functional} - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/tier1-internal.functional} - - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/public.functional} diff --git a/plans.fmf b/plans.fmf new file mode 100644 index 00000000..0b2564f3 --- /dev/null +++ b/plans.fmf @@ -0,0 +1,35 @@ +/tier1-internal: + plan: + import: + url: https://gitlab.com/redhat/centos-stream/tests/vim.git + name: /plans/tier1/internal + +/tier1-public: + plan: + import: + url: https://gitlab.com/redhat/centos-stream/tests/vim.git + name: /plans/tier1/public + +/tier2-tier3-internal: + plan: + import: + url: https://gitlab.com/redhat/centos-stream/tests/vim.git + name: /plans/tier2-tier3/internal + +/tier2-tier3-public: + plan: + import: + url: https://gitlab.com/redhat/centos-stream/tests/vim.git + name: /plans/tier2-tier3/public + +/others-internal: + plan: + import: + url: https://gitlab.com/redhat/centos-stream/tests/vim.git + name: /plans/others/internal + +/others-public: + plan: + import: + url: https://gitlab.com/redhat/centos-stream/tests/vim.git + name: /plans/others/public \ No newline at end of file diff --git a/plans/public.fmf b/plans/public.fmf deleted file mode 100644 index 880a0d4c..00000000 --- a/plans/public.fmf +++ /dev/null @@ -1,6 +0,0 @@ -summary: Test plan with all Fedora tests -discover: - how: fmf - url: https://src.fedoraproject.org/tests/vim.git -execute: - how: tmt diff --git a/plans/tier1-internal.fmf b/plans/tier1-internal.fmf deleted file mode 100644 index 1e8030df..00000000 --- a/plans/tier1-internal.fmf +++ /dev/null @@ -1,12 +0,0 @@ -summary: CI plan, picks internal Tier1 tests, runs in beakerlib. -discover: - - name: rhel - how: fmf - filter: 'tier: 1' - url: https://pkgs.devel.redhat.com/git/tests/vim -execute: - how: tmt -adjust: - enabled: false - when: distro == centos-stream or distro == fedora - because: They don't have access to internal repos. From dbca97ea2417684d6842d8926c4739a8aca4cb6e Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Tue, 12 Aug 2025 11:55:11 +0200 Subject: [PATCH 14/37] SPEC file cleanup - renumber patches - move conditional stuff at the end of each sections --- vim.spec | 403 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 214 insertions(+), 189 deletions(-) diff --git a/vim.spec b/vim.spec index 001976b1..2d5a1a14 100644 --- a/vim.spec +++ b/vim.spec @@ -1,5 +1,6 @@ %bcond_without gui + %if 0%{?fedora} %bcond_without default_editor %bcond_without gpm @@ -10,7 +11,24 @@ %bcond_with libsodium_crypt %endif + %define patchlevel 1623 +%define withnetbeans 1 + +%define withvimspell 0 +%define withhunspell 0 +%define withlua 1 +%define withperl 1 + +# VIm upstream wants to build with FORTIFY_SOURCE=1, +# because higher levels causes crashes of valid code constructs +# and their reimplementation would cost unnecessary maintenance +# https://github.com/vim/vim/pull/3507 +%define _fortify_level 1 + +%define baseversion 9.1 +%define vimdir vim91 + %if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} %define WITH_SELINUX 1 @@ -26,27 +44,12 @@ %define desktop_file_utils_version 0.2.93 %endif -%define withnetbeans 1 - -%define withvimspell 0 -%define withhunspell 0 -%define withlua 1 -%define withperl 1 - %if 0%{?flatpak} %define withruby 0 %else %define withruby 1 %endif -# VIm upstream wants to build with FORTIFY_SOURCE=1, -# because higher levels causes crashes of valid code constructs -# and their reimplementation would cost unnecessary maintenance -# https://github.com/vim/vim/pull/3507 -%define _fortify_level 1 - -%define baseversion 9.1 -%define vimdir vim91 Summary: The VIM editor URL: http://www.vim.org/ @@ -83,34 +86,26 @@ Source100: vim-spell-files.tar.bz2 %endif -Patch2000: vim-7.0-fixkeys.patch -Patch2001: vim-7.4-specsyntax.patch - -%if %{withhunspell} -Patch2002: vim-7.0-hunspell.patch -BuildRequires: hunspell-devel -%endif - -Patch3000: vim-7.3-manpage-typo-668894-675480.patch -Patch3001: vim-manpagefixes-948566.patch -Patch3002: vim-7.4-globalsyntax.patch +Patch1: vim-7.0-fixkeys.patch +Patch2: vim-7.4-specsyntax.patch +Patch3: vim-7.3-manpage-typo-668894-675480.patch +Patch4: vim-manpagefixes-948566.patch +Patch5: vim-7.4-globalsyntax.patch # migrate shebangs in script to /usr/bin/python3 and use python2 when necessary -Patch3003: vim-python3-tests.patch +Patch6: vim-python3-tests.patch # fips warning (Fedora downstream patch) -Patch3004: vim-crypto-warning.patch +Patch7: vim-crypto-warning.patch # don't ever set mouse (Fedora downstream patch) -Patch3005: vim-8.0-copy-paste.patch +Patch8: vim-8.0-copy-paste.patch + + +# patch only when hunspell is enabled +Patch10000: vim-7.0-hunspell.patch # uses autoconf in spec file BuildRequires: autoconf -%if %{desktop_file} -# for /usr/bin/desktop-file-install -BuildRequires: desktop-file-utils >= %{desktop_file_utils_version} -Requires: desktop-file-utils -%endif - # gcc is no longer in buildroot by default BuildRequires: gcc # for translations @@ -121,17 +116,34 @@ BuildRequires: gettext # formats during compilation. BuildRequires: glibc-gconv-extra +# for setting ACL on created files +BuildRequires: libacl-devel + +# uses libtool for linking +BuildRequires: libtool + +# uses make +BuildRequires: make +# screen handling library +BuildRequires: ncurses-devel + +# for python plugin +BuildRequires: python3-devel + + +%if %{desktop_file} +# for /usr/bin/desktop-file-install +BuildRequires: desktop-file-utils >= %{desktop_file_utils_version} +Requires: desktop-file-utils +%endif + %if %{with gpm} # for mouse support in console BuildRequires: gpm-devel %endif -# for setting ACL on created files -BuildRequires: libacl-devel - -# selinux support -%if %{WITH_SELINUX} -BuildRequires: libselinux-devel +%if %{withhunspell} +BuildRequires: hunspell-devel %endif # for xchacha20 encryption @@ -139,19 +151,11 @@ BuildRequires: libselinux-devel BuildRequires: libsodium-devel %endif -# uses libtool for linking -BuildRequires: libtool - # for lua plugin %if "%{withlua}" == "1" BuildRequires: lua-devel %endif -# uses make -BuildRequires: make -# screen handling library -BuildRequires: ncurses-devel - # for perl plugin %if "%{withperl}" == "1" BuildRequires: perl-devel @@ -160,15 +164,17 @@ BuildRequires: perl(ExtUtils::Embed) BuildRequires: perl(ExtUtils::ParseXS) %endif -# for python plugin -BuildRequires: python3-devel - # for ruby plugin %if "%{withruby}" == "1" BuildRequires: ruby BuildRequires: ruby-devel %endif +# selinux support +%if %{WITH_SELINUX} +BuildRequires: libselinux-devel +%endif + %description VIM (VIsual editor iMproved) is an updated and improved version of the @@ -176,6 +182,7 @@ vi editor. Vi was the first real screen-based editor for UNIX, and is still very popular. VIM improves on vi by adding new features: multiple windows, multi-level undo, block highlighting and more. + %package common Summary: The common files needed by any version of the VIM editor # shared files between common and minimal @@ -196,6 +203,7 @@ order to run. If you are installing vim-enhanced or vim-X11, you'll also need to install the vim-common package. + %package spell Summary: The dictionaries for spell checking. This package is optional Requires: vim-common = %{epoch}:%{version}-%{release} @@ -204,6 +212,7 @@ Requires: vim-common = %{epoch}:%{version}-%{release} This subpackage contains dictionaries for vim spell checking in many different languages. + %package minimal Summary: A minimal version of the VIM editor Provides: vi @@ -220,6 +229,7 @@ vim-minimal package includes a minimal version of VIM, providing the commands vi, view, ex, rvi, and rview. NOTE: The online help is only available when the vim-common package is installed. + %package enhanced Summary: A version of the VIM editor which includes recent enhancements # vim bundles libvterm, which is used during build - so we need to provide @@ -232,6 +242,9 @@ Provides: %{_bindir}/vim Requires: vim-common = %{epoch}:%{version}-%{release} # required for vimtutor (#395371) Requires: which +Suggests: python3 +Suggests: python3-libs + # suggest python3, python2, lua, ruby and perl packages because of their # embedded functionality in Vim/GVim %if "%{withlua}" == "1" @@ -242,9 +255,6 @@ Suggests: lua-libs Suggests: perl-devel %endif -Suggests: python3 -Suggests: python3-libs - %if "%{withruby}" == "1" Suggests: ruby Suggests: ruby-libs @@ -263,6 +273,7 @@ VIM editor which includes recently added enhancements like interpreters for the Python and Perl scripting languages. You'll also need to install the vim-common package. + %package filesystem Summary: VIM filesystem layout BuildArch: noarch @@ -271,6 +282,36 @@ BuildArch: noarch This package provides some directories which are required by other packages that add vim files, p.e. additional syntax files or filetypes. + +%package data +Summary: Shared data for Vi and Vim +BuildArch: noarch + +%description data +The subpackage is used for shipping files and directories, which need to be +shared between vim-minimal and vim-common packages. + + +%package -n xxd +Summary: A hex dump utility + +%description -n xxd +xxd creates a hex dump of a given file or standard input. It can also convert +a hex dump back to its original binary form. + + +%if %{with default_editor} +%package default-editor +Summary: Set vim as the default editor +BuildArch: noarch +Conflicts: system-default-editor +Provides: system-default-editor +Requires: vim-enhanced + +%description default-editor +This subpackage contains files needed to set Vim as the default editor. +%endif + %if %{with gui} %package X11 Summary: The VIM version of the vi editor for the X Window System - GVim @@ -298,25 +339,27 @@ Provides: vim(plugins-supported) Provides: %{_bindir}/mergetool Provides: %{_bindir}/gvim -%if 0%{?fedora} >= 40 || 0%{?rhel} > 9 # glib2 in Fedora 40 introduced a new function, which is not used in GVim, but it is present # in compiled gvim binary as symbol when Vim is compiled with glib2-2.79.1 # there does not seem to be a better solution than version based requires on glib2... # https://bugzilla.redhat.com/show_bug.cgi?id=2262371 Requires: glib2 >= 2.79.1 -%endif # GVIM graphics are based on GTK3 Requires: gtk3 # needed for icons (#226526) Requires: hicolor-icon-theme -%if 0%{?fedora} >= 41 -# needed for icons (#2277751) -Requires: gdk-pixbuf2-modules-extra%{?_isa} -%endif # for getting/setting extended attributes - they are pairs (name:value) # from inodes (files, dirs etc.) Requires: libattr >= 2.4 Requires: vim-common = %{epoch}:%{version}-%{release} +Suggests: python3 +Suggests: python3-libs + + %if 0%{?fedora} >= 41 + # needed for icons (#2277751) +Requires: gdk-pixbuf2-modules-extra%{?_isa} + %endif + # suggest python3, python2, lua, ruby and perl packages because of their # embedded functionality in Vim/GVim %if "%{withlua}" == "1" @@ -327,9 +370,6 @@ Suggests: lua-libs Suggests: perl-devel %endif -Suggests: python3 -Suggests: python3-libs - %if "%{withruby}" == "1" Suggests: ruby Suggests: ruby-libs @@ -349,63 +389,36 @@ with graphics and mouse capabilities. You'll also need to install the vim-common package. %endif -%package data -Summary: Shared data for Vi and Vim -BuildArch: noarch - -%description data -The subpackage is used for shipping files and directories, which need to be -shared between vim-minimal and vim-common packages. - -%if %{with default_editor} -%package default-editor -Summary: Set vim as the default editor -BuildArch: noarch -Conflicts: system-default-editor -Provides: system-default-editor -Requires: vim-enhanced - -%description default-editor -This subpackage contains files needed to set Vim as the default editor. -%endif - -%package -n xxd -Summary: A hex dump utility - -%description -n xxd -xxd creates a hex dump of a given file or standard input. It can also convert -a hex dump back to its original binary form. - %prep %setup -q -b 0 -n %{vimdir} # use %%{__python3} macro for defining shebangs in python3 tests -sed -i -e 's,/usr/bin/python3,%{__python3},' %{PATCH3005} +sed -i -e 's,/usr/bin/python3,%{__python3},' %{PATCH6} # fix rogue dependencies from sample code chmod -x runtime/tools/mve.awk -%patch -P 2000 -p1 -b .fixkeys -%patch -P 2001 -p1 -b .spec-syntax - -%if %{withhunspell} -%patch -P 2002 -p1 -%endif +%patch -P 1 -p1 -b .fixkeys +%patch -P 2 -p1 -b .spec-syntax perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk +%patch -P 3 -p1 -b .mantypo +%patch -P 4 -p1 -b .manpagefixes +%patch -P 5 -p1 -b .globalsyntax +%patch -P 6 -p1 -b .python-tests +%patch -P 7 -p1 -b .fips-warning +%patch -P 8 -p1 -b .copypaste + +%if %{withhunspell} +%patch -P 10000 -p1 +%endif + # install spell files %if %{withvimspell} %{__tar} xjf %{SOURCE100} %endif -%patch -P 3000 -p1 -b .mantypo -%patch -P 3001 -p1 -b .manpagefixes -%patch -P 3002 -p1 -b .globalsyntax -%patch -P 3003 -p1 -b .python-tests -%patch -P 3004 -p1 -b .fips-warning -%patch -P 3005 -p1 -b .copypaste - %build cd src @@ -457,71 +470,9 @@ perl -pi -e "s/vimrc/virc/" os_unix.h cp vim minimal-vim make clean + mv -f os_unix.h.save os_unix.h -%if %{with gui} -# More configure options: -# --enable-xim - enabling X Input Method - international input module for X, -# it is for multibyte languages in Vim with X -# --enable-termtruecolor - use terminal with true colors - -%configure CFLAGS="${CFLAGS} -DSYS_VIMRC_FILE='\"/etc/vimrc\"'" \ - --with-features=huge \ - --enable-python3interp=dynamic \ - --with-python3-stable-abi \ - --disable-tclinterp --with-x=yes \ - --enable-xim --enable-multibyte \ - --with-tlib=ncurses \ - --enable-gtk3-check --enable-gui=gtk3 \ - --enable-fips-warning \ - --with-compiledby="" --enable-cscope \ - --with-modified-by="" \ -%if %{with gpm} - --enable-gpm \ -%else - --disable-gpm \ -%endif - %if "%{withnetbeans}" == "1" - --enable-netbeans \ - %else - --disable-netbeans \ - %endif - %if %{WITH_SELINUX} - --enable-selinux \ - %else - --disable-selinux \ - %endif - %if "%{withperl}" == "1" - --enable-perlinterp=dynamic \ - --with-xsubpp=$(which xsubpp) \ - %else - --disable-perlinterp \ - %endif - %if "%{withruby}" == "1" - --enable-rubyinterp=dynamic \ - %else - --disable-rubyinterp \ - %endif - %if "%{withlua}" == "1" - --enable-luainterp=dynamic \ - %else - --disable-luainterp \ - %endif - %if %{with libsodium_crypt} - --enable-libsodium \ - %else - --disable-libsodium \ - %endif - --enable-fail-if-missing \ - --with-wayland \ - --enable-year2038 \ - --enable-canberra - -%make_build -cp vim gvim -make clean -%endif - %configure CFLAGS="${CFLAGS} -DSYS_VIMRC_FILE='\"/etc/vimrc\"'" \ --prefix=%{_prefix} --with-features=huge \ --enable-python3interp=dynamic \ @@ -577,6 +528,71 @@ make clean %make_build cp vim enhanced-vim + +%if %{with gui} +# More configure options: +# --enable-xim - enabling X Input Method - international input module for X, +# it is for multibyte languages in Vim with X +# --enable-termtruecolor - use terminal with true colors + +%configure CFLAGS="${CFLAGS} -DSYS_VIMRC_FILE='\"/etc/vimrc\"'" \ + --with-features=huge \ + --enable-python3interp=dynamic \ + --with-python3-stable-abi \ + --disable-tclinterp --with-x=yes \ + --enable-xim --enable-multibyte \ + --with-tlib=ncurses \ + --enable-gtk3-check --enable-gui=gtk3 \ + --enable-fips-warning \ + --with-compiledby="" --enable-cscope \ + --with-modified-by="" \ + %if %{with gpm} + --enable-gpm \ + %else + --disable-gpm \ + %endif + %if "%{withnetbeans}" == "1" + --enable-netbeans \ + %else + --disable-netbeans \ + %endif + %if %{WITH_SELINUX} + --enable-selinux \ + %else + --disable-selinux \ + %endif + %if "%{withperl}" == "1" + --enable-perlinterp=dynamic \ + --with-xsubpp=$(which xsubpp) \ + %else + --disable-perlinterp \ + %endif + %if "%{withruby}" == "1" + --enable-rubyinterp=dynamic \ + %else + --disable-rubyinterp \ + %endif + %if "%{withlua}" == "1" + --enable-luainterp=dynamic \ + %else + --disable-luainterp \ + %endif + %if %{with libsodium_crypt} + --enable-libsodium \ + %else + --disable-libsodium \ + %endif + --enable-fail-if-missing \ + --with-wayland \ + --enable-year2038 \ + --enable-canberra + +%make_build +cp vim gvim +make clean +%endif + + %install mkdir -p %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_datadir}/%{name}/vimfiles/{after,autoload,colors,compiler,doc,ftdetect,ftplugin,indent,keymap,lang,plugin,print,spell,syntax,tutor} @@ -585,12 +601,12 @@ cp -f %{SOURCE7} %{buildroot}/%{_datadir}/%{name}/vimfiles/template.spec # Those aren't Linux info files but some binary files for Amiga: rm -f README*.info - cd src # Adding STRIP=/bin/true, because Vim wants to strip the binaries by himself # and put the stripped files into correct dirs. Build system (koji/brew) # does it for us, so there is no need to do it in Vim %make_install BINDIR=%{_bindir} STRIP=/bin/true + # make install creates vim binary and view symlink, they will be wrappers # so remove them here rm -f %{buildroot}%{_bindir}/{vim,view} @@ -677,7 +693,7 @@ EOF appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*.appdata.xml -for i in gvim.1 gex.1 gview.1 vimx.1; do +for i in gvim.1 gex.1 gview.1 vimx.1 eview.1 rgvim.1 rgview.1; do echo ".so man1/vim.1" > %{buildroot}/%{_mandir}/man1/$i done echo ".so man1/vimdiff.1" > %{buildroot}/%{_mandir}/man1/gvimdiff.1 @@ -690,9 +706,9 @@ rm %{buildroot}/%{_datadir}/icons/{hicolor,locolor}/*/apps/gvim.png %endif ( cd %{buildroot} - ln -sf %{_libexecdir}/vi .%{_bindir}/rvi - ln -sf %{_libexecdir}/vi .%{_bindir}/rview - ln -sf %{_libexecdir}/vi .%{_bindir}/ex + ln -sf .%{_libexecdir}/vi .%{_bindir}/rvi + ln -sf .%{_libexecdir}/vi .%{_bindir}/rview + ln -sf .%{_libexecdir}/vi .%{_bindir}/ex ln -sf vim .%{_bindir}/rvim ln -sf vim .%{_bindir}/vimdiff perl -pi -e "s,%{buildroot},," .%{_mandir}/man1/vim.1 .%{_mandir}/man1/vimtutor.1 @@ -705,10 +721,13 @@ rm %{buildroot}/%{_datadir}/icons/{hicolor,locolor}/*/apps/gvim.png ln -sf vim.1.gz .%{_mandir}/man1/vimdiff.1.gz %if %{with gui} + ln -sf gvim ./%{_bindir}/evim + ln -sf gvim ./%{_bindir}/eview ln -sf gvim ./%{_bindir}/gview ln -sf gvim ./%{_bindir}/gex - ln -sf gvim ./%{_bindir}/evim ln -sf gvim ./%{_bindir}/gvimdiff + ln -sf gvim ./%{_bindir}/rgvim + ln -sf gvim ./%{_bindir}/rgview ln -sf gvim ./%{_bindir}/vimx %if "%{desktop_file}" == "1" @@ -738,21 +757,6 @@ mkdir -p %{buildroot}%{_sysconfdir} install -p -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/virc install -p -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/vimrc -# if Vim isn't built for Fedora, use redhat augroup -%if 0%{?rhel} >= 7 -sed -i -e "s/augroup fedora/augroup redhat/" %{buildroot}/%{_sysconfdir}/vimrc -sed -i -e "s/augroup fedora/augroup redhat/" %{buildroot}/%{_sysconfdir}/virc -%endif - -%if %{with default_editor} -mkdir -p %{buildroot}/%{_sysconfdir}/profile.d -install -p -m644 %{SOURCE9} %{buildroot}/%{_sysconfdir}/profile.d/vim-default-editor.sh -install -p -m644 %{SOURCE10} %{buildroot}/%{_sysconfdir}/profile.d/vim-default-editor.csh -mkdir -p %{buildroot}/%{_datadir}/fish/vendor_conf.d/ -install -p -m644 %{SOURCE11} %{buildroot}/%{_datadir}/fish/vendor_conf.d/vim-default-editor.fish -mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ -%endif - mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d/ install -p -m644 %{SOURCE8} %{buildroot}%{_rpmconfigdir}/macros.d/ @@ -789,6 +793,21 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/LICENSE rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt +# if Vim isn't built for Fedora, use redhat augroup +%if 0%{?rhel} >= 7 +sed -i -e "s/augroup fedora/augroup redhat/" %{buildroot}/%{_sysconfdir}/vimrc +sed -i -e "s/augroup fedora/augroup redhat/" %{buildroot}/%{_sysconfdir}/virc +%endif + +%if %{with default_editor} +mkdir -p %{buildroot}/%{_sysconfdir}/profile.d +install -p -m644 %{SOURCE9} %{buildroot}/%{_sysconfdir}/profile.d/vim-default-editor.sh +install -p -m644 %{SOURCE10} %{buildroot}/%{_sysconfdir}/profile.d/vim-default-editor.csh +mkdir -p %{buildroot}/%{_datadir}/fish/vendor_conf.d/ +install -p -m644 %{SOURCE11} %{buildroot}/%{_datadir}/fish/vendor_conf.d/vim-default-editor.fish +mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ +%endif + # Refresh documentation helptags %transfiletriggerin common -- %{_datadir}/%{name}/vimfiles/doc @@ -878,9 +897,12 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %{_mandir}/man5/vimrc.* %if %{with gui} +%{_mandir}/man1/eview.* %{_mandir}/man1/gex.* %{_mandir}/man1/gview.* %{_mandir}/man1/gvim* +%{_mandir}/man1/rgvim.* +%{_mandir}/man1/rgview.* %{_mandir}/man1/vimx.* %endif @@ -1010,6 +1032,9 @@ rm %{buildroot}%{_datadir}/%{name}/%{vimdir}/README.txt %{_bindir}/vimtutor %{_bindir}/vimx %{_bindir}/evim +%{_bindir}/eview +%{_bindir}/rgvim +%{_bindir}/rgview %{_mandir}/man1/evim.* %dir %{_datadir}/icons/hicolor %dir %{_datadir}/icons/hicolor/* From beb553458e031a8eaa90c5f87de09d9617fdbfeb Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Tue, 12 Aug 2025 12:24:50 +0200 Subject: [PATCH 15/37] Remove vimspell conditions and subpackage The source used for spell package was removed in Vim 7.1, and the package was not built at least for 9 years, so IMO no need to obsolete the package. --- vim.spec | 80 -------------------------------------------------------- 1 file changed, 80 deletions(-) diff --git a/vim.spec b/vim.spec index 2d5a1a14..dd667eca 100644 --- a/vim.spec +++ b/vim.spec @@ -15,7 +15,6 @@ %define patchlevel 1623 %define withnetbeans 1 -%define withvimspell 0 %define withhunspell 0 %define withlua 1 %define withperl 1 @@ -81,10 +80,6 @@ Source11: vim-default-editor.fish Source12: view_wrapper Source13: vi_wrapper -%if %{withvimspell} -Source100: vim-spell-files.tar.bz2 -%endif - Patch1: vim-7.0-fixkeys.patch Patch2: vim-7.4-specsyntax.patch @@ -204,15 +199,6 @@ If you are installing vim-enhanced or vim-X11, you'll also need to install the vim-common package. -%package spell -Summary: The dictionaries for spell checking. This package is optional -Requires: vim-common = %{epoch}:%{version}-%{release} - -%description spell -This subpackage contains dictionaries for vim spell checking in -many different languages. - - %package minimal Summary: A minimal version of the VIM editor Provides: vi @@ -414,11 +400,6 @@ perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk %patch -P 10000 -p1 %endif -# install spell files -%if %{withvimspell} -%{__tar} xjf %{SOURCE100} -%endif - %build cd src @@ -842,11 +823,7 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %{_datadir}/%{name}/%{vimdir}/print %{_datadir}/%{name}/%{vimdir}/syntax %{_datadir}/%{name}/%{vimdir}/tutor - -%if ! %{withvimspell} %{_datadir}/%{name}/%{vimdir}/spell -%endif - %lang(af) %{_datadir}/%{name}/%{vimdir}/lang/af %lang(ca) %{_datadir}/%{name}/%{vimdir}/lang/ca %lang(cs) %{_datadir}/%{name}/%{vimdir}/lang/cs @@ -915,63 +892,6 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %lang(ru) %{_mandir}/ru/man1/* %lang(tr) %{_mandir}/tr/man1/* -%if %{withvimspell} -%files spell -%dir %{_datadir}/%{name}/%{vimdir}/spell -%{_datadir}/%{name}/vim70/spell/cleanadd.vim -%lang(af) %{_datadir}/%{name}/%{vimdir}/spell/af.* -%lang(am) %{_datadir}/%{name}/%{vimdir}/spell/am.* -%lang(bg) %{_datadir}/%{name}/%{vimdir}/spell/bg.* -%lang(ca) %{_datadir}/%{name}/%{vimdir}/spell/ca.* -%lang(cs) %{_datadir}/%{name}/%{vimdir}/spell/cs.* -%lang(cy) %{_datadir}/%{name}/%{vimdir}/spell/cy.* -%lang(da) %{_datadir}/%{name}/%{vimdir}/spell/da.* -%lang(de) %{_datadir}/%{name}/%{vimdir}/spell/de.* -%lang(el) %{_datadir}/%{name}/%{vimdir}/spell/el.* -%lang(en) %{_datadir}/%{name}/%{vimdir}/spell/en.* -%lang(eo) %{_datadir}/%{name}/%{vimdir}/spell/eo.* -%lang(es) %{_datadir}/%{name}/%{vimdir}/spell/es.* -%lang(fo) %{_datadir}/%{name}/%{vimdir}/spell/fo.* -%lang(fr) %{_datadir}/%{name}/%{vimdir}/spell/fr.* -%lang(ga) %{_datadir}/%{name}/%{vimdir}/spell/ga.* -%lang(gd) %{_datadir}/%{name}/%{vimdir}/spell/gd.* -%lang(gl) %{_datadir}/%{name}/%{vimdir}/spell/gl.* -%lang(he) %{_datadir}/%{name}/%{vimdir}/spell/he.* -%lang(hr) %{_datadir}/%{name}/%{vimdir}/spell/hr.* -%lang(hu) %{_datadir}/%{name}/%{vimdir}/spell/hu.* -%lang(id) %{_datadir}/%{name}/%{vimdir}/spell/id.* -%lang(it) %{_datadir}/%{name}/%{vimdir}/spell/it.* -%lang(ku) %{_datadir}/%{name}/%{vimdir}/spell/ku.* -%lang(la) %{_datadir}/%{name}/%{vimdir}/spell/la.* -%lang(lt) %{_datadir}/%{name}/%{vimdir}/spell/lt.* -%lang(lv) %{_datadir}/%{name}/%{vimdir}/spell/lv.* -%lang(mg) %{_datadir}/%{name}/%{vimdir}/spell/mg.* -%lang(mi) %{_datadir}/%{name}/%{vimdir}/spell/mi.* -%lang(ms) %{_datadir}/%{name}/%{vimdir}/spell/ms.* -%lang(nb) %{_datadir}/%{name}/%{vimdir}/spell/nb.* -%lang(nl) %{_datadir}/%{name}/%{vimdir}/spell/nl.* -%lang(nn) %{_datadir}/%{name}/%{vimdir}/spell/nn.* -%lang(ny) %{_datadir}/%{name}/%{vimdir}/spell/ny.* -%lang(pl) %{_datadir}/%{name}/%{vimdir}/spell/pl.* -%lang(pt) %{_datadir}/%{name}/%{vimdir}/spell/pt.* -%lang(ro) %{_datadir}/%{name}/%{vimdir}/spell/ro.* -%lang(ru) %{_datadir}/%{name}/%{vimdir}/spell/ru.* -%lang(rw) %{_datadir}/%{name}/%{vimdir}/spell/rw.* -%lang(sk) %{_datadir}/%{name}/%{vimdir}/spell/sk.* -%lang(sl) %{_datadir}/%{name}/%{vimdir}/spell/sl.* -%lang(sr) %{_datadir}/%{name}/%{vimdir}/spell/sr.* -%lang(sv) %{_datadir}/%{name}/%{vimdir}/spell/sv.* -%lang(sw) %{_datadir}/%{name}/%{vimdir}/spell/sw.* -%lang(tet) %{_datadir}/%{name}/%{vimdir}/spell/tet.* -%lang(th) %{_datadir}/%{name}/%{vimdir}/spell/th.* -%lang(tl) %{_datadir}/%{name}/%{vimdir}/spell/tl.* -%lang(tn) %{_datadir}/%{name}/%{vimdir}/spell/tn.* -%lang(uk) %{_datadir}/%{name}/%{vimdir}/spell/uk.* -%lang(yi) %{_datadir}/%{name}/%{vimdir}/spell/yi.* -%lang(yi-tr) %{_datadir}/%{name}/%{vimdir}/spell/yi-tr.* -%lang(zu) %{_datadir}/%{name}/%{vimdir}/spell/zu.* -%endif - %files minimal %config(noreplace) %{_sysconfdir}/virc %{_bindir}/ex From d957d1e818dcbc5240086028ac36b334921f3cac Mon Sep 17 00:00:00 2001 From: Carl George Date: Thu, 14 Aug 2025 14:37:56 -0500 Subject: [PATCH 16/37] Switch to https URL --- vim.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim.spec b/vim.spec index dd667eca..0e563439 100644 --- a/vim.spec +++ b/vim.spec @@ -51,7 +51,7 @@ Summary: The VIM editor -URL: http://www.vim.org/ +URL: https://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} Release: 1%{?dist} From 66e29232183f010f436e96d1e28ba4c364fc5222 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 29 Aug 2025 09:12:07 +0200 Subject: [PATCH 17/37] Enable F43 --- vim-update.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vim-update.sh b/vim-update.sh index 81b69dee..4961ece1 100755 --- a/vim-update.sh +++ b/vim-update.sh @@ -1,12 +1,12 @@ #!/bin/bash debug="" #debug="echo " -branches=( "rawhide" "f42" "f41" ) -releases=( "fc43" "fc42" "fc41" ) +branches=( "rawhide" "f43" "f42" "f41" ) +releases=( "fc44" "fc43" "fc42" "fc41" ) # the first bodhi enabled release is the last without \| - all # others need to have \| -regexps=( "fc43" "fc42" "\|fc41" ) -bodhi_enabled=( "0" "1" "1" ) +regexps=( "fc44" "fc43" "\|fc42" "\|fc41" ) +bodhi_enabled=( "0" "1" "1" "1" ) needs_update=() #releases_regexp=fc28\\\|fc27\\\|fc28 From fd5559a02c11023a0eb6c6c52b7de8aa0d0b3fba Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 29 Aug 2025 09:13:35 +0200 Subject: [PATCH 18/37] - patchlevel 1706 --- sources | 2 +- vim.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources b/sources index e3183ba7..c20b1ad4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1623.tar.bz2) = dc8bf5abe856e50a43c1eb7d5f0797665bc14443738748075365cbdc6c89330d6fd4a61136d4d47078bcad6ab099e719f3a38ebe8eb6852d891127debb025faa +SHA512 (vim-9.1-1706.tar.bz2) = 4b936add54c8068202dedc532202af6d78d951144b74dcc5015e4f7fcf8c4c384509c14f1036579b39c176110cd78eea257601d8e16bd63a410f7290a9d1174b diff --git a/vim.spec b/vim.spec index 0e563439..0ff8cf2e 100644 --- a/vim.spec +++ b/vim.spec @@ -12,7 +12,7 @@ %endif -%define patchlevel 1623 +%define patchlevel 1706 %define withnetbeans 1 %define withhunspell 0 @@ -988,6 +988,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Fri Aug 29 2025 Zdenek Dohnal - 2:9.1.1706-1 +- patchlevel 1706 + * Mon Aug 11 2025 Zdenek Dohnal - 2:9.1.1623-1 - patchlevel 1623 From f114e7eb6592af68ec1f258876ec700d71ba0d5b Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Mon, 1 Sep 2025 10:52:44 +0200 Subject: [PATCH 19/37] broken /usr/bin/ex symlink in vim-9.1.1706-1.fc42 (fedora#2392249) --- vim.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/vim.spec b/vim.spec index 0ff8cf2e..8487228c 100644 --- a/vim.spec +++ b/vim.spec @@ -54,7 +54,7 @@ Summary: The VIM editor URL: https://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 2 # swift.vim contains Apache 2.0 with runtime library exception: # which is taken as Apache-2.0 WITH Swift-exception - reported to legal as https://gitlab.com/fedora/legal/fedora-license-data/-/issues/188 @@ -687,9 +687,9 @@ rm %{buildroot}/%{_datadir}/icons/{hicolor,locolor}/*/apps/gvim.png %endif ( cd %{buildroot} - ln -sf .%{_libexecdir}/vi .%{_bindir}/rvi - ln -sf .%{_libexecdir}/vi .%{_bindir}/rview - ln -sf .%{_libexecdir}/vi .%{_bindir}/ex + ln -sf ../..%{_libexecdir}/vi .%{_bindir}/rvi + ln -sf ../..%{_libexecdir}/vi .%{_bindir}/rview + ln -sf ../..%{_libexecdir}/vi .%{_bindir}/ex ln -sf vim .%{_bindir}/rvim ln -sf vim .%{_bindir}/vimdiff perl -pi -e "s,%{buildroot},," .%{_mandir}/man1/vim.1 .%{_mandir}/man1/vimtutor.1 @@ -988,6 +988,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Mon Sep 01 2025 Zdenek Dohnal - 2:9.1.1706-2 +- 2392249 - broken /usr/bin/ex symlink in vim-9.1.1706-1.fc42 + * Fri Aug 29 2025 Zdenek Dohnal - 2:9.1.1706-1 - patchlevel 1706 From d38db4ff3c9c79c9a18e7dc74913cc9de1d57999 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Mon, 1 Sep 2025 17:23:12 +0200 Subject: [PATCH 20/37] vim-common has broken manpages (fedora#2392178) --- vim.spec | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/vim.spec b/vim.spec index 8487228c..38c18063 100644 --- a/vim.spec +++ b/vim.spec @@ -180,6 +180,8 @@ multiple windows, multi-level undo, block highlighting and more. %package common Summary: The common files needed by any version of the VIM editor +# move evim manpage to common - remove the conflict after C11S is branched +Conflicts: %{name}-X11 < 2:9.1.1706-2 # shared files between common and minimal Requires: %{name}-data = %{epoch}:%{version}-%{release} Requires: %{name}-filesystem @@ -301,6 +303,8 @@ This subpackage contains files needed to set Vim as the default editor. %if %{with gui} %package X11 Summary: The VIM version of the vi editor for the X Window System - GVim +# move evim manpage to common - remove the conflict after C11S is branched +Conflicts: %{name}-common < 2:9.1.1706-2 # devel of libICE, gtk3, libSM, libX11, libXpm and libXt are needed in buildroot # so configure script can have correct macros enabled for GUI (#1603272) # generic gnome toolkit for graphical support @@ -674,10 +678,12 @@ EOF appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*.appdata.xml -for i in gvim.1 gex.1 gview.1 vimx.1 eview.1 rgvim.1 rgview.1; do +# do not put gvim.1, gview.1, eview.1, rgvim and rgview here - they already contains the link, +# and changing it here will rewrite original vim.1 - bz#2392178 +for i in gex.1 vimx.1 evim.1; do echo ".so man1/vim.1" > %{buildroot}/%{_mandir}/man1/$i done -echo ".so man1/vimdiff.1" > %{buildroot}/%{_mandir}/man1/gvimdiff.1 + echo ".so man1/vimtutor.1" > %{buildroot}/%{_mandir}/man1/gvimtutor.1 %else # Remove files included in X11 subpackage, but built by default: @@ -875,6 +881,7 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %if %{with gui} %{_mandir}/man1/eview.* +%{_mandir}/man1/evim.* %{_mandir}/man1/gex.* %{_mandir}/man1/gview.* %{_mandir}/man1/gvim* @@ -955,7 +962,6 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %{_bindir}/eview %{_bindir}/rgvim %{_bindir}/rgview -%{_mandir}/man1/evim.* %dir %{_datadir}/icons/hicolor %dir %{_datadir}/icons/hicolor/* %dir %{_datadir}/icons/hicolor/*/apps @@ -989,7 +995,8 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog * Mon Sep 01 2025 Zdenek Dohnal - 2:9.1.1706-2 -- 2392249 - broken /usr/bin/ex symlink in vim-9.1.1706-1.fc42 +- broken /usr/bin/ex symlink in vim-9.1.1706-1.fc42 (fedora#2392249) +- vim-common has broken manpages (fedora#2392178) * Fri Aug 29 2025 Zdenek Dohnal - 2:9.1.1706-1 - patchlevel 1706 From b97a8f097790855656c98c077104eede49f2e02a Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Mon, 1 Sep 2025 17:25:26 +0200 Subject: [PATCH 21/37] - patchlevel 1723 --- sources | 2 +- vim.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index c20b1ad4..299c0369 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1706.tar.bz2) = 4b936add54c8068202dedc532202af6d78d951144b74dcc5015e4f7fcf8c4c384509c14f1036579b39c176110cd78eea257601d8e16bd63a410f7290a9d1174b +SHA512 (vim-9.1-1723.tar.bz2) = 8e4474f5b693c517658779e31d884f4c74bc2ff424975cfc745680817e007f90e9dd4d860342c8a31a2186a3f3d7ccb1b7b4d23c2dd60c6131056d67d8b2b06b diff --git a/vim.spec b/vim.spec index 38c18063..e7649e6a 100644 --- a/vim.spec +++ b/vim.spec @@ -12,7 +12,7 @@ %endif -%define patchlevel 1706 +%define patchlevel 1723 %define withnetbeans 1 %define withhunspell 0 @@ -54,7 +54,7 @@ Summary: The VIM editor URL: https://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 2%{?dist} +Release: 1%{?dist} Epoch: 2 # swift.vim contains Apache 2.0 with runtime library exception: # which is taken as Apache-2.0 WITH Swift-exception - reported to legal as https://gitlab.com/fedora/legal/fedora-license-data/-/issues/188 @@ -994,6 +994,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Mon Sep 01 2025 Zdenek Dohnal - 2:9.1.1723-1 +- patchlevel 1723 + * Mon Sep 01 2025 Zdenek Dohnal - 2:9.1.1706-2 - broken /usr/bin/ex symlink in vim-9.1.1706-1.fc42 (fedora#2392249) - vim-common has broken manpages (fedora#2392178) From bc2a0c97ccc8f8eeabfc415b7f09358a0a41872c Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Wed, 10 Sep 2025 15:01:43 +0200 Subject: [PATCH 22/37] Restore lost --remote-tab... functionality on wayland (fedora#2393716) --- vim.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vim.spec b/vim.spec index e7649e6a..b0e5f0da 100644 --- a/vim.spec +++ b/vim.spec @@ -54,7 +54,7 @@ Summary: The VIM editor URL: https://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 2 # swift.vim contains Apache 2.0 with runtime library exception: # which is taken as Apache-2.0 WITH Swift-exception - reported to legal as https://gitlab.com/fedora/legal/fedora-license-data/-/issues/188 @@ -570,6 +570,7 @@ cp vim enhanced-vim --enable-fail-if-missing \ --with-wayland \ --enable-year2038 \ + --enable-socketserver \ --enable-canberra %make_build @@ -994,6 +995,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Wed Sep 10 2025 Zdenek Dohnal - 2:9.1.1723-2 +- Restore lost --remote-tab... functionality on wayland (fedora#2393716) + * Mon Sep 01 2025 Zdenek Dohnal - 2:9.1.1723-1 - patchlevel 1723 From 07b3394cbc35a12185f2594be965995ad872e81b Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 19 Sep 2025 08:58:02 +0200 Subject: [PATCH 23/37] - patchlevel 1775 --- sources | 2 +- vim.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 299c0369..63d32a44 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1723.tar.bz2) = 8e4474f5b693c517658779e31d884f4c74bc2ff424975cfc745680817e007f90e9dd4d860342c8a31a2186a3f3d7ccb1b7b4d23c2dd60c6131056d67d8b2b06b +SHA512 (vim-9.1-1775.tar.bz2) = d1b21d9ec938e752c5e2be73c92dfe0ed122ade3bbaddde551bcb8556e42d42fe66a897e6473b79ba833b507cfd9de7d49b5da5585843c1ea04c7fecddcbe9da diff --git a/vim.spec b/vim.spec index b0e5f0da..93277fed 100644 --- a/vim.spec +++ b/vim.spec @@ -12,7 +12,7 @@ %endif -%define patchlevel 1723 +%define patchlevel 1775 %define withnetbeans 1 %define withhunspell 0 @@ -54,7 +54,7 @@ Summary: The VIM editor URL: https://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 2%{?dist} +Release: 1%{?dist} Epoch: 2 # swift.vim contains Apache 2.0 with runtime library exception: # which is taken as Apache-2.0 WITH Swift-exception - reported to legal as https://gitlab.com/fedora/legal/fedora-license-data/-/issues/188 @@ -995,6 +995,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Fri Sep 19 2025 Zdenek Dohnal - 2:9.1.1775-1 +- patchlevel 1775 + * Wed Sep 10 2025 Zdenek Dohnal - 2:9.1.1723-2 - Restore lost --remote-tab... functionality on wayland (fedora#2393716) From c8b1dc94984dfbe47cf8df31628f48062f1bf6c4 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Mon, 29 Sep 2025 18:21:43 +0200 Subject: [PATCH 24/37] remove XPM support - GVim icons work without it --- vim.spec | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/vim.spec b/vim.spec index 93277fed..8368c3b8 100644 --- a/vim.spec +++ b/vim.spec @@ -54,7 +54,7 @@ Summary: The VIM editor URL: https://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 2 # swift.vim contains Apache 2.0 with runtime library exception: # which is taken as Apache-2.0 WITH Swift-exception - reported to legal as https://gitlab.com/fedora/legal/fedora-license-data/-/issues/188 @@ -315,8 +315,6 @@ BuildRequires: libICE-devel BuildRequires: libSM-devel # core X11 protocol client library BuildRequires: libX11-devel -# X PixMap library for X11 - for creating images in X PixMap format -BuildRequires: libXpm-devel # X Toolkit Intrinsics library - working with widgets? BuildRequires: libXt-devel # for testing validity of appdata file @@ -345,11 +343,6 @@ Requires: vim-common = %{epoch}:%{version}-%{release} Suggests: python3 Suggests: python3-libs - %if 0%{?fedora} >= 41 - # needed for icons (#2277751) -Requires: gdk-pixbuf2-modules-extra%{?_isa} - %endif - # suggest python3, python2, lua, ruby and perl packages because of their # embedded functionality in Vim/GVim %if "%{withlua}" == "1" @@ -995,6 +988,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Mon Sep 29 2025 Zdenek Dohnal - 2:9.1.1775-2 +- remove XPM support - GVim icons work without it + * Fri Sep 19 2025 Zdenek Dohnal - 2:9.1.1775-1 - patchlevel 1775 From ae2db1ff1df2067f7e2ecb561548a328616a5a50 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 3 Oct 2025 10:25:29 +0200 Subject: [PATCH 25/37] - patchlevel 1818 --- sources | 2 +- vim.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 63d32a44..f8e7f622 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1775.tar.bz2) = d1b21d9ec938e752c5e2be73c92dfe0ed122ade3bbaddde551bcb8556e42d42fe66a897e6473b79ba833b507cfd9de7d49b5da5585843c1ea04c7fecddcbe9da +SHA512 (vim-9.1-1818.tar.bz2) = 15633ab4ceac42312d411daa791cc923e51145826816ca73abd638c99c63efe5f0ba7341e10e8c087c0fb5a324814a8c2cac3d9ead23248371e95039f724901d diff --git a/vim.spec b/vim.spec index 8368c3b8..cd6d76a5 100644 --- a/vim.spec +++ b/vim.spec @@ -12,7 +12,7 @@ %endif -%define patchlevel 1775 +%define patchlevel 1818 %define withnetbeans 1 %define withhunspell 0 @@ -54,7 +54,7 @@ Summary: The VIM editor URL: https://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 2%{?dist} +Release: 1%{?dist} Epoch: 2 # swift.vim contains Apache 2.0 with runtime library exception: # which is taken as Apache-2.0 WITH Swift-exception - reported to legal as https://gitlab.com/fedora/legal/fedora-license-data/-/issues/188 @@ -988,6 +988,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Fri Oct 03 2025 Zdenek Dohnal - 2:9.1.1818-1 +- patchlevel 1818 + * Mon Sep 29 2025 Zdenek Dohnal - 2:9.1.1775-2 - remove XPM support - GVim icons work without it From 61cfcde9ded5a39484ba9b55a60db34de1b71a40 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 10 Oct 2025 07:17:01 +0200 Subject: [PATCH 26/37] - patchlevel 1845 --- sources | 2 +- vim.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources b/sources index f8e7f622..7e2ad4d6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1818.tar.bz2) = 15633ab4ceac42312d411daa791cc923e51145826816ca73abd638c99c63efe5f0ba7341e10e8c087c0fb5a324814a8c2cac3d9ead23248371e95039f724901d +SHA512 (vim-9.1-1845.tar.bz2) = 54926df4c97319e638358fec3a8994154f27dd7e6201d721e99f6f7042ef5c9240b34fd26b8ae3c66dae83d0a6a281a6f840102a4d9dda2f6005329c9a286eeb diff --git a/vim.spec b/vim.spec index cd6d76a5..251c2937 100644 --- a/vim.spec +++ b/vim.spec @@ -12,7 +12,7 @@ %endif -%define patchlevel 1818 +%define patchlevel 1845 %define withnetbeans 1 %define withhunspell 0 @@ -988,6 +988,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Fri Oct 10 2025 Zdenek Dohnal - 2:9.1.1845-1 +- patchlevel 1845 + * Fri Oct 03 2025 Zdenek Dohnal - 2:9.1.1818-1 - patchlevel 1818 From 0c4cede346063dced0e4e2b1e9ca4f6f50f38932 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 10 Oct 2025 11:42:54 +0200 Subject: [PATCH 27/37] Fix building without wayland Currently, due broken dependency generation, wayland support is hardcoded in Makefile. We have to run dependency generation and auto generation at every `make` call. Additionally, function prototypes are now generated by python3 and its clang module during build - added buildrequires for it. --- vim.spec | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/vim.spec b/vim.spec index 251c2937..6ba8ee6f 100644 --- a/vim.spec +++ b/vim.spec @@ -122,6 +122,10 @@ BuildRequires: make # screen handling library BuildRequires: ncurses-devel +# for building function prototypes +BuildRequires: python3 +BuildRequires: python3-clang + # for python plugin BuildRequires: python3-devel @@ -444,6 +448,15 @@ perl -pi -e "s/vimrc/virc/" os_unix.h --enable-year2038 \ --disable-libsodium +# related to the previous issue with `make depend`, auto/osdef.h +# has to be generated +make auto/osdef.h +# wayland is hardwired in Makefile dependencies +# to work around it call `make depend` before build +# problem fixed by https://github.com/vim/vim/pull/18538 +# remove once it is merged +make depend + %make_build cp vim minimal-vim make clean @@ -503,6 +516,15 @@ mv -f os_unix.h.save os_unix.h --enable-year2038 \ --disable-canberra +## related to the previous issue with `make depend`, auto/osdef.h +## has to be generated +make auto/osdef.h +# wayland is hardwired in Makefile dependencies +# to work around it call `make depend` before build +# problem fixed by https://github.com/vim/vim/pull/18538 +# remove once it is merged +make depend + %make_build cp vim enhanced-vim @@ -566,6 +588,15 @@ cp vim enhanced-vim --enable-socketserver \ --enable-canberra +# related to the issue with `make depend`, auto/osdef.h +# has to be generated +make auto/osdef.h auto/gui_gtk_gresources.h auto/wayland/wlr-data-control-unstable-v1.h +# wayland is hardwired in Makefile dependencies +# to work around it call `make depend` before build +# problem fixed by https://github.com/vim/vim/pull/18538 +# remove once it is merged +make depend + %make_build cp vim gvim make clean @@ -581,6 +612,9 @@ cp -f %{SOURCE7} %{buildroot}/%{_datadir}/%{name}/vimfiles/template.spec rm -f README*.info cd src +# related to the issue with `make depend`, auto/osdef.h +# has to be generated +make auto/osdef.h auto/gui_gtk_gresources.h auto/wayland/wlr-data-control-unstable-v1.h # Adding STRIP=/bin/true, because Vim wants to strip the binaries by himself # and put the stripped files into correct dirs. Build system (koji/brew) # does it for us, so there is no need to do it in Vim From 5ee4f534a6331a7edc774786fd555704145ce7ec Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 17 Oct 2025 08:59:22 +0200 Subject: [PATCH 28/37] Remove make depend workaround --- vim.spec | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/vim.spec b/vim.spec index 6ba8ee6f..20df7d1f 100644 --- a/vim.spec +++ b/vim.spec @@ -448,15 +448,6 @@ perl -pi -e "s/vimrc/virc/" os_unix.h --enable-year2038 \ --disable-libsodium -# related to the previous issue with `make depend`, auto/osdef.h -# has to be generated -make auto/osdef.h -# wayland is hardwired in Makefile dependencies -# to work around it call `make depend` before build -# problem fixed by https://github.com/vim/vim/pull/18538 -# remove once it is merged -make depend - %make_build cp vim minimal-vim make clean @@ -516,15 +507,6 @@ mv -f os_unix.h.save os_unix.h --enable-year2038 \ --disable-canberra -## related to the previous issue with `make depend`, auto/osdef.h -## has to be generated -make auto/osdef.h -# wayland is hardwired in Makefile dependencies -# to work around it call `make depend` before build -# problem fixed by https://github.com/vim/vim/pull/18538 -# remove once it is merged -make depend - %make_build cp vim enhanced-vim @@ -588,15 +570,6 @@ cp vim enhanced-vim --enable-socketserver \ --enable-canberra -# related to the issue with `make depend`, auto/osdef.h -# has to be generated -make auto/osdef.h auto/gui_gtk_gresources.h auto/wayland/wlr-data-control-unstable-v1.h -# wayland is hardwired in Makefile dependencies -# to work around it call `make depend` before build -# problem fixed by https://github.com/vim/vim/pull/18538 -# remove once it is merged -make depend - %make_build cp vim gvim make clean From 71c059abc540577924906cf0eabcd67e233d827a Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 17 Oct 2025 09:00:02 +0200 Subject: [PATCH 29/37] - patchlevel 1863 --- sources | 2 +- vim-crypto-warning.patch | 25 +++++++++++++------------ vim.spec | 5 ++++- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/sources b/sources index 7e2ad4d6..432ae958 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1845.tar.bz2) = 54926df4c97319e638358fec3a8994154f27dd7e6201d721e99f6f7042ef5c9240b34fd26b8ae3c66dae83d0a6a281a6f840102a4d9dda2f6005329c9a286eeb +SHA512 (vim-9.1-1863.tar.bz2) = 60a49add050158c7ab14b0af4b699188d067c6ec5665aa081bd0dd04dae90b8eb1b15e022ef252bb5bda0f4c5edd83d6db2214ef1e1bde1b855f934174a21ef7 diff --git a/vim-crypto-warning.patch b/vim-crypto-warning.patch index 195d7025..7f5391e2 100644 --- a/vim-crypto-warning.patch +++ b/vim-crypto-warning.patch @@ -1,7 +1,7 @@ -diff -up vim90/src/config.h.in.fips-warning vim90/src/config.h.in ---- vim90/src/config.h.in.fips-warning 2023-05-29 09:30:59.000000000 +0200 -+++ vim90/src/config.h.in 2023-05-29 09:34:47.261645612 +0200 -@@ -498,5 +498,14 @@ +diff -up vim91/src/config.h.in.fips-warning vim91/src/config.h.in +--- vim91/src/config.h.in.fips-warning 2025-10-17 09:03:56.910426660 +0200 ++++ vim91/src/config.h.in 2025-10-17 09:05:42.301128292 +0200 +@@ -526,6 +526,15 @@ /* Define if _SC_SIGSTKSZ is available via sysconf() */ #undef HAVE_SYSCONF_SIGSTKSZ @@ -16,10 +16,11 @@ diff -up vim90/src/config.h.in.fips-warning vim90/src/config.h.in + /* Define if you want to load libgpm dynamically */ #undef DYNAMIC_GPM -diff -up vim90/src/configure.ac.fips-warning vim90/src/configure.ac ---- vim90/src/configure.ac.fips-warning 2023-05-29 09:34:47.257645645 +0200 -+++ vim90/src/configure.ac 2023-05-29 09:34:47.262645604 +0200 -@@ -589,6 +589,38 @@ else + +diff -up vim91/src/configure.ac.fips-warning vim91/src/configure.ac +--- vim91/src/configure.ac.fips-warning 2025-10-17 09:03:56.891369117 +0200 ++++ vim91/src/configure.ac 2025-10-17 09:03:56.917397669 +0200 +@@ -631,6 +631,38 @@ else AC_SUBST(XDIFF_OBJS_USED) fi @@ -58,10 +59,10 @@ diff -up vim90/src/configure.ac.fips-warning vim90/src/configure.ac dnl Check for Lua feature. AC_MSG_CHECKING(--enable-luainterp argument) AC_ARG_ENABLE(luainterp, -diff -up vim90/src/crypt.c.fips-warning vim90/src/crypt.c ---- vim90/src/crypt.c.fips-warning 2023-05-29 09:34:47.263645596 +0200 -+++ vim90/src/crypt.c 2023-05-29 09:51:23.209779115 +0200 -@@ -795,6 +795,21 @@ crypt_check_method(int method) +diff -up vim91/src/crypt.c.fips-warning vim91/src/crypt.c +--- vim91/src/crypt.c.fips-warning 2025-10-10 07:16:11.000000000 +0200 ++++ vim91/src/crypt.c 2025-10-17 09:03:56.920982655 +0200 +@@ -806,6 +806,21 @@ crypt_check_method(int method) msg_scroll = TRUE; msg(_("Warning: Using a weak encryption method; see :help 'cm'")); } diff --git a/vim.spec b/vim.spec index 20df7d1f..babc26a7 100644 --- a/vim.spec +++ b/vim.spec @@ -12,7 +12,7 @@ %endif -%define patchlevel 1845 +%define patchlevel 1863 %define withnetbeans 1 %define withhunspell 0 @@ -995,6 +995,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Fri Oct 17 2025 Zdenek Dohnal - 2:9.1.1863-1 +- patchlevel 1863 + * Fri Oct 10 2025 Zdenek Dohnal - 2:9.1.1845-1 - patchlevel 1845 From c8b04c80dd1fcafe208a7969ab40c584e320d5f3 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 31 Oct 2025 08:08:06 +0100 Subject: [PATCH 30/37] vimrc: Use RestoreCursor from defaults.vim (fedora#2404651) Fixes setting the cursor at the start of file when committing in Git --- vimrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index 4842faf2..4ef9d92d 100644 --- a/vimrc +++ b/vimrc @@ -54,10 +54,14 @@ if has("autocmd") " In text files, always limit the width of text to 78 characters " autocmd BufRead *.txt set tw=78 " When editing a file, always jump to the last cursor position + " (taken from Vim's defaults.vim) autocmd BufReadPost * - \ if line("'\"") > 0 && line ("'\"") <= line("$") | - \ exe "normal! g'\"" | - \ endif + \ let line = line("'\"") + \ | if line >= 1 && line <= line("$") && &filetype !~# 'commit' + \ && index(['xxd', 'gitrebase', 'tutor'], &filetype) == -1 + \ && !&diff + \ | execute "normal! g`\"" + \ | endif " don't write swapfile on most commonly used directories for NFS mounts or USB sticks autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp " start with spec file template From e847a50297a216229050bf4db3d06a139104e7cf Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 31 Oct 2025 08:10:55 +0100 Subject: [PATCH 31/37] - patchlevel 1888 --- sources | 2 +- vim-crypto-warning.patch | 13 ++++++------- vim.spec | 5 ++++- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/sources b/sources index 432ae958..1bbd6961 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1863.tar.bz2) = 60a49add050158c7ab14b0af4b699188d067c6ec5665aa081bd0dd04dae90b8eb1b15e022ef252bb5bda0f4c5edd83d6db2214ef1e1bde1b855f934174a21ef7 +SHA512 (vim-9.1-1888.tar.bz2) = a3cad492f9418f71eafbdfb1ccf3607ccacc595d5eabde443ff2fa11f8d32c4d45b60f3c68ae030b115544e74395dcc8738cca6a0de59b1e0e45153a69fc99d4 diff --git a/vim-crypto-warning.patch b/vim-crypto-warning.patch index 7f5391e2..6f55807f 100644 --- a/vim-crypto-warning.patch +++ b/vim-crypto-warning.patch @@ -1,7 +1,7 @@ diff -up vim91/src/config.h.in.fips-warning vim91/src/config.h.in ---- vim91/src/config.h.in.fips-warning 2025-10-17 09:03:56.910426660 +0200 -+++ vim91/src/config.h.in 2025-10-17 09:05:42.301128292 +0200 -@@ -526,6 +526,15 @@ +--- vim91/src/config.h.in.fips-warning 2025-10-31 08:12:59.598267544 +0100 ++++ vim91/src/config.h.in 2025-10-31 08:14:45.661859595 +0100 +@@ -526,5 +526,14 @@ /* Define if _SC_SIGSTKSZ is available via sysconf() */ #undef HAVE_SYSCONF_SIGSTKSZ @@ -16,10 +16,9 @@ diff -up vim91/src/config.h.in.fips-warning vim91/src/config.h.in + /* Define if you want to load libgpm dynamically */ #undef DYNAMIC_GPM - diff -up vim91/src/configure.ac.fips-warning vim91/src/configure.ac ---- vim91/src/configure.ac.fips-warning 2025-10-17 09:03:56.891369117 +0200 -+++ vim91/src/configure.ac 2025-10-17 09:03:56.917397669 +0200 +--- vim91/src/configure.ac.fips-warning 2025-10-31 08:12:59.596711911 +0100 ++++ vim91/src/configure.ac 2025-10-31 08:12:59.598566242 +0100 @@ -631,6 +631,38 @@ else AC_SUBST(XDIFF_OBJS_USED) fi @@ -61,7 +60,7 @@ diff -up vim91/src/configure.ac.fips-warning vim91/src/configure.ac AC_ARG_ENABLE(luainterp, diff -up vim91/src/crypt.c.fips-warning vim91/src/crypt.c --- vim91/src/crypt.c.fips-warning 2025-10-10 07:16:11.000000000 +0200 -+++ vim91/src/crypt.c 2025-10-17 09:03:56.920982655 +0200 ++++ vim91/src/crypt.c 2025-10-31 08:12:59.598872032 +0100 @@ -806,6 +806,21 @@ crypt_check_method(int method) msg_scroll = TRUE; msg(_("Warning: Using a weak encryption method; see :help 'cm'")); diff --git a/vim.spec b/vim.spec index babc26a7..3ae52ae3 100644 --- a/vim.spec +++ b/vim.spec @@ -12,7 +12,7 @@ %endif -%define patchlevel 1863 +%define patchlevel 1888 %define withnetbeans 1 %define withhunspell 0 @@ -995,6 +995,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Fri Oct 31 2025 Zdenek Dohnal - 2:9.1.1888-1 +- patchlevel 1888 + * Fri Oct 17 2025 Zdenek Dohnal - 2:9.1.1863-1 - patchlevel 1863 From fef106b849d1bf4859ded298abb857b5cc349cf0 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 14 Nov 2025 07:38:58 +0100 Subject: [PATCH 32/37] - patchlevel 1914 --- sources | 2 +- vim-7.4-specsyntax.patch | 24 ++++++------------------ vim.spec | 5 ++++- 3 files changed, 11 insertions(+), 20 deletions(-) diff --git a/sources b/sources index 1bbd6961..0581ebdb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1888.tar.bz2) = a3cad492f9418f71eafbdfb1ccf3607ccacc595d5eabde443ff2fa11f8d32c4d45b60f3c68ae030b115544e74395dcc8738cca6a0de59b1e0e45153a69fc99d4 +SHA512 (vim-9.1-1914.tar.bz2) = 7db432217859bf6e74f705484f1ed84f06d94503a2a39ee67e727adb8d96a3ad17b7eb4c2e5afcc12d0339dbdb81d62341ae7e41668adb1d84093603f43c99fb diff --git a/vim-7.4-specsyntax.patch b/vim-7.4-specsyntax.patch index 71720a46..ace7607f 100644 --- a/vim-7.4-specsyntax.patch +++ b/vim-7.4-specsyntax.patch @@ -1,7 +1,7 @@ diff -up vim91/runtime/syntax/spec.vim.spec-syntax vim91/runtime/syntax/spec.vim ---- vim91/runtime/syntax/spec.vim.spec-syntax 2024-03-08 07:18:14.000000000 +0100 -+++ vim91/runtime/syntax/spec.vim 2024-03-08 07:37:57.157339625 +0100 -@@ -35,7 +35,7 @@ syn match specNoNumberHilite 'X11\|X11R6 +--- vim91/runtime/syntax/spec.vim.spec-syntax 2025-11-14 07:38:27.000000000 +0100 ++++ vim91/runtime/syntax/spec.vim 2025-11-14 07:52:56.081212607 +0100 +@@ -38,7 +38,7 @@ syn match specNoNumberHilite 'X11\|X11R6 syn match specManpageFile '[a-zA-Z]\.1' "Day, Month and most used license acronyms @@ -10,24 +10,12 @@ diff -up vim91/runtime/syntax/spec.vim.spec-syntax vim91/runtime/syntax/spec.vim syn keyword specWeekday contained Mon Tue Wed Thu Fri Sat Sun syn keyword specMonth contained Jan Feb Mar Apr Jun Jul Aug Sep Oct Nov Dec syn keyword specMonth contained January February March April May June July August September October November December -@@ -58,9 +58,9 @@ syn cluster specListedFiles contains=spe - - "specCommands - syn match specConfigure contained '\./configure' --syn match specTarCommand contained '\ - 2:9.1.1914-1 +- patchlevel 1914 + * Fri Oct 31 2025 Zdenek Dohnal - 2:9.1.1888-1 - patchlevel 1888 From 19faaa187ee2c85fff2f6b0627b2e9d813cd1cfe Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 28 Nov 2025 07:56:40 +0100 Subject: [PATCH 33/37] F41 is EOL --- vim-update.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vim-update.sh b/vim-update.sh index 4961ece1..fc37e160 100755 --- a/vim-update.sh +++ b/vim-update.sh @@ -1,12 +1,12 @@ #!/bin/bash debug="" #debug="echo " -branches=( "rawhide" "f43" "f42" "f41" ) -releases=( "fc44" "fc43" "fc42" "fc41" ) +branches=( "rawhide" "f43" "f42" ) +releases=( "fc44" "fc43" "fc42" ) # the first bodhi enabled release is the last without \| - all # others need to have \| -regexps=( "fc44" "fc43" "\|fc42" "\|fc41" ) -bodhi_enabled=( "0" "1" "1" "1" ) +regexps=( "fc44" "fc43" "\|fc42" ) +bodhi_enabled=( "0" "1" "1" ) needs_update=() #releases_regexp=fc28\\\|fc27\\\|fc28 From 6bbeb2d904d9f16c28826d1fc571c507f1cda226 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 5 Dec 2025 06:58:19 +0100 Subject: [PATCH 34/37] - patchlevel 1952 --- sources | 2 +- vim.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources b/sources index 0581ebdb..7d192ff7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1914.tar.bz2) = 7db432217859bf6e74f705484f1ed84f06d94503a2a39ee67e727adb8d96a3ad17b7eb4c2e5afcc12d0339dbdb81d62341ae7e41668adb1d84093603f43c99fb +SHA512 (vim-9.1-1952.tar.bz2) = a08f2421872da4cbf262fabe1ce8b8f22342589956d02b0bd44b6d2505b5fb0cd9ac8da50e8af859038c047bb4a5ee314a12b2c3a86d85c7410437726f1928cc diff --git a/vim.spec b/vim.spec index f5ce5d8b..436d0402 100644 --- a/vim.spec +++ b/vim.spec @@ -12,7 +12,7 @@ %endif -%define patchlevel 1914 +%define patchlevel 1952 %define withnetbeans 1 %define withhunspell 0 @@ -995,6 +995,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Fri Dec 05 2025 Zdenek Dohnal - 2:9.1.1952-1 +- patchlevel 1952 + * Fri Nov 14 2025 Zdenek Dohnal - 2:9.1.1914-1 - patchlevel 1914 From 07501bca7aa17b5cdefcadc5a140b01219b83253 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 12 Dec 2025 07:37:49 +0100 Subject: [PATCH 35/37] - patchlevel 1972 --- sources | 2 +- vim.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources b/sources index 7d192ff7..0ffd898e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1952.tar.bz2) = a08f2421872da4cbf262fabe1ce8b8f22342589956d02b0bd44b6d2505b5fb0cd9ac8da50e8af859038c047bb4a5ee314a12b2c3a86d85c7410437726f1928cc +SHA512 (vim-9.1-1972.tar.bz2) = 5bc15e34323c1a6b37e684f6d55eb175c21bc857b212d1c56946f2fce7d4ba0f35a892738040a0e3983a7bbb6020ede77ea8a53a5ea1ff63baf8f163a51b1dff diff --git a/vim.spec b/vim.spec index 436d0402..4f3323e8 100644 --- a/vim.spec +++ b/vim.spec @@ -12,7 +12,7 @@ %endif -%define patchlevel 1952 +%define patchlevel 1972 %define withnetbeans 1 %define withhunspell 0 @@ -995,6 +995,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Fri Dec 12 2025 Zdenek Dohnal - 2:9.1.1972-1 +- patchlevel 1972 + * Fri Dec 05 2025 Zdenek Dohnal - 2:9.1.1952-1 - patchlevel 1952 From 676006795a0c7adb9bd0a4d042b529cf4688be8d Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 19 Dec 2025 07:07:16 +0100 Subject: [PATCH 36/37] - patchlevel 1999 --- sources | 2 +- vim.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources b/sources index 0ffd898e..d752b083 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1972.tar.bz2) = 5bc15e34323c1a6b37e684f6d55eb175c21bc857b212d1c56946f2fce7d4ba0f35a892738040a0e3983a7bbb6020ede77ea8a53a5ea1ff63baf8f163a51b1dff +SHA512 (vim-9.1-1999.tar.bz2) = 2b3c3ac0790e5b4914bb7eb1f3c46a0a22ff4ba13da4ed083bbcbc053ad6f4b82dee00e12318698f7edfcd757e5c2bc6f4e623482f4d3d3d6662547d265c9e51 diff --git a/vim.spec b/vim.spec index 4f3323e8..5769758a 100644 --- a/vim.spec +++ b/vim.spec @@ -12,7 +12,7 @@ %endif -%define patchlevel 1972 +%define patchlevel 1999 %define withnetbeans 1 %define withhunspell 0 @@ -995,6 +995,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Fri Dec 19 2025 Zdenek Dohnal - 2:9.1.1999-1 +- patchlevel 1999 + * Fri Dec 12 2025 Zdenek Dohnal - 2:9.1.1972-1 - patchlevel 1972 From eae4b5cd79320755554c8b22cb2b77cbaded0e82 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 9 Jan 2026 12:59:59 +0100 Subject: [PATCH 37/37] - patchlevel 2068 --- sources | 2 +- vim.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources b/sources index d752b083..14532821 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (vim-9.1-1999.tar.bz2) = 2b3c3ac0790e5b4914bb7eb1f3c46a0a22ff4ba13da4ed083bbcbc053ad6f4b82dee00e12318698f7edfcd757e5c2bc6f4e623482f4d3d3d6662547d265c9e51 +SHA512 (vim-9.1-2068.tar.bz2) = f19ae5898f7c388f437fe03af23d956ef66706c2a629a3389622e0b583d9bd831dd4e250badb181fceacb2b52b1f8a6bda4f72fbece122b5f5097153daf774f3 diff --git a/vim.spec b/vim.spec index 5769758a..b2c29f97 100644 --- a/vim.spec +++ b/vim.spec @@ -12,7 +12,7 @@ %endif -%define patchlevel 1999 +%define patchlevel 2068 %define withnetbeans 1 %define withhunspell 0 @@ -995,6 +995,9 @@ mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/ %changelog +* Fri Jan 09 2026 Zdenek Dohnal - 2:9.1.2068-1 +- patchlevel 2068 + * Fri Dec 19 2025 Zdenek Dohnal - 2:9.1.1999-1 - patchlevel 1999