%global debug_package %{nil}
%global commit e384175204da07f6906a1bf04dbfb73644d1cd6b
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global gituser samoht0
%global gitcounter 2
Name: xdccget
Version: 1.13.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 |-g0 |' -e 's|-march=x86-64|-march=x86-64-v2 -fvect-cost-model=dynamic|')
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
* Sat Aug 08 2026 samoht0 git-master
- testing x86-64-v2
* Fri Jun 19 2026 samoht0 git-master
- syncing my own fork repository with TheBurningDust/xdccget-for-windows (v1.13)
- history cleanup