%global debug_package %{nil} %global forgeurl https://salsa.debian.org/debian/wcurl %global tag 2024.07.10 %global topdir %{name}-%{tag} %global scm git %global distprefix %{nil} %forgemeta Name: wcurl Version: 2024.07.10 Release: 1%{?dist} Summary: simple wrapper around curl to easily download files License: curl URL: %{forgeurl} Source: %{forgeurl}/-/archive/%{tag}/%{name}-%{tag}.tar.gz BuildArch: noarch Requires: curl BuildRequires: shunit2 %description wcurl is a simple curl wrapper which lets you use curl to download files without having to remember any parameters. %prep %forgeautosetup %build %install mkdir -p %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_mandir}/man1 install -m 0755 %{name} %{buildroot}%{_bindir}/%{name} install -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %check cd tests PATH=$PATH:/usr/share/shunit2 ./tests.sh %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Mon Sep 23 2024 Andrew Potter - 2024.07.10-1 - Release 2024.07.10 * Sun Jul 7 2024 Andrew Potter - 2024.07.07-3 - Downloading name-tag instead of name-version removes need for commit - Run tests * Sun Jul 7 2024 Andrew Potter - 2024.07.07-2 - Set blank distprefix since we'll only package releases * Sun Jul 7 2024 Andrew Potter - 2024.07.07-1 - Version 2024-07-07 - Reference debian salsa instead of the Github mirror * Fri Jul 5 2024 Andrew Potter - 2024.07.02-1 - Initial version of package