# SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. # # SPDX-License-Identifier: AGPL-3.0-or-later %define project dotfiles %define license_csv AGPL-3.0-or-later,BSD-2-Clause,CC-BY-SA-3.0,CC-BY-SA-4.0,GFDL-1.3-or-later,GPL-2.0-only,GPL-3.0-only,GPL-3.0-or-later,MIT,Vim ## Reproducibility. %define source_date_epoch_from_changelog 1 %define use_source_date_epoch_as_buildtime 1 %define clamp_mtime_to_source_date_epoch 1 ## Changelog is trimmed according to current date, not last date from changelog. %define _changelog_trimtime 0 %define _changelog_trimage 0 %global _buildhost %{name} ## Python bytecode interferes when updates occur and restart is not done. %undefine __brp_python_bytecompile Name: qusal-dotfiles Version: 0.0.1 Release: 1%{?dist} Summary: Dotfiles Group: qusal Packager: %{?_packager}%{!?_packager:Ben Grande } Vendor: Ben Grande License: AGPL-3.0-or-later AND BSD-2-Clause AND CC-BY-SA-3.0 AND CC-BY-SA-4.0 AND GFDL-1.3-or-later AND GPL-2.0-only AND GPL-3.0-only AND GPL-3.0-or-later AND MIT AND Vim URL: https://github.com/ben-grande/qusal BugURL: https://github.com/ben-grande/qusal/issues Source0: %{name}-%{version}.tar.gz BuildArch: noarch Requires: qubes-mgmt-salt Requires: qubes-mgmt-salt-dom0 %description Configuration and scripts targeting: * Usability: * Vi keybindings for application movement * Emacs keybindings for command-line editing * XDG Specification to not clutter $HOME * Portability: * POSIX compliant code * Drop-in configuration files * Tested in Qubes OS Dom0, Debian, Fedora, OpenBSD * Tasks: * GUI: x11, gtk * SCM: git, tig, git-shell * Keys: gpg, ssh * Networking: curl, urlview, wget, w3m * Productivity: tmux, vim * Shell: sh, bash, zsh, less, dircolors %prep %setup -q %build %check %pre %install rm -rf %{buildroot} install -m 755 -d \ %{buildroot}/srv/salt/qusal \ %{buildroot}%{_docdir}/%{name} \ %{buildroot}%{_defaultlicensedir}/%{name} for license in $(echo "%{license_csv}" | tr "," " "); do license_dir="LICENSES" if test -d "salt/%{project}/LICENSES"; then license_dir="salt/%{project}/LICENSES" fi install -m 644 "${license_dir}/${license}.txt" %{buildroot}%{_defaultlicensedir}/%{name}/ done install -m 644 salt/%{project}/README.md %{buildroot}%{_docdir}/%{name}/ rm -rf \ salt/%{project}/LICENSES \ salt/%{project}/README.md \ salt/%{project}/.* cp -rv salt/%{project} %{buildroot}/srv/salt/qusal/%{name} %post if test "$1" = "1"; then ## Install true elif test "$1" = "2"; then ## Upgrade true fi %preun if test "$1" = "0"; then ## Uninstall true elif test "$1" = "1"; then ## Upgrade true fi %postun if test "$1" = "0"; then ## Uninstall true elif test "$1" = "1"; then ## Upgrade true fi %files %defattr(-,root,root,-) %license %{_defaultlicensedir}/%{name}/* %doc %{_docdir}/%{name}/README.md %dir /srv/salt/qusal/%{name} /srv/salt/qusal/%{name}/* %dnl TODO: missing '%ghost', files generated during %post, such as Qrexec policies. %changelog * Wed Jul 10 2024 Ben Grande - 224312e - feat: enable all optional shellcheck validations * Tue Jul 09 2024 Ben Grande - 011a71a - style: limit line length per file extension * Mon Jul 08 2024 Ben Grande - 28c298d - fix: add Python indentation to editorconfig * Mon Jul 08 2024 Ben Grande - 10c0ea0 - chore: editorconfig check * Mon Jul 08 2024 Ben Grande - f60077f - doc: spell check * Thu Jul 04 2024 Ben Grande - 383c840 - doc: lint markdown files * Thu Jul 04 2024 Ben Grande - 88d9ba5 - fix: update dotfiles module * Mon Jun 24 2024 Ben Grande - e279113 - fix: build RPM contained in spec definitions * Thu Jun 20 2024 Ben Grande - 0e2bb5b - fix: update dotfiles module * Mon Jun 17 2024 Ben Grande - b5ae221 - fix: update dotfiles module * Mon Jun 17 2024 Ben Grande - 1a72665 - feat: add split-gpg2 configuration * Fri Jun 14 2024 Ben Grande - fcad8cb - feat: update dotfiles module * Tue Jun 04 2024 Ben Grande - a4848e1 - fix: update dotfiles module * Tue May 14 2024 Ben Grande - d148599 - doc: nested list indentation * Tue Apr 30 2024 Ben Grande - 5722a25 - fix: discover non-root username at runtime * Tue Apr 23 2024 Ben Grande - 69745df - fix: update dotfiles module * Tue Mar 19 2024 Ben Grande - 4097af2 - fix: update dotfiles module * Thu Mar 14 2024 Ben Grande - 8a0c004 - fix: update dotfiles module * Mon Mar 11 2024 Ben Grande - 49fb733 - fix: update dotfiles module * Fri Feb 23 2024 Ben Grande - 5605ec7 - doc: prefix qubesctl with sudo * Fri Feb 23 2024 Ben Grande - f513f64 - feat: better dom0 terminal usability * Sun Feb 18 2024 Ben Grande - f735474 - fix: update dotfiles module * Sun Feb 18 2024 Ben Grande - a91f488 - fix: update dotfiles module * Sun Feb 04 2024 Ben Grande - f27db69 - fix: update dotfiles module * Wed Jan 31 2024 Ben Grande - b5d7371 - fix: thunar requires xfce helpers to find terminal * Mon Jan 29 2024 Ben Grande - 6efcc1d - chore: copyright update * Fri Jan 26 2024 Ben Grande - a04960c - feat: initial split-mail setup * Sun Jan 21 2024 Ben Grande - d75a59f - fix: update dotfiles module * Thu Jan 18 2024 Ben Grande - 0dd627b - fix: update dotfiles module * Fri Jan 12 2024 Ben Grande - 6828e83 - fix: update dotfiles module * Thu Dec 28 2023 Ben Grande - bd54499 - fix: update dotfiles module * Wed Dec 27 2023 Ben Grande - 652b4f0 - fix: update dotfiles module * Thu Dec 21 2023 Ben Grande - a27493c - fix: update dotfiles module * Tue Nov 21 2023 Ben Grande - 20115a2 - fix: udpate dotfiles module * Mon Nov 20 2023 Ben Grande - 83c17c4 - fix: update dotfiles module * Mon Nov 13 2023 Ben Grande - 5eebd78 - refactor: initial commit