diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b79fd41 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/vim-trailing-whitespace-1.0.20191209git6b7cdec.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..67eb36b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# vim-trailing-whitespace + +The vim-trailing-whitespace package \ No newline at end of file diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..907f7ad --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (vim-trailing-whitespace-1.0.20191209git6b7cdec.tar.gz) = 348282f413541e8acd27ba1d9c8add798cf3ebfa9ed3d02dbdb85da474f1c0fa89f6813ad6949745176be780700411b920b3ba9af92ba6ae27fd6712e5017f96 diff --git a/vim-trailing-whitespace.metainfo.xml b/vim-trailing-whitespace.metainfo.xml new file mode 100644 index 0000000..a95d4e0 --- /dev/null +++ b/vim-trailing-whitespace.metainfo.xml @@ -0,0 +1,12 @@ + + + + vim-trailing-whitespace + gvim.desktop + vim-trailing-whitespace + Highlights trailing whitespace in red and provides :FixWhitespace to fix it + https://github.com/bronson/vim-trailing-whitespace + CC0-1.0 + CC-BY-SA-3.0 + ego.cordatus@gmail.com + diff --git a/vim-trailing-whitespace.spec b/vim-trailing-whitespace.spec new file mode 100644 index 0000000..f11148d --- /dev/null +++ b/vim-trailing-whitespace.spec @@ -0,0 +1,66 @@ +%global commit 6b7cdecff252474fe560d32c6f05641f3c5952c7 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global date 20191209 + +Name: vim-trailing-whitespace +Version: 1.0 +Release: 5.%{date}git%{shortcommit}%{?dist} +Summary: Highlights trailing whitespace in red and provides :FixWhitespace to fix it + +License: CC-BY-SA +URL: https://github.com/bronson/vim-trailing-whitespace +Source0: %{url}/archive/%{commit}/%{name}-%{version}.%{date}git%{shortcommit}.tar.gz +Source1: %{name}.metainfo.xml +BuildArch: noarch + +BuildRequires: libappstream-glib +BuildRequires: vim-filesystem + +Requires: vim-enhanced + +%description +This plugin causes all trailing whitespace to be highlighted in red. + +To fix the whitespace errors, just call :FixWhitespace. By default it operates +on the entire file. Pass a range (or use V to select some lines) to restrict +the portion of the file that gets fixed. + + +%prep +%autosetup -n %{name}-%{commit} -p1 + + +%install +mkdir -p %{buildroot}%{vimfiles_root} +cp -ar plugin %{buildroot}%{vimfiles_root} +install -m0644 -Dp %{SOURCE1} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml + + +%check +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml + + +%files +%doc README doc/* +%{vimfiles_root}/plugin/* +%{_metainfodir}/*.xml + + +%changelog +* Sat Jan 22 2022 Fedora Release Engineering - 1.0-5.20191209git6b7cdec +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.0-4.20191209git6b7cdec +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.0-3.20191209git6b7cdec +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.0-2.20191209git6b7cdec +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jun 19 2020 Artem Polishchuk - 1.0-1.20191209git6b7cdec +- Update to latest git snapshot + +* Thu Oct 03 2019 Artem Polishchuk - 1.0-1.20170923git4c59654 +- Initial package