%global debug_package %{nil} %global commit 677116ed74c661c753664751150cd6fbf8c5840f %global commits 14 %global snapdate 20260615 %global tag 0.1.2 Name: dankcalendar-git Version: %{tag}+git%{commits}.%(c=%{commit}; echo ${c:0:8}) Release: 1%{?dist} Summary: Calendar app for the Dank Linux desktop (git) License: MIT URL: https://github.com/AvengeMedia/dankcalendar Source0: %{url}/archive/%{commit}/dankcalendar-%{commit}.tar.gz BuildRequires: golang >= 1.25 BuildRequires: git-core BuildRequires: systemd-rpm-macros Requires: quickshell-git Requires: libsecret Requires: qt6-qtdeclarative %description DankCalendar brings Local, Google, Microsoft, CalDAV, and iCloud calendars together in one standalone app. It runs as a lightweight daemon with a tray icon, keeps accounts in sync, and reminds you about events. This is the git development package built from upstream master. %prep %autosetup -n dankcalendar-%{commit} -p1 %build export GOTOOLCHAIN=auto export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" export VERSION="%{tag}+git%{commits}.%(c=%{commit}; echo ${c:0:8})" export BUILD_TIME="$(date -u '+%%Y-%%m-%%d_%%H:%%M:%%S')" export COMMIT="$(echo %{commit} | cut -c1-8)" cd core CGO_ENABLED=0 go build \ -ldflags="-s -w -X main.Version=${VERSION} -X main.BuildTime=${BUILD_TIME} -X main.Commit=${COMMIT}" \ -o ../dcal ./cmd/dcal cd .. mkdir -p completions ./dcal completion bash > completions/dcal ./dcal completion zsh > completions/_dcal ./dcal completion fish > completions/dcal.fish %install install -Dm755 dcal %{buildroot}%{_bindir}/dcal install -d %{buildroot}%{_datadir}/quickshell/dankcal cp -a quickshell/. %{buildroot}%{_datadir}/quickshell/dankcal/ install -Dm644 quickshell/assets/dankcalendar.svg \ %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/dankcalendar.svg install -Dm644 assets/com.danklinux.dankcalendar.desktop \ %{buildroot}%{_datadir}/applications/com.danklinux.dankcalendar.desktop install -Dm644 assets/systemd/dcal.service \ %{buildroot}%{_userunitdir}/dcal.service install -Dm644 completions/dcal \ %{buildroot}%{_datadir}/bash-completion/completions/dcal install -Dm644 completions/_dcal \ %{buildroot}%{_datadir}/zsh/site-functions/_dcal install -Dm644 completions/dcal.fish \ %{buildroot}%{_datadir}/fish/vendor_completions.d/dcal.fish %files %license LICENSE %{_bindir}/dcal %{_userunitdir}/dcal.service %{_datadir}/applications/com.danklinux.dankcalendar.desktop %{_datadir}/icons/hicolor/scalable/apps/dankcalendar.svg %{_datadir}/quickshell/dankcal/ %{_datadir}/bash-completion/completions/dcal %{_datadir}/zsh/site-functions/_dcal %{_datadir}/fish/vendor_completions.d/dcal.fish %changelog * Sun Jun 15 2026 Avenge Media - 0.1.2+git14.677116ed-1 - Initial git package (commit 677116ed)