Compare commits
12 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50ea3f4470 | ||
|
|
e8ee169600 | ||
|
|
01bce61193 | ||
|
|
f516b5111b |
||
|
|
f80d50a93a | ||
|
|
f3fd010af3 | ||
|
|
a6a99fe88e | ||
|
|
588b13b408 |
||
|
|
22c2e87057 |
||
|
|
42af7ceb50 |
||
|
|
e4681640c9 | ||
|
|
0adf1c4708 |
4 changed files with 30 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -9,3 +9,4 @@
|
|||
/vit-2.3.1.tar.gz
|
||||
/vit-2.3.2.tar.gz
|
||||
/vit-2.3.3.tar.gz
|
||||
/vit-2.3.4.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
This repository is maintained by packit.
|
||||
https://packit.dev/
|
||||
The file was generated using packit 1.1.1.post1.dev1+g7c5e02df.
|
||||
The file was generated using packit 1.15.1.post1.dev4+g9380a86a0.
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (vit-2.3.3.tar.gz) = c764a4bd80623f376883b78e949fe4d02149f262556cbe89827543a1114c98a38025cd26d882838e42c6d16330ab073659f87a305db50387fc9069999f5804e5
|
||||
SHA512 (vit-2.3.4.tar.gz) = 76682a39dad16f2921f16066d1ab0e4f7253b545a78bf357716895e1118f8dfba8dfad7d125f33f952f754238afe3fee54f76375d18e80a6b9b8e7c0fba05325
|
||||
|
|
|
|||
32
vit.spec
32
vit.spec
|
|
@ -1,11 +1,12 @@
|
|||
Name: vit
|
||||
%global forgeurl https://github.com/scottkosty/%{name}
|
||||
Version: 2.3.3
|
||||
Version: 2.3.4
|
||||
Release: %autorelease
|
||||
Summary: Visual Interactive Taskwarrior full-screen terminal interface
|
||||
|
||||
%forgemeta
|
||||
|
||||
# spdx
|
||||
License: MIT
|
||||
URL: %forgeurl
|
||||
Source0: %forgesource
|
||||
|
|
@ -13,8 +14,11 @@ Source0: %forgesource
|
|||
BuildArch: noarch
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: help2man
|
||||
BuildRequires: task
|
||||
Requires: task
|
||||
|
||||
# use the newest task release
|
||||
BuildRequires: (task >= 3 or task2)
|
||||
# either of these will do, depends on the user
|
||||
Requires: (task >= 3 or task2)
|
||||
|
||||
%{?python_provide:%python_provide python3-vit}
|
||||
|
||||
|
|
@ -50,7 +54,7 @@ find vit/ -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {}
|
|||
%pyproject_save_files vit
|
||||
|
||||
# Install bashcompletion
|
||||
install -m 0644 -p -D -t $RPM_BUILD_ROOT/%{_datadir}/bash-completion/completions/vit/ scripts/bash/%{name}.bash_completion
|
||||
install -m 0644 -p -D -T scripts/bash/%{name}.bash_completion $RPM_BUILD_ROOT/%{bash_completions_dir}/vit
|
||||
|
||||
# generate man pages
|
||||
for binary in "vit"
|
||||
|
|
@ -63,11 +67,29 @@ done
|
|||
%check
|
||||
LC_ALL=C PYTHONPATH=. %{__python3} -m unittest
|
||||
|
||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/
|
||||
%pretrans -p <lua>
|
||||
|
||||
path = "%{bash_completions_dir}/vit"
|
||||
st = posix.stat(path)
|
||||
if st and st.type == "directory" then
|
||||
status = os.rename(path, path .. ".rpmmoved")
|
||||
if not status then
|
||||
suffix = 0
|
||||
while not status do
|
||||
suffix = suffix + 1
|
||||
status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
|
||||
end
|
||||
os.rename(path, path .. ".rpmmoved")
|
||||
end
|
||||
end
|
||||
|
||||
%files -f %{pyproject_files}
|
||||
%doc README.md CUSTOMIZE.md COLOR.md DEVELOPMENT.md UPGRADE.md
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/bash-completion/completions/%{name}
|
||||
%{bash_completions_dir}/%{name}
|
||||
%{_mandir}/man1/vit*
|
||||
%ghost %{bash_completions_dir}/%{name}.rpmmoved
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue