%global commit d55d454bd3d5b027ebf0e8c75b8f88e4eddad8d8 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: vim-tagbar Version: 3.1.2 Release: 0.4%{?dist} Summary: A class outline viewer for Vim License: Vim URL: https://github.com/preservim/tagbar Source0: %{url}/archive/%{commit}/tagbar-%{version}-git%{shortcommit}.tar.gz # Added metainfo per # https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/#_metainfo_xml_file_creation Source1: vim-tagbar.metainfo.xml Requires: vim-common Requires: ctags # TODO: These are needed by %%transfiletrigger provided by vim-commons, # not sure how to get rid of these ATM :/ Requires(post): vim Requires(postun): vim # Needed for AppData check. BuildRequires: libappstream-glib # Defines %%vimfiles_root BuildRequires: vim-filesystem BuildArch: noarch %description Tagbar is a Vim plugin that provides an easy way to browse the tags of the current file and get an overview of its structure. It does this by creating a sidebar that displays the ctags-generated tags of the current file, ordered by their scope. This means that for example methods in C++ are displayed under the class they are defined in. %prep %autosetup -n tagbar %build # Nothing to build. We are just copying files to the filesystem %install mkdir -p %{buildroot}%{vimfiles_root} cp -ar {autoload,doc,plugin,syntax} %{buildroot}%{vimfiles_root} # Install AppData. mkdir -p %{buildroot}%{_metainfodir} install -m 644 %{SOURCE1} %{buildroot}%{_metainfodir} %check # Check the AppData add-on to comply with guidelines. appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml %files %doc README.md %license LICENSE %doc %{vimfiles_root}/doc/tagbar.txt %{vimfiles_root}/autoload/tagbar %{vimfiles_root}/autoload/tagbar.vim %{vimfiles_root}/plugin/tagbar.vim %{vimfiles_root}/syntax/tagbar.vim %{_metainfodir}/vim-tagbar.metainfo.xml %changelog * Sun Sep 08 2024 Patrick Laimbock - 3.1.2-0.4 - update to git rev d55d454bd3d5b027ebf0e8c75b8f88e4eddad8d8 * Sun Jun 02 2024 Patrick Laimbock - 3.1.2-0.3 - update to git rev 12edcb59449b335555652898f82dd6d5c59d519a * Wed Nov 01 2023 Patrick Laimbock - 3.1.2-0.2 - update to git rev 5d6990e4fc5b3e3b88a3af90146f2561c4f6d828 * Sun Apr 16 2023 Patrick Laimbock - 3.1.2-0.1 - initial package - based on git commit be563539754b7af22bbe842ef217d4463f73468c