# Generated by go2rpm 1.18.0 %bcond check 1 # https://github.com/bouncepaw/mycorrhiza %global goipath github.com/bouncepaw/mycorrhiza Version: 1.15.1 %gometa -L -f Name: mycorrhiza Release: %autorelease Summary: 🍄📑 Filesystem and git-based wiki engine for the independent web written in Go and using Mycomarkup as its primary markup language # Generated by go-vendor-tools License: AGPL-3.0-only AND Apache-2.0 AND BSD-3-Clause AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml Source3: mycorrhiza@.service Source4: mycorrhiza.sysusers BuildRequires: go-vendor-tools %description 🍄📑 Filesystem and git-based wiki engine for the independent web written in Go and using Mycomarkup as its primary markup language. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/mycorrhiza %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -D -p -m 0644 web/static/icon/README.md %{buildroot}%{_docdir}/%{name}/ICONS.md # Installing systemd template unit install -D -p -m 0644 %{S:3} %{buildroot}%{_unitdir}/%{name}@.service # Installing systemd-sysusers config install -D -p -m 0644 %{S:4} %{buildroot}%{_sysusersdir}/mycorrhiza.conf # Installing manual install -D -m 0644 -t %{buildroot}%{_mandir}/man1 help/mycorrhiza.1 %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc Boilerplate.md README.md web/static/robots.txt %{_docdir}/%{name}/ICONS.md %{_bindir}/mycorrhiza %{_unitdir}/mycorrhiza@.service %{_sysusersdir}/mycorrhiza.conf %{_mandir}/man1/mycorrhiza.1* %changelog %autochangelog