Name: metatouch Version: 0.1.3 Release: 1%{?dist} Summary: Set file modification times from dates stored inside the files License: MIT URL: https://github.com/gebailey/metatouch Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # Standard library only: no Go library BuildRequires needed. BuildRequires: golang >= 1.22 BuildRequires: go-rpm-macros %description metatouch sets a file's modification time from a date stored inside the file, like touch -d with the date read from the file's metadata. It supports JPEG/EXIF, PNG, PDF (including files encrypted with an empty user password), ZIP and OOXML/ODF documents, gzip, bzip2, tar, RPM and MP4 files, detected by content rather than file extension. %prep %autosetup -n %{name}-%{version} %build export LDFLAGS="-X main.version=v%{version}" %gobuild -o %{gobuilddir}/bin/%{name} . %install install -Dpm 0755 %{gobuilddir}/bin/%{name} %{buildroot}%{_bindir}/%{name} install -Dpm 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %check go test ./... %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Sat Nov 28 2026 Greg Bailey - 0.1.3-1 - Initial package