%global debug_package %{nil} %global commit 6c1be5f8929e963938fe6bc00c31e5ecd3e0a039 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global gituser samoht0 %global gitcounter 1 Name: xdccget Version: 1.8.git.%{gitcounter} Release: %{shortcommit}%{?dist} Summary: Download files from IRC with XDCC from command line License: GPL-2.0-only Group: System/Console Url: https://github.com/%{gituser}/%{name} Source0: %{url}/tarball/%{commit}#/%{gituser}-%{name}-%{shortcommit}.tar.gz BuildRequires: openssl-devel gcc devscripts %description This is a project that allows you to download files from IRC with XDCC with an easy and simple to use command line tool like wget or curl. %prep %autosetup -n %{gituser}-%{name}-%{shortcommit} %build %set_build_flags export CFLAGS=$(echo "$CFLAGS -fdata-sections -ffunction-sections" | sed -e 's| -g | |') export LDFLAGS=$(echo "$LDFLAGS -Wl,-s,--gc-sections") %make_build %install install -Dm755 %{name} %{buildroot}%{_bindir}/%{name} hardening-check -v --nobranchprotection %{name} %files %{_bindir}/%{name} %doc README.md %license LICENSE %changelog * Sun Nov 16 2025 samoht0 git-master - syncing my own fork repository with TheBurningDust/xdccget-for-windows - spec and history cleanup