taskwarrior-almalinux9/builders/makebuilder

78 lines
1.8 KiB
Plaintext
Raw Permalink Normal View History

2026-08-23 15:07:35 +00:00
#!/bin/sh
# Setup RPM build for TaskWarrior.
#
# 2026-08-22 Tim Holloway
#
# NOTE: the %files list may add/remove entries between releases. Adjust as needed.
#
rpmbuild=$HOME/rpmbuild
version=3.5.0
# create build base if it doesn't exist
mkdir -p $rpmbuild
cd $rpmbuild
#
2026-08-23 16:51:00 +00:00
# Ensure basic build directories exist
#
mkdir -p SOURCES SPECS
#
2026-08-23 15:07:35 +00:00
# Pull source
#
2026-08-23 16:51:00 +00:00
cd SOURCES
git clone https://github.com/GothenburgBitFactory/taskwarrior.git taskwarrior-${version}
2026-08-23 15:07:35 +00:00
#
# Build version archive
#
2026-08-23 16:51:00 +00:00
tar cvzf taskwarrior-${version}.tgz --remove-files taskwarrior-${version}
2026-08-23 15:07:35 +00:00
#
# customize specfile
#
cd ${rpmbuild}
2026-08-23 16:51:00 +00:00
###rm -rf taskwarrior
2026-08-23 15:07:35 +00:00
sed -e "s/@@VERSION@@/${version}/" >${rpmbuild}/SPECS/taskwarrior.spec <<EOF
#
# spec file for Taskwarrior app...
#
Summary: CLI-based todo/reminders
Name: taskwarrior
Version: @@VERSION@@
Release: 0
License: GPL
Group: Applications/Utilities
Source: taskwarrior-@@VERSION@@.tgz
# https://github.com/GothenburgBitFactory/taskwarrior/archive/refs/heads/develop.zip
#https://github.com/GothenburgBitFactory/taskwarrior
URL: http://www.taskwarrior.org
Distribution: CentOS 9
#Vendor: Tim Holloway
Packager: Tim Holloway <timh@mousetech.com>
2026-08-23 18:26:51 +00:00
#Build Requires: git epel-release fish cmake gnutls-devel libuuid-devel
2026-08-23 15:07:35 +00:00
%description
A CLI-based manager for tasks and to-dos with scheduling.
%prep
%setup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /tmp/rustup.sh && . /tmp/rustup.sh -y
. "$HOME/.cargo/env"
%build
%cmake -DCMAKE_BUILD_TYPE=Release
%cmake_build
%install
%cmake_install
%files
/usr/bin/task
/usr/lib/debug/usr/bin/task-@@VERSION@@-0.x86_64.debug
/usr/share/bash-completion/completions/task
/usr/share/doc/task/
2026-08-23 15:07:35 +00:00
/usr/share/fish/vendor_completions.d/task.fish
/usr/share/man/man1/task.1.gz
/usr/share/man/man5/task-color.5.gz
/usr/share/man/man5/task-sync.5.gz
/usr/share/man/man5/taskrc.5.gz
/usr/share/zsh/site-functions/_task
EOF