vifm/vifm.spec

109 lines
3.4 KiB
RPMSpec
Raw Permalink Normal View History

- Update to 0.14: * Somewhat incompatible changes This release contains a number of changes which are technically non-backwards compatible. However, all of them should have very little negative impact (i.e., hard to notice the change without reading the changelog). At the same time, a bug, fixing which is likely to have an impact on user configuration, has been identified but not yet fixed to give a chance to update all affected vifmrc files. If a bug is likely to be relied on by the configuration, a dialog with the explanation and instructions will appear. * Sorting and non-Latin characters Until this release Vifm has always used byte sorting (effectively, sorting of UTF-8 byte sequences). From now on a form of Unicode normalization is applied to strings when sorting views and completion results. The change can be expanded to other cases in future releases. The measured performance impact is negligible (several percent). Practically, this means that characters like a and ä are now grouped together regardless of the way in which diacritic is being encoded. Some characters can still appear in weird non-alphabetic positions because full Unicode normalization results in losing case sensitivity and is therefore not applied. * Addressing some longtime woes For one reason or another some inconvenient peculiarities have accumulated over the years. Time has come to replace workarounds with something better: + global variables (g:var) replace the use of environmental variables for internal purposes, thus avoiding polluting environment of child processes + use of :let to invoke a builtin function discarding its result is superseded by a proper :call command + use of execute 'normal! gl' to run selection now has :open command as a better alternative + size of selection can now be queried via selected() (previous releases OBS-URL: https://build.opensuse.org/package/show/utilities/vifm?expand=0&rev=43
2025-02-10 07:35:03 +00:00
#
# spec file for package vifm
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: vifm
Version: 0.14
Release: 0
Summary: Ncurses based file manager with vi like keybindings
License: GPL-2.0-or-later
Group: Productivity/File utilities
URL: http://%{name}.info
Source0: https://github.com/vifm/vifm/releases/download/v%{version}/%{name}-%{version}.tar.bz2
Source1: https://github.com/vifm/vifm/releases/download/v%{version}/%{name}-%{version}.tar.bz2.asc
Source2: %{name}.keyring
BuildRequires: file-devel
BuildRequires: glib2-devel
BuildRequires: groff
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%if 0%{?suse_version} > 1110
BuildRequires: pkgconfig(x11)
%else
BuildRequires: xorg-x11-devel
%endif
%description
Vifm is a ncurses based file manager with vi like keybindings that allow complete
keyboard control over your files without having to learn a new set of commands.
It supports UTF-8, a quick file view similar to midnight commander's quick view,
and configurable color schemes.
%prep
%setup -q
sed -i 's/#!\/usr\/bin\/env perl/#!\/usr\/bin\/perl/' src/vifm-convert-dircolors
%build
%configure \
--with-curses \
--with-libmagic \
--with-glib \
--disable-developer
- Update to 0.14: * Somewhat incompatible changes This release contains a number of changes which are technically non-backwards compatible. However, all of them should have very little negative impact (i.e., hard to notice the change without reading the changelog). At the same time, a bug, fixing which is likely to have an impact on user configuration, has been identified but not yet fixed to give a chance to update all affected vifmrc files. If a bug is likely to be relied on by the configuration, a dialog with the explanation and instructions will appear. * Sorting and non-Latin characters Until this release Vifm has always used byte sorting (effectively, sorting of UTF-8 byte sequences). From now on a form of Unicode normalization is applied to strings when sorting views and completion results. The change can be expanded to other cases in future releases. The measured performance impact is negligible (several percent). Practically, this means that characters like a and ä are now grouped together regardless of the way in which diacritic is being encoded. Some characters can still appear in weird non-alphabetic positions because full Unicode normalization results in losing case sensitivity and is therefore not applied. * Addressing some longtime woes For one reason or another some inconvenient peculiarities have accumulated over the years. Time has come to replace workarounds with something better: + global variables (g:var) replace the use of environmental variables for internal purposes, thus avoiding polluting environment of child processes + use of :let to invoke a builtin function discarding its result is superseded by a proper :call command + use of execute 'normal! gl' to run selection now has :open command as a better alternative + size of selection can now be queried via selected() (previous releases OBS-URL: https://build.opensuse.org/package/show/utilities/vifm?expand=0&rev=43
2025-02-10 07:35:03 +00:00
%make_build
gzip -9c ChangeLog > ChangeLog.gz
%install
make install DESTDIR="%{?buildroot}"
%if 0%{?suse_version}
%suse_update_desktop_file %{name}
%endif
rm -rf %{buildroot}%{_datadir}/doc/vifm/*
rm -rf %{buildroot}%{_datadir}/vifm/vifmrc-osx
rm -rf %{buildroot}%{_datadir}/vifm/vifm-media-osx
rm -rf %{buildroot}%{_datadir}/vifm/vim-doc/doc/tags
rm -rf %{buildroot}%{_datadir}/vifm/vim-doc/doc/vifm-app.txt
%files
%license COPYING
%doc AUTHORS BUGS ChangeLog.* README TODO
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/vim-doc
%dir %{_datadir}/%{name}/vim-doc/doc
%doc %{_datadir}/%{name}/%{name}-help.txt
%doc %{_datadir}/%{name}/vim-doc/doc/%{name}-lua.txt
%{_bindir}/*
%{_datadir}/%{name}/vim
%{_datadir}/%{name}/%{name}rc
%{_datadir}/%{name}/colors/
%{_datadir}/%{name}/vifm-media
%{_mandir}/man1/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%dir %{_datadir}/bash-completion/
%dir %{_datadir}/bash-completion/completions/
%{_datadir}/bash-completion/completions/vifm
%dir %{_datadir}/zsh/
%dir %{_datadir}/zsh/site-functions/
%{_datadir}/zsh/site-functions/_vifm
%dir %{_datadir}/fish/
%dir %{_datadir}/fish/vendor_completions.d/
%{_datadir}/fish/vendor_completions.d/vifm.fish
%{_sysconfdir}/vifm/
%{_sysconfdir}/vifm/colors/
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/128x128
%dir %{_datadir}/icons/hicolor/128x128/apps
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/128x128/apps/vifm.png
%{_datadir}/icons/hicolor/scalable/apps/vifm.svg
%changelog