# Generated by go2rpm 1.18.0 %bcond check 1 # https://codeberg.org/emersion/soju %global goipath codeberg.org/emersion/soju %global forgeurl https://codeberg.org/emersion/soju Version: 0.9.0 %global tag v%{version} %gometa -L -f Name: soju Release: %autorelease Summary: A user-friendly IRC bouncer # Generated by go-vendor-tools License: AGPL-3.0-only AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND LicenseRef-Fedora-Public-Domain AND MIT AND MPL-2.0 URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml Source3: soju.service Source4: soju.sysusers BuildRequires: go-vendor-tools BuildRequires: systemd-rpm-macros BuildRequires: scdoc BuildRequires: git %description A user-friendly IRC bouncer. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export GOFLAGS="-tags=moderncsqlite" export PREFIX="/usr" %make_build %install %go_vendor_license_install -c %{S:2} export PREFIX="/usr" %make_install install -m 0755 -vd %{buildroot}%{_unitdir} install -m 0755 -vd %{buildroot}%{_sysusersdir} install -m 0644 -vp %{SOURCE3} %{buildroot}%{_unitdir} install -m 0644 -vp %{SOURCE4} %{buildroot}%{_sysusersdir}/soju.conf %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %post %sysusers_create_compat %{SOURCE4} install -m 0750 -o soju -g soju -vd %{_sharedstatedir}/soju %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc doc README.md contrib/certbot.md contrib/clients.md %doc contrib/openbsd-relayd.md contrib/tlstunnel.md %config(noreplace) %{_sysconfdir}/soju/config %{_bindir}/* %{_mandir}/man1/* %{_unitdir}/* %{_sysusersdir}/soju.conf %changelog %autochangelog