]> git.pld-linux.org Git - packages/vim.git/blobdiff - vim.spec
updated to 7.4.796
[packages/vim.git] / vim.spec
index c9561ebd1ff9a288c3628c20b09b52bb890f3720..ba394098799af9d8f267a792a92a1c2482d78a76 100644 (file)
--- a/vim.spec
+++ b/vim.spec
@@ -1,9 +1,3 @@
-# TODO
-# - evim manuals not installed if no gui is built, move to -gui packages?
-#
-# NOTE
-# - static package is not quite static, it must be linked with shared glibc
-#   because of glibc nss brokeness wrt all static linking
 #
 # Conditional build:
 %bcond_without static          # don't build static version
@@ -13,6 +7,7 @@
 %bcond_without gnome           # don't build GNOME-based gvim support
 %bcond_without heavy           # don't build heavy (full-featured GNOME-based gvim/vim)
 %bcond_without gui             # don't build any GUI
+%bcond_without light           # don't build light (minimal, ncurses, but not static)
 %bcond_with    perl            # with Perl interp in vim package
 %bcond_with    python          # with Python interp in vim package
 %bcond_with    ruby            # with Ruby interp in vim package
 %endif
 
 # Command to check for latest patch:
-# wget -q -O - ftp://ftp.vim.org/pub/editors/vim/patches/7.2/MD5SUMS|grep -vF .gz|tail -n1|awk '{print $2}'
+# wget ftp://ftp.vim.org/pub/editors/vim/patches/7.4/MD5SUMS -O sources
+# tail -n1 sources | awk '{print $2}'
+# VCS Commits: https://code.google.com/p/vim/source/browse/
 
-%define                ver             7.2
-%define                patchlevel      444
+%define                ver             7.4
+%define                patchlevel      796
+%define                rel             1
 Summary:       Vi IMproved - a Vi clone
 Summary(de.UTF-8):     VIsual editor iMproved
 Summary(es.UTF-8):     Editor visual incrementado
@@ -44,32 +42,27 @@ Summary(tr.UTF-8):  Gelişmiş bir vi sürümü
 Summary(uk.UTF-8):     Visual editor IMproved - Єдино Вірний Редактор :)
 Name:          vim
 Version:       %{ver}.%{patchlevel}
-Release:       4.1
+Release:       %{rel}
 Epoch:         4
 License:       Charityware
 Group:         Applications/Editors/Vim
 Source0:       ftp://ftp.vim.org/pub/vim/unix/%{name}-%{ver}.tar.bz2
-# Source0-md5: f0901284b338e448bfd79ccca0041254
-Source1:       ftp://ftp.vim.org/pub/vim/extra/%{name}-%{ver}-lang.tar.gz
-# Source1-md5: d8884786979e0e520c112faf2e176f05
-Source2:       ftp://ftp.vim.org/pub/vim/extra/%{name}-%{ver}-extra.tar.gz
-# Source2-md5: 35e04482f07c57221c9a751aaa3b8dac
-Source3:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
-# Source3-md5: bc4d1e115ca506ad7751b9bd2b773a7f
-Source4:       http://skawina.eu.org/mikolaj/usr_doc_pl.zip
-# Source4-md5: ff96284b1c913d55cf0877839b34d490
+# Source0-md5: 607e135c559be642f210094ad023dc65
+Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
+# Source1-md5: bc4d1e115ca506ad7751b9bd2b773a7f
+Source2:       http://skawina.eu.org/mikolaj/usr_doc_pl.zip
+# Source2-md5: ff96284b1c913d55cf0877839b34d490
 Source10:      g%{name}-athena.desktop
 Source11:      g%{name}-motif.desktop
 Source12:      g%{name}-gtk.desktop
 Source13:      g%{name}-gnome.desktop
 Source14:      %{name}.desktop
+Source15:      update-source.sh
 # syntax files
 # http://www.vim.org/scripts/script.php?script_id=1491 (0.7.5)
 Source20:      javascript.vim
 # http://www.vim.org/scripts/script.php?script_id=447 (20040206)
 Source22:      exim.vim
-# http://www.vim.org/scripts/script.php?script_id=1571 (0.9.7)
-Source23:      php.vim
 # color schemes
 # http://www.vim.org/scripts/script.php?script_id=415 (1.15)
 Source30:      zenburn.vim
@@ -79,7 +72,7 @@ Source31:     borland.vim
 Source32:      oceandeep.vim
 # http://www.vim.org/scripts/script.php?script_id=1464 (2.6.3)
 Source33:      moria.vim
-%patchset_source -f ftp://ftp.vim.org/pub/editors/vim/patches/7.2/7.2.%03g 1 %{patchlevel}
+%patchset_source -f ftp://ftp.vim.org/pub/editors/vim/patches/%{ver}/%{ver}.%03g 1 %{patchlevel}
 Patch0:                %{name}-sysconfdir.patch
 Patch1:                %{name}-visual.patch
 Patch2:                %{name}-paths.patch
@@ -105,30 +98,30 @@ Patch21:   %{name}-filetypes.patch
 Patch22:       %{name}-man_installation.patch
 Patch23:       %{name}-vimrc.patch
 Patch24:       %{name}-syntax-exports.patch
-Patch25:       %{name}-syntax-sshconfig.patch
-Patch102:      %{name}-gtkfilechooser.patch
-Patch104:      %{name}-home_etc.patch
-Patch105:      %{name}-autopaste.patch
-Patch106:      %{name}-ft-cron.patch
-Patch107:      %{name}-relativenumber.patch
-Patch108:      %{name}-phpscript.patch
-Patch109:      %{name}-pam.patch
-Patch110:      %{name}-ft-bash.patch
-Patch111:      %{name}-gzhelp.patch
-Patch112:      %{name}-localedir.patch
-Patch113:      %{name}-locales.patch
-Patch114:      %{name}-rtdir.patch
-Patch115:      %{name}-ft-mib.patch
-Patch116:      %{name}-ft-lib-udevrules.patch
-Patch117:      %{name}-ft-mysql.patch
+Patch25:       sudoers-include.patch
+Patch26:       %{name}-home_etc.patch
+Patch27:       %{name}-autopaste.patch
+Patch28:       %{name}-ft-cron.patch
+Patch29:       %{name}-phpscript.patch
+Patch30:       %{name}-pam.patch
+Patch31:       %{name}-ft-bash.patch
+Patch32:       %{name}-localedir.patch
+Patch33:       %{name}-locales.patch
+Patch34:       %{name}-rtdir.patch
+Patch35:       %{name}-ft-mib.patch
+Patch36:       %{name}-ft-lib-udevrules.patch
+Patch37:       %{name}-ft-mysql.patch
+Patch38:       %{name}-ft-gyp.patch
+Patch39:       %{name}-revert-7.4.165-noundo.patch
 URL:           http://www.vim.org/
 BuildRequires: acl-devel
 BuildRequires: autoconf
-BuildRequires: gettext-devel
 BuildRequires: gpm-devel
 %if "%{pld_release}" == "ac"
 %{?with_athena:BuildRequires:  XFree86-devel}
+BuildRequires: gettext-devel
 %else
+BuildRequires: gettext-tools
 %{?with_athena:BuildRequires:  xorg-lib-libXaw-devel}
 %endif
 %if %{with gtk} || %{with heavy}
@@ -138,14 +131,15 @@ BuildRequires:    gtk+2-devel >= 2:2.6.0
 %if %{with selinux} || %{with heavy}
 BuildRequires: libselinux-devel
 %endif
+%{?with_motif:BuildRequires:   motif-devel}
 BuildRequires: ncurses-devel
-%{?with_motif:BuildRequires:   openmotif-devel}
 BuildRequires: pkgconfig
 %if %{with perl} || %{with heavy}
 BuildRequires: perl-devel
 %endif
 %if %{with python} || %{with heavy}
 BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
 %endif
 BuildRequires: rpm >= 4.4.9-56
 BuildRequires: rpmbuild(macros) >= 1.426
@@ -171,7 +165,7 @@ Obsoletes:  vim-minimal
 Obsoletes:     vim-static
 %endif
 BuildRequires: unzip
-Requires:      %{name}-rt = %{epoch}:%{version}-%{release}
+Suggests:      %{name}-rt = %{epoch}:%{version}-%{release}
 Provides:      vi-editor
 Provides:      vi
 Provides:      vim-editor = %{epoch}:%{version}-%{release}
@@ -182,6 +176,7 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # configure redefines it to =1
 %define                filterout_cpp   -D_FORTIFY_SOURCE=[0-9]*
+%define                filterout_c             -Wp,-D_FORTIFY_SOURCE=2
 
 # that's example script
 %define                _noautoreq      '/bin/csh'
@@ -244,8 +239,8 @@ fleira.
 VIM (Vi IMproved) è una versione aggiornata e perfezionata dell'editor
 vi. Vi è stato il primo editor per UNIX realmente basato su video ed è
 ancora molto diffuso. VIM perfeziona vi aggiungendo nuove funzioni:
-finestre multiple, funzione \"annulla\" multilivello, evidenziazione
-dei blocchi e altro.
+finestre multiple, funzione "annulla" multilivello, evidenziazione dei
+blocchi e altro.
 
 %description -l pl.UTF-8
 Edytor tekstu podobny do Vi. Ważne ulepszenia: możliwość pracy w wielu
@@ -339,6 +334,40 @@ tartalmazza, amelyben benne van a Perl, Python, Ruby és Tcl támogatás.
 Pakiet ten dostarcza w pełni funkcjonalną wersję Vima, czyli
 zawierającą obsługę skryptów w językach Perl, Python, Ruby oraz Tcl.
 
+%package light
+Summary:       Minimal build of Vim
+Summary(pl.UTF-8):     Minimalna wersja vima
+Group:         Applications/Editors/Vim
+Provides:      vi-editor
+Provides:      vi
+Provides:      vim-editor = %{epoch}:%{version}-%{release}
+
+%description light
+This package provides light featured version of Vim.
+
+%description light -l pl.UTF-8
+Pakiet ten dostarcza minimalną wersję Vima.
+
+%package -n vimx
+Summary:       Vi IMproved - a Vi clone
+Summary(pl.UTF-8):     Vi IMproved - klon edytora Vi
+Group:         X11/Applications/Editors
+Requires:      %{name}-rt = %{epoch}:%{version}-%{release}
+Provides:      vi-editor
+Provides:      vi
+Provides:      vim-editor = %{epoch}:%{version}-%{release}
+Obsoletes:     vim-enhanced
+Obsoletes:     vim-ispell
+Obsoletes:     vim-plugin-multvals
+
+%description -n vimx
+This package provides console version of Vim, with support for basic
+X11 features like system clipboard.
+
+%description -n vimx -l pl.UTF-8
+Pakiet ten dostarcza konsolową wersję Vima, posiadającą wsparcie dla
+podstawowych funckcji X11, takich jak systemowy schowek.
+
 %package static
 Summary:       Statically linked Vim
 Summary(hu.UTF-8):     A Vim statikus verziója
@@ -389,7 +418,7 @@ Summary(is.UTF-8):  Grunnskrár sem allar útgáfur VIM ritilsins þurfa á að h
 Summary(it.UTF-8):     File comuni necessari per tutte le versioni dell'editor VIM
 Summary(ja.UTF-8):     すべてのバージョンの VIM エディタで必要とされる共通ファイル
 Summary(nb.UTF-8):     Felles filer som er nødvendige for enhver versjon av VIM editoren
-Summary(pl.UTF-8):     Pliki przydatne edytorowi Vim
+Summary(pl.UTF-8):     Pliki przydatne dla edytora Vim
 Summary(pt.UTF-8):     Os ficheiros comuns necessários para qualquer versão do editor VIM
 Summary(ru.UTF-8):     Файлы, требуемые для любой версии редактора vim
 Summary(sk.UTF-8):     Spoločné súbory potrebné pre všetky verzie editoru VIM
@@ -402,6 +431,11 @@ Requires:  rpm-whiteout >= 1.3
 Requires:      vim-plugin-securemodelines
 Obsoletes:     gvim-bonobo
 Obsoletes:     vim-common
+Obsoletes:     vim-syntax-gitcommit
+Obsoletes:     vim-syntax-upstart
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description rt
 This package contains macros, documentation, syntax configuration and
@@ -412,10 +446,6 @@ powerful features, you should install this package.
 Tento balíček obsahuje společné soubory pro všechny další balíčky s
 vim.
 
-%description rt -l da.UTF-8
-The vim-rt package contains files which every VIM binary will need in
-order to run.
-
 %description rt -l de.UTF-8
 Das Paket vim-rt enthält Dateien, die jede VIM-Binärdatei für die
 Ausführung benötigt.
@@ -442,9 +472,9 @@ Il pacchetto vim-rt contiene i file necessari a ogni binario di VIM
 per poter funzionare.
 
 %description rt -l pl.UTF-8
-W tym pakiecie znajdziesz dokumentację, makra, pliki konfiguracyjne i
-strony podręcznika dla edytora Vim. Jeżeli chcesz korzystać z
-zaawansowanych możliwości Vima, powinieneś zainstalować ten pakiet.
+W tym pakiecie znajdują się makra, pliki konfiguracyjne i strony
+podręcznika dla edytora Vim. Aby korzystać z zaawansowanych możliwości
+Vima, należy zainstalować ten pakiet.
 
 %description rt -l pt.UTF-8
 O pacote vim-rt contém os ficheiros que todos os executáveis do VIM
@@ -468,29 +498,49 @@ köra.
 
 %package rt-extras
 Summary:       Vim runtime extra files
+Summary(pl.UTF-8):     Dodatkowe pliki uruchomieniowe Vima
 Group:         Applications/Editors/Vim
 Requires:      %{name}-rt = %{epoch}:%{version}-%{release}
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description rt-extras
 This package contains more runtime extra files, not really useful. If
 you want to take full advantage of Vim more powerful features, you
 should install this package.
 
+%description rt-extras -l pl.UTF-8
+Ten pakiet zawiera dodatkowe pliki uruchomieniowe, nie tak bardzo
+przydatne. Aby korzystać ze wszystkich możliwości Vima, należy
+zainstalować ten pakiet.
+
 %package doc
 Summary:       Context Vim documentation
+Summary(pl.UTF-8):     Dokumentacja kontekstowa do Vima
 Group:         Applications/Editors/Vim
 Requires:      %{name}-rt = %{epoch}:%{version}-%{release}
 Requires:      gzip
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description doc
 This package contains Vim documentation accessible from vim itself
 using :help command.
 
+%description doc -l pl.UTF-8
+Ten pakiet zawiera dokumentację do Vima dostępną z poziomu samego vima
+za pomocą polecenia :help.
+
 %package spell-en
 Summary:       English dictionaries for VIMspell
 Summary(pl.UTF-8):     Angielskie słowniki dla VIMspella
 Group:         Applications/Editors/Vim
 Requires:      %{name}-rt = %{epoch}:%{version}-%{release}
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description spell-en
 English dictionaries for VIMspell.
@@ -506,6 +556,9 @@ Group:              Applications/Editors/Vim
 Requires:      %{name}-rt = %{epoch}:%{version}-%{release}
 Requires:      mktemp
 Requires:      vim-editor = %{epoch}:%{version}-%{release}
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description tutor
 This package contains Vim tutorial.
@@ -551,9 +604,9 @@ Set, що дозволяє запускати VIM як прикладну про
 з повністю графічним інтерфейсом та підтримкою миші.
 
 %package -n gvim-motif
-Summary:       Vim for X Window built with Motif
+Summary:       Vim for X Window System built with Motif
 Summary(hu.UTF-8):     A Vim X Window verziója, a Motif felhasználásával
-Summary(pl.UTF-8):     Vim dla X Window korzystający z biblioteki Motif
+Summary(pl.UTF-8):     Vim dla systemu X Window korzystający z biblioteki Motif
 Group:         Applications/Editors/Vim
 Requires:      %{name}-rt = %{epoch}:%{version}-%{release}
 Requires:      iconv
@@ -584,11 +637,12 @@ Motif, что позволяет запускать VIM как приложен
 повністю графічним інтерфейсом та підтримкою миші.
 
 %package -n gvim-gtk
-Summary:       Vim for X Window built with gtk
-Summary(hu.UTF-8):     A Vim X Window verziója, a GTK felhasználásával
-Summary(pl.UTF-8):     Vim dla X Window korzystający z biblioteki GTK
+Summary:       Vim for X Window System built with GTK+
+Summary(hu.UTF-8):     A Vim X Window verziója, a GTK+ felhasználásával
+Summary(pl.UTF-8):     Vim dla systemu X Window korzystający z biblioteki GTK+
 Group:         Applications/Editors/Vim
-Requires(post,postun): gtk+2
+Requires(post,postun): gtk-update-icon-cache
+Requires(post,postun): hicolor-icon-theme
 Requires:      %{name}-rt = %{epoch}:%{version}-%{release}
 Requires:      %{name}-rt-extras = %{epoch}:%{version}-%{release}
 Requires:      iconv
@@ -599,14 +653,14 @@ Obsoletes:        vim-X11
 
 %description -n gvim-gtk
 The classic Unix text editor now also under X Window System! This
-version is built with GTK.
+version is built with GTK+.
 
 %description -n gvim-gtk -l hu.UTF-8
-A Vim X Window verziója, a GTK Widgetkészlet felhasználásával.
+A Vim X Window verziója, a GTK+ Widgetkészlet felhasználásával.
 
 %description -n gvim-gtk -l pl.UTF-8
 Wersja edytora Vim pracująca w środowisku X Window z wykorzystaniem
-biblioteki GTK.
+biblioteki GTK+.
 
 %description -n gvim-gtk -l ru.UTF-8
 Этот пакет представляет собой версию VIM, собранную с библиотеками
@@ -620,11 +674,12 @@ GTK, что позволяет запускать VIM как приложени
 графічним інтерфейсом та підтримкою миші. Просто скажіть 'gvim'...
 
 %package -n gvim-gnome
-Summary:       Vim for X Window built with GNOME
-Summary(hu.UTF-8):     A Vim X Window verziója, a GTK felhasználásával
-Summary(pl.UTF-8):     Vim dla X Window korzystający z biblioteki GNOME
+Summary:       Vim for X Window System built with GNOME
+Summary(hu.UTF-8):     A Vim X Window verziója, a GNOME felhasználásával
+Summary(pl.UTF-8):     Vim dla systemu X Window korzystający z biblioteki GNOME
 Group:         Applications/Editors/Vim
-Requires(post,postun): gtk+2
+Requires(post,postun): gtk-update-icon-cache
+Requires(post,postun): hicolor-icon-theme
 Requires:      %{name}-rt = %{epoch}:%{version}-%{release}
 Requires:      %{name}-rt-extras = %{epoch}:%{version}-%{release}
 Requires:      iconv
@@ -655,9 +710,9 @@ GNOME, что позволяет запускать VIM как приложен
 повністю графічним інтерфейсом та підтримкою миші.
 
 %package -n gvim-heavy
-Summary:       Full featured build of Vim with X-window support
+Summary:       Full featured build of Vim with X Window support
 Summary(hu.UTF-8):     A gvim legteljesebb verziója
-Summary(pl.UTF-8):     W pełni funkcjonalna wersja Vima z interfejsem dla X-window
+Summary(pl.UTF-8):     W pełni funkcjonalna wersja Vima z interfejsem dla X Window
 Group:         Applications/Editors/Vim
 Requires(post,postun): gtk+2
 Requires:      %{name}-rt = %{epoch}:%{version}-%{release}
@@ -682,7 +737,7 @@ zawierającą obsługę skryptów w językach Perl, Python, Ruby oraz Tcl
 jak również GUI GTK+2.
 
 %prep
-%setup -q -n %{name}72 -b1 -b2
+%setup -q -n %{name}74
 
 # official patches
 %patchset_patch 1 %{patchlevel}
@@ -713,48 +768,44 @@ jak również GUI GTK+2.
 %patch23 -p1
 %patch24 -p1
 %patch25 -p1
-
-# home etc
-%{?with_home_etc:%patch104 -p1}
+%{?with_home_etc:%patch26 -p1}
 
 # autopaste patch - automatically switch to paste mode
 # when `really fast typing' situation happens
-%patch105 -p1
-
-%patch106 -p1
-%patch107 -p0
-%patch108 -p1
-%patch109 -p1
-%patch110 -p1
-%patch111 -p1
-%patch112 -p1
-%patch113 -p1
-%patch114 -p1
-%patch115 -p1
-%patch116 -p1
-%patch117 -p1
-
-cp -a %{SOURCE20} runtime/syntax
-cp -a %{SOURCE22} runtime/syntax
-cp -a %{SOURCE23} runtime/syntax
-cp -a %{SOURCE30} runtime/colors
-cp -a %{SOURCE31} runtime/colors
-cp -a %{SOURCE32} runtime/colors
-
-%{__unzip} -qd runtime/doc %{SOURCE4}
+%patch27 -p1
+%patch28 -p1
+%patch29 -p1
+%patch30 -p1
+%patch31 -p1
+%patch32 -p1
+%patch33 -p1
+%patch34 -p1
+%patch35 -p1
+%patch36 -p1
+%patch37 -p1
+%patch38 -p1
+%patch39 -p1
+
+cp -p %{SOURCE20} runtime/syntax
+cp -p %{SOURCE22} runtime/syntax
+cp -p %{SOURCE30} runtime/colors
+cp -p %{SOURCE31} runtime/colors
+cp -p %{SOURCE32} runtime/colors
+
+%{__unzip} -qd runtime/doc %{SOURCE2}
 
 # remove unsupported locales
-rm -f src/po/zh_{CN,TW}.UTF-8.po
-rm -f runtime/lang/menu_zh_{cn,tw}.utf-8.vim
+%{__rm} src/po/zh_{CN,TW}.UTF-8.po
+%{__rm} runtime/lang/menu_zh_{cn,tw}.utf-8.vim
 
 # fix nb/no
-mv -f src/po/n{o,b}.po
-mv -f runtime/tutor/tutor.n{o,b}
-mv -f runtime/tutor/tutor.n{o,b}.utf-8
-mv -f runtime/lang/menu_n{o,b}.latin1.vim
-mv -f runtime/lang/menu_n{o,b}.utf-8.vim
-mv -f runtime/lang/menu_n{o,b}_no.latin1.vim
-mv -f runtime/lang/menu_n{o,b}_no.utf-8.vim
+%{__mv} src/po/n{o,b}.po
+%{__mv} runtime/tutor/tutor.n{o,b}
+%{__mv} runtime/tutor/tutor.n{o,b}.utf-8
+%{__mv} runtime/lang/menu_n{o,b}.latin1.vim
+%{__mv} runtime/lang/menu_n{o,b}.utf-8.vim
+%{__mv} runtime/lang/menu_n{o,b}_no.latin1.vim
+%{__mv} runtime/lang/menu_n{o,b}_no.utf-8.vim
 
 %build
 cd src
@@ -766,10 +817,16 @@ install -d bin
 build() {
        set -x
        local target=$1
-       local shlink
        shift
 
-       %{__make} distclean
+       %configure \
+%if "%{pld_release}" == "ac"
+               --with-tlib="ncurses -ltinfo"
+%else
+               --with-tlib="ncursesw"
+%endif
+
+       %{__make} -j1 distclean
        # add common options, can override (disable) if needed with args
        %configure \
                --%{!?with_perl:dis}%{?with_perl:en}able-perlinterp \
@@ -781,34 +838,21 @@ build() {
                --enable-gpm \
                --enable-multibyte \
                --enable-nls \
-%if "%{pld_release}" == "th"
-               --with-tlib="ncursesw -ltinfow" \
-%else
+%if "%{pld_release}" == "ac"
                --with-tlib="ncurses -ltinfo" \
+%else
+               --with-tlib="ncursesw" \
 %endif
                --with-modified-by="PLD Linux Distribution" \
                --with-compiledby="PLD Linux Distribution" \
                "$@"
 
        %{__make} vim
-       # Hack around glibc brokeness wrt static linking and NSS (Name Service Shit)
-       if [ "$target" = "vim.static" ]; then
-               echo "s| -l\([^ ]\+\)| %{_libdir}/lib\1.a|g" >>auto/link.sed
-               rm -f vim
-               %{__make} vim
-               shlink=$(ldd ./vim | grep -v "linux-vdso\|libc.so\|ld-linux.*" || :)
-               if [ -n "$shlink" ]; then
-                       echo "Looks like static link failed!"
-                       echo "These libs should be linked static:"
-                       echo $shlink
-                       return 1
-               fi
-       fi
        mv -f vim bin/$target
 }
 
 %if %{with static}
-#LDFLAGS="%{rpmldflags} -static"
+LDFLAGS="%{rpmldflags} -static"
 build vim.static \
        --disable-gui \
        --without-x \
@@ -822,7 +866,21 @@ build vim.static \
        --disable-multibyte \
        --disable-nls
 
-#LDFLAGS="%{rpmldflags}"
+LDFLAGS="%{rpmldflags}"
+%endif
+
+%if %{with light}
+build vim.light \
+       --disable-gui \
+       --without-x \
+       --with-features=small \
+       --disable-perlinterp \
+       --disable-pythoninterp \
+       --disable-rubyinterp \
+       --disable-tclinterp \
+       --disable-cscope \
+       --disable-gpm \
+       --disable-nls
 %endif
 
 build vim.ncurses \
@@ -830,6 +888,11 @@ build vim.ncurses \
        --without-x \
        --with-features=huge
 
+build vimx \
+       --disable-gui \
+       --with-x \
+       --with-features=huge
+
 %if %{with athena}
 build gvim.athena \
        --with-features=huge \
@@ -912,6 +975,17 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
 %{__make} -j1 install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# not supported locales added by 7.3.764 or later
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cs.cp1250
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ja.sjis
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ja.euc-jp
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl.UTF-8
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl.cp1250
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ru.cp1251
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/sk.cp1250
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/uk.cp1251
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/zh_CN.cp936
+
 %find_lang %{name}
 
 # use compressed docs, see :help gzip-helpfile
@@ -921,7 +995,7 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir}/vim,%{_bindir}} \
 %{__gzip} -9 $RPM_BUILD_ROOT%{_datadir}/vim/doc/*.??x
 %{__sed} -i -e 's=\(\t.*\.plx\)\t=\1.gz\t=' $RPM_BUILD_ROOT%{_datadir}/vim/doc/tags-pl
 
-rm -f $RPM_BUILD_ROOT%{_bindir}/*
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/*
 
 %if %{with static}
 install -p src/bin/vim.ncurses $RPM_BUILD_ROOT%{_bindir}/vim
@@ -930,58 +1004,62 @@ install -p src/bin/vim.static    $RPM_BUILD_ROOT/bin/vi
 install -p src/bin/vim.ncurses $RPM_BUILD_ROOT/bin/vi
 ln -sf /bin/vi         $RPM_BUILD_ROOT%{_bindir}/vim
 %endif
+install -p src/bin/vimx        $RPM_BUILD_ROOT%{_bindir}/vimx
 install -p src/xxd/xxd $RPM_BUILD_ROOT%{_bindir}/xxd
 install -p src/vimtutor        $RPM_BUILD_ROOT%{_bindir}/vimtutor
 
-echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
-echo ".so vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
+echo ".so man1/vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/vi.1
+echo ".so man1/vim.1" > $RPM_BUILD_ROOT%{_mandir}/man1/view.1
 
 # not supported directories
-rm -rf $RPM_BUILD_ROOT%{_mandir}/??.*/
+%{__rm} -r $RPM_BUILD_ROOT%{_mandir}/??.*/
 
 mv -f $RPM_BUILD_ROOT{%{_datadir}/vim/vimrc_example.vim,%{_sysconfdir}/vim/vimrc}
 mv -f $RPM_BUILD_ROOT{%{_datadir}/vim/gvimrc_example.vim,%{_sysconfdir}/vim/gvimrc}
 
-ln -sf vim $RPM_BUILD_ROOT%{_bindir}/eview
-ln -sf vim $RPM_BUILD_ROOT%{_bindir}/evim
 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/rvim
 ln -sf vim $RPM_BUILD_ROOT%{_bindir}/vimdiff
 ln -sf vi  $RPM_BUILD_ROOT/bin/ex
 ln -sf vi  $RPM_BUILD_ROOT/bin/view
 ln -sf vi  $RPM_BUILD_ROOT/bin/rview
 
-cp -a %{SOURCE14}      $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{SOURCE14}      $RPM_BUILD_ROOT%{_desktopdir}
 
 %if %{with athena}
 install -p src/bin/gvim.athena $RPM_BUILD_ROOT%{_bindir}/gvim.athena
-cp -a %{SOURCE10}      $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{SOURCE10}      $RPM_BUILD_ROOT%{_desktopdir}
 %endif
 %if %{with motif}
 install -p src/bin/gvim.motif  $RPM_BUILD_ROOT%{_bindir}/gvim.motif
-cp -a %{SOURCE11}      $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{SOURCE11}      $RPM_BUILD_ROOT%{_desktopdir}
 %endif
 %if %{with gnome}
 install -p src/bin/gvim.gnome  $RPM_BUILD_ROOT%{_bindir}/gvim.gnome
-cp -a %{SOURCE13}      $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{SOURCE13}      $RPM_BUILD_ROOT%{_desktopdir}
 %endif
 %if %{with gtk}
 install -p src/bin/gvim.gtk    $RPM_BUILD_ROOT%{_bindir}/gvim.gtk
 ln -sf gvim.gtk                $RPM_BUILD_ROOT%{_bindir}/gvim
+ln -sf gvim            $RPM_BUILD_ROOT%{_bindir}/eview
+ln -sf gvim            $RPM_BUILD_ROOT%{_bindir}/evim
 ln -sf gvim            $RPM_BUILD_ROOT%{_bindir}/gview
 ln -sf gvim            $RPM_BUILD_ROOT%{_bindir}/gvimdiff
 ln -sf gvim            $RPM_BUILD_ROOT%{_bindir}/rgview
 ln -sf gvim            $RPM_BUILD_ROOT%{_bindir}/rgvim
-cp -a %{SOURCE12}      $RPM_BUILD_ROOT%{_desktopdir}
+cp -p %{SOURCE12}      $RPM_BUILD_ROOT%{_desktopdir}
 %endif
 %if %{with heavy}
 install -p src/bin/vim.heavy   $RPM_BUILD_ROOT%{_bindir}
 install -p src/bin/gvim.heavy  $RPM_BUILD_ROOT%{_bindir}
 %endif
+%if %{with light}
+install -p src/bin/vim.light   $RPM_BUILD_ROOT%{_bindir}
+%endif
 
 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
-cp -a runtime/vim48x48.png $RPM_BUILD_ROOT%{_pixmapsdir}/vim.png
+cp -p runtime/vim48x48.png $RPM_BUILD_ROOT%{_pixmapsdir}/vim.png
 
-bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
+bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdetect,ftplugin,indent,plugin,spell,syntax}}
 > $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/doc/tags
@@ -990,10 +1068,12 @@ install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{compiler,ftdet
 %{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/{ftplugin,syntax}/spec.vim
 
 # unuseful
-rm -rf $RPM_BUILD_ROOT%{_datadir}/vim/tools
-rm -f $RPM_BUILD_ROOT%{_datadir}/vim/bugreport.vim
-rm -f $RPM_BUILD_ROOT%{_datadir}/vim/spell/cleanadd.vim
-rm -f $RPM_BUILD_ROOT%{_datadir}/vim/doc/vim2html.pl
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/vim/tools
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/bugreport.vim
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/check_locales.vim
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/cleanadd.vim
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/spell/fixdup.vim
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/vim/doc/vim2html.pl
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -1034,34 +1114,25 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/eview
-%attr(755,root,root) %{_bindir}/evim
 %attr(755,root,root) %{_bindir}/rvim
 %attr(755,root,root) %{_bindir}/vim
 %attr(755,root,root) %{_bindir}/vimdiff
-%{_mandir}/man1/eview.1*
-%{_mandir}/man1/evim.1*
 %{_mandir}/man1/rvim.1*
 %{_mandir}/man1/vimdiff.1*
 %lang(fi) %{_mandir}/fi/man1/rvim.1*
-%lang(fr) %{_mandir}/fr/man1/eview.1*
-%lang(fr) %{_mandir}/fr/man1/evim.1*
 %lang(fr) %{_mandir}/fr/man1/rvim.1*
 %lang(fr) %{_mandir}/fr/man1/vimdiff.1*
 %lang(id) %{_mandir}/id/man1/rvim.1*
 %lang(id) %{_mandir}/id/man1/vim.1*
-%lang(it) %{_mandir}/it/man1/eview.1*
-%lang(it) %{_mandir}/it/man1/evim.1*
 %lang(it) %{_mandir}/it/man1/rvim.1*
 %lang(it) %{_mandir}/it/man1/vim.1*
 %lang(it) %{_mandir}/it/man1/vimdiff.1*
-%lang(pl) %{_mandir}/pl/man1/eview.1*
-%lang(pl) %{_mandir}/pl/man1/evim.1*
+%lang(ja) %{_mandir}/ja/man1/rvim.1*
+%lang(ja) %{_mandir}/ja/man1/vim.1*
+%lang(ja) %{_mandir}/ja/man1/vimdiff.1*
 %lang(pl) %{_mandir}/pl/man1/rvim.1*
 %lang(pl) %{_mandir}/pl/man1/vim.1*
 %lang(pl) %{_mandir}/pl/man1/vimdiff.1*
-%lang(ru) %{_mandir}/ru/man1/eview.1*
-%lang(ru) %{_mandir}/ru/man1/evim.1*
 %lang(ru) %{_mandir}/ru/man1/rvim.1*
 %lang(ru) %{_mandir}/ru/man1/vim.1*
 %lang(ru) %{_mandir}/ru/man1/vimdiff.1*
@@ -1071,7 +1142,10 @@ rm -rf $RPM_BUILD_ROOT
 %files static
 %endif
 %defattr(644,root,root,755)
-%attr(755,root,root) /bin/*
+%attr(755,root,root) /bin/ex
+%attr(755,root,root) /bin/rview
+%attr(755,root,root) /bin/vi
+%attr(755,root,root) /bin/view
 %{_mandir}/man1/vi.1*
 %{_mandir}/man1/ex.1*
 %{_mandir}/man1/view.1*
@@ -1092,6 +1166,9 @@ rm -rf $RPM_BUILD_ROOT
 %lang(it) %{_mandir}/it/man1/ex.1*
 %lang(it) %{_mandir}/it/man1/view.1*
 %lang(it) %{_mandir}/it/man1/rview.1*
+%lang(ja) %{_mandir}/ja/man1/ex.1*
+%lang(ja) %{_mandir}/ja/man1/view.1*
+%lang(ja) %{_mandir}/ja/man1/rview.1*
 %lang(pl) %{_mandir}/pl/man1/vi.1*
 %lang(pl) %{_mandir}/pl/man1/ex.1*
 %lang(pl) %{_mandir}/pl/man1/view.1*
@@ -1107,6 +1184,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/xxd.1*
 %lang(fr) %{_mandir}/fr/man1/xxd.1*
 %lang(it) %{_mandir}/it/man1/xxd.1*
+%lang(ja) %{_mandir}/ja/man1/xxd.1*
 %lang(pl) %{_mandir}/pl/man1/xxd.1*
 %lang(ru) %{_mandir}/ru/man1/xxd.1*
 
@@ -1117,6 +1195,10 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vim/gvimrc
 
 %dir %{_datadir}/vim
+%dir %{_datadir}/vim/doc
+%verify(not md5 mtime size) %{_datadir}/vim/doc/tags
+%lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/doc/tags-pl
+%verify(not md5 mtime size) %{_datadir}/vim/vimfiles/doc/tags
 
 %dir %{_datadir}/vim/vimfiles
 %dir %{_datadir}/vim/vimfiles/doc
@@ -1135,7 +1217,6 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_datadir}/vim/vimfiles/plugin
 %dir %{_datadir}/vim/vimfiles/spell
 %dir %{_datadir}/vim/vimfiles/syntax
-%verify(not md5 mtime size) %{_datadir}/vim/vimfiles/doc/tags
 
 %{_datadir}/vim/*.vim
 
@@ -1217,14 +1298,12 @@ rm -rf $RPM_BUILD_ROOT
 %lang(zh_TW) %{_datadir}/vim/lang/menu_*taiwan*
 
 %dir %{_datadir}/vim/spell
+%{_datadir}/vim/spell/spell.vim
 %lang(he) %{_datadir}/vim/spell/he.*
 %lang(yi) %{_datadir}/vim/spell/yi.*
 
-%{_mandir}/man1/rvim.1*
 %{_mandir}/man1/vim.1*
-%lang(fi) %{_mandir}/fi/man1/rvim.1*
 %lang(fi) %{_mandir}/fi/man1/vim.1*
-%lang(fr) %{_mandir}/fr/man1/rvim.1*
 %lang(fr) %{_mandir}/fr/man1/vim.1*
 %{_pixmapsdir}/vim.png
 
@@ -1249,15 +1328,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files doc
 %defattr(644,root,root,755)
-%dir %{_datadir}/vim/doc
-
 # English
 %{_datadir}/vim/doc/*.txt.gz
-%verify(not md5 mtime size) %{_datadir}/vim/doc/tags
 
 # Polish
 %lang(pl) %{_datadir}/vim/doc/*.plx.gz
-%lang(pl) %verify(not md5 mtime size) %{_datadir}/vim/doc/tags-pl
 
 %files tutor
 %defattr(644,root,root,755)
@@ -1266,13 +1341,13 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_datadir}/vim/tutor/tutor
 
 %{_datadir}/vim/tutor/README.txt
-%{_datadir}/vim/tutor/README.txt.info
-%{_datadir}/vim/tutor/tutor.info
 %{_datadir}/vim/tutor/tutor.vim
 %{_datadir}/vim/tutor/tutor.utf-8
 %lang(el) %{_datadir}/vim/tutor/README.el.cp737.txt
 %lang(el) %{_datadir}/vim/tutor/README.el.txt
 
+%lang(de) %{_datadir}/vim/tutor/tutor.bar
+%lang(de) %{_datadir}/vim/tutor/tutor.bar.utf-8
 %lang(ca) %{_datadir}/vim/tutor/tutor.ca
 %lang(ca) %{_datadir}/vim/tutor/tutor.ca.utf-8
 %lang(cs) %{_datadir}/vim/tutor/tutor.cs
@@ -1283,6 +1358,7 @@ rm -rf $RPM_BUILD_ROOT
 %lang(el) %{_datadir}/vim/tutor/tutor.el
 %lang(el) %{_datadir}/vim/tutor/tutor.el.cp737
 %lang(el) %{_datadir}/vim/tutor/tutor.el.utf-8
+%lang(eo) %{_datadir}/vim/tutor/tutor.eo
 %lang(eo) %{_datadir}/vim/tutor/tutor.eo.utf-8
 %lang(es) %{_datadir}/vim/tutor/tutor.es
 %lang(es) %{_datadir}/vim/tutor/tutor.es.utf-8
@@ -1292,8 +1368,8 @@ rm -rf $RPM_BUILD_ROOT
 %lang(hr) %{_datadir}/vim/tutor/tutor.hr.cp1250
 %lang(hr) %{_datadir}/vim/tutor/tutor.hr.utf-8
 %lang(hu) %{_datadir}/vim/tutor/tutor.hu
-%lang(hu) %{_datadir}/vim/tutor/tutor.hu.utf-8
 %lang(hu) %{_datadir}/vim/tutor/tutor.hu.cp1250
+%lang(hu) %{_datadir}/vim/tutor/tutor.hu.utf-8
 %lang(it) %{_datadir}/vim/tutor/tutor.it
 %lang(it) %{_datadir}/vim/tutor/tutor.it.utf-8
 %lang(ja) %{_datadir}/vim/tutor/tutor.ja.euc
@@ -1301,11 +1377,15 @@ rm -rf $RPM_BUILD_ROOT
 %lang(ja) %{_datadir}/vim/tutor/tutor.ja.utf-8
 %lang(ko) %{_datadir}/vim/tutor/tutor.ko.euc
 %lang(ko) %{_datadir}/vim/tutor/tutor.ko.utf-8
+%lang(nl) %{_datadir}/vim/tutor/tutor.nl
+%lang(nl) %{_datadir}/vim/tutor/tutor.nl.utf-8
 %lang(nb) %{_datadir}/vim/tutor/tutor.nb
 %lang(nb) %{_datadir}/vim/tutor/tutor.nb.utf-8
 %lang(pl) %{_datadir}/vim/tutor/tutor.pl
 %lang(pl) %{_datadir}/vim/tutor/tutor.pl.cp1250
 %lang(pl) %{_datadir}/vim/tutor/tutor.pl.utf-8
+%lang(pt) %{_datadir}/vim/tutor/tutor.pt
+%lang(pt) %{_datadir}/vim/tutor/tutor.pt.utf-8
 %lang(ru) %{_datadir}/vim/tutor/tutor.ru
 %lang(ru) %{_datadir}/vim/tutor/tutor.ru.cp1251
 %lang(ru) %{_datadir}/vim/tutor/tutor.ru.utf-8
@@ -1317,22 +1397,35 @@ rm -rf $RPM_BUILD_ROOT
 %lang(tr) %{_datadir}/vim/tutor/tutor.tr.iso9
 %lang(tr) %{_datadir}/vim/tutor/tutor.tr.utf-8
 %lang(vi) %{_datadir}/vim/tutor/tutor.vi.utf-8
+%lang(zh_CN) %{_datadir}/vim/tutor/tutor.zh_cn.utf-8
 %lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.big5
 %lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.euc
 %lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh.utf-8
+%lang(zh_TW) %{_datadir}/vim/tutor/tutor.zh_tw.utf-8
 
 %{_mandir}/man1/vimtutor.1*
 %lang(fr) %{_mandir}/fr/man1/vimtutor.1*
 %lang(it) %{_mandir}/it/man1/vimtutor.1*
+%lang(ja) %{_mandir}/ja/man1/vimtutor.1*
 %lang(pl) %{_mandir}/pl/man1/vimtutor.1*
 %lang(ru) %{_mandir}/ru/man1/vimtutor.1*
 
+%files -n vimx
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/vimx
+
 %if %{with heavy}
 %files heavy
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/vim.heavy
 %endif
 
+%if %{with light}
+%files light
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/vim.light
+%endif
+
 %files spell-en
 %defattr(644,root,root,755)
 %{_datadir}/vim/spell/en.*.*
@@ -1355,23 +1448,39 @@ rm -rf $RPM_BUILD_ROOT
 %files -n gvim-gtk
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/gvim.gtk
-%attr(755,root,root) %{_bindir}/gvimdiff
+%attr(755,root,root) %verify(not link) %{_bindir}/gvim
+%attr(755,root,root) %{_bindir}/eview
+%attr(755,root,root) %{_bindir}/evim
 %attr(755,root,root) %{_bindir}/gview
-%attr(755,root,root) %{_bindir}/rgvim
+%attr(755,root,root) %{_bindir}/gvimdiff
 %attr(755,root,root) %{_bindir}/rgview
-%attr(755,root,root) %verify(not link) %{_bindir}/gvim
+%attr(755,root,root) %{_bindir}/rgvim
+%{_mandir}/man1/eview.1*
+%{_mandir}/man1/evim.1*
 %{_mandir}/man1/gvi*
 %{_mandir}/man1/rgv*
 %lang(fi) %{_mandir}/fi/man1/gvi*
 %lang(fi) %{_mandir}/fi/man1/rgv*
+%lang(fr) %{_mandir}/fr/man1/eview.1*
+%lang(fr) %{_mandir}/fr/man1/evim.1*
 %lang(fr) %{_mandir}/fr/man1/gvi*
 %lang(fr) %{_mandir}/fr/man1/rgv*
 %lang(id) %{_mandir}/id/man1/gvi*
 %lang(id) %{_mandir}/id/man1/rgv*
+%lang(it) %{_mandir}/it/man1/eview.1*
+%lang(it) %{_mandir}/it/man1/evim.1*
 %lang(it) %{_mandir}/it/man1/gvi*
 %lang(it) %{_mandir}/it/man1/rgv*
+%lang(ja) %{_mandir}/ja/man1/eview.1*
+%lang(ja) %{_mandir}/ja/man1/evim.1*
+%lang(ja) %{_mandir}/ja/man1/gvi*
+%lang(ja) %{_mandir}/ja/man1/rgv*
+%lang(pl) %{_mandir}/pl/man1/eview.1*
+%lang(pl) %{_mandir}/pl/man1/evim.1*
 %lang(pl) %{_mandir}/pl/man1/gvi*
 %lang(pl) %{_mandir}/pl/man1/rgv*
+%lang(ru) %{_mandir}/ru/man1/eview.1*
+%lang(ru) %{_mandir}/ru/man1/evim.1*
 %lang(ru) %{_mandir}/ru/man1/gvi*
 %lang(ru) %{_mandir}/ru/man1/rgv*
 %{_desktopdir}/gvim-gtk.desktop
This page took 0.087021 seconds and 4 git commands to generate.