[packages/mutagen-io] Initial
arekm
arekm at pld-linux.org
Mon Jun 1 09:54:53 CEST 2026
commit da8990b31dcf127a5577fba3dd6db61063339493
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Jun 1 09:54:24 2026 +0200
Initial
mutagen-io.spec | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 106 insertions(+)
---
diff --git a/mutagen-io.spec b/mutagen-io.spec
new file mode 100644
index 0000000..ece6b97
--- /dev/null
+++ b/mutagen-io.spec
@@ -0,0 +1,106 @@
+Summary: Fast file synchronization and network forwarding for remote development
+Name: mutagen-io
+Version: 0.18.1
+Release: 1
+License: MIT
+Group: Applications/Networking
+# https://github.com/mutagen-io/mutagen/releases
+Source0: https://github.com/mutagen-io/mutagen/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 7dc19b27b969e973f8dc90b506f51135
+# vendored Go modules (build runs offline); regenerate the archive with:
+# cd mutagen-VERSION && go mod vendor && tar cJf mutagen-io-vendor-VERSION.tar.xz vendor
+Source1: %{name}-vendor-%{version}.tar.xz
+# Source1-md5: e0c42d12fe3a0593acb61aa94f74857b
+URL: https://mutagen.io/
+BuildRequires: golang >= 1.22
+BuildRequires: rpmbuild(macros) >= 2.009
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+ExclusiveArch: %go_arches
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%undefine _debugsource_packages
+
+%description
+Mutagen is a development tool that enables fast, continuous file
+synchronization and network forwarding to remote systems such as SSH
+hosts, Docker containers, and cloud-based development environments. It
+lets you edit code locally while building, running, and testing it
+remotely.
+
+The mutagen CLI ships a bundle of cross-compiled agent binaries and
+transparently installs the matching agent on each remote endpoint it
+connects to.
+
+%package -n bash-completion-mutagen
+Summary: Bash completion for mutagen command line
+Group: Applications/Shells
+Requires: %{name} = %{version}-%{release}
+Requires: bash-completion >= 1:2.0
+BuildArch: noarch
+
+%description -n bash-completion-mutagen
+Bash completion for mutagen command line.
+
+%package -n fish-completion-mutagen
+Summary: fish-completion for mutagen
+Group: Applications/Shells
+Requires: %{name} = %{version}-%{release}
+Requires: fish
+BuildArch: noarch
+
+%description -n fish-completion-mutagen
+fish-completion for mutagen.
+
+%package -n zsh-completion-mutagen
+Summary: ZSH completion for mutagen command line
+Group: Applications/Shells
+Requires: %{name} = %{version}-%{release}
+Requires: zsh
+BuildArch: noarch
+
+%description -n zsh-completion-mutagen
+ZSH completion for mutagen command line.
+
+%prep
+%setup -q -n mutagen-%{version} -a1
+
+%build
+export GOFLAGS="-mod=vendor"
+%{__mkdir_p} .go-cache
+# build.go sets the required mutagencli/mutagenagent build tags (the binaries
+# refuse to run otherwise) and assembles the cross-platform agent bundle
+%__go run scripts/build.go
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libexecdir},%{bash_compdir},%{fish_compdir},%{zsh_compdir}}
+
+install -p build/mutagen $RPM_BUILD_ROOT%{_bindir}/mutagen
+# CLI locates per-platform agents here (searched in <bindir>/../libexec)
+cp -p build/mutagen-agents.tar.gz $RPM_BUILD_ROOT%{_libexecdir}/mutagen-agents.tar.gz
+
+build/mutagen completion bash > $RPM_BUILD_ROOT%{bash_compdir}/mutagen
+build/mutagen completion fish > $RPM_BUILD_ROOT%{fish_compdir}/mutagen.fish
+build/mutagen completion zsh > $RPM_BUILD_ROOT%{zsh_compdir}/_mutagen
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE
+%attr(755,root,root) %{_bindir}/mutagen
+%{_libexecdir}/mutagen-agents.tar.gz
+
+%files -n bash-completion-mutagen
+%defattr(644,root,root,755)
+%{bash_compdir}/mutagen
+
+%files -n fish-completion-mutagen
+%defattr(644,root,root,755)
+%{fish_compdir}/mutagen.fish
+
+%files -n zsh-completion-mutagen
+%defattr(644,root,root,755)
+%{zsh_compdir}/_mutagen
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mutagen-io.git/commitdiff/da8990b31dcf127a5577fba3dd6db61063339493
More information about the pld-cvs-commit
mailing list