## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.18.0 %bcond check 1 # https://github.com/schollz/croc %global goipath github.com/schollz/croc/v10 Version: 10.3.1 %gometa -L -f Name: croc Release: %autorelease Summary: Easily and securely send things from one computer to another # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND Zlib URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools BuildRequires: systemd-rpm-macros %description croc is a tool that allows any two computers to simply and securely transfer files and folders. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/croc %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -Dpm0644 -t %{buildroot}%{_unitdir} croc.service install -Dpm0644 src/install/bash_autocomplete \ %{buildroot}%{bash_completions_dir}/croc install -Dpm0644 src/install/zsh_autocomplete \ %{buildroot}%{zsh_completions_dir}/_croc %check %go_vendor_license_check -c %{S:2} %if %{with check} skip="TestPublicIP" for test in $skip \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gotest ./... %endif %post %systemd_post croc.service %preun %systemd_preun croc.service %postun %systemd_postun_with_restart croc.service %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md src/install/default.txt %{_bindir}/croc %{bash_completions_dir}/croc %{zsh_completions_dir}/_croc %{_unitdir}/croc.service %changelog ## START: Generated by rpmautospec * Fri Jan 23 2026 Nikita Popov - 10.3.1-2 - Drop unused autopatch * Fri Jan 23 2026 Nikita Popov - 10.3.1-1 - Rename package ## END: Generated by rpmautospec