## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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.19.0 %bcond check 1 %global major 1 %global minor 0 %global revision 1 # https://gitlab.com/davical-project/davical-go %global goipath gitlab.com/davical-project/davical-go %global forgeurl https://gitlab.com/davical-project/davical-go Version: %{major}.%{minor}.%{revision} %global tag v%{version} %gometa -L -f Name: davical-go Release: %autorelease Summary: DAViCal is a server for centralised storage of calendar and contact information # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND CC0-1.0 AND GPL-2.0-only AND MIT URL: %{gourl} Source: %{gosource} # Generated by go-vendor-tools Source: vendor.tar.bz2 Source: go-vendor-tools.toml Source: davical-go.service Source: davical-go.sysusers BuildRequires: go-vendor-tools demus-packaging systemd-rpm-macros Requires: systemd-sysusers Conflicts: davical %description DAViCal is a server for centralised storage of calendar and contact information. It is an implementation of the CalDAV and CardDAV protocols which is designed for storing calendaring resources (in iCalendar format) and addressbook resources (in VCARD format) on a remote server. This project is a rewrite of the original PHP-based DAViCal in Go. %prep %verify_source_checksum %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on for cmd in cmd/cfg2env cmd/davical-admin cmd/davical-cron cmd/davicald ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %go_vendor_license_install -c %{S:2} %{__install} -m 0755 -vd %{buildroot}%{_bindir} %{__install} -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %{__install} -D -m 0644 -p dba/patches/README.md %{buildroot}%{_docdir}/%{name}/dba/README.md %{__install} -D -m 0644 -p %{S:3} %{buildroot}%{_unitdir}/%{name}.service %{__install} -D -m 0644 %{S:4} %{buildroot}%{_sysusersdir}/%{name}.conf %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun %{name}.service %systemd_postun_with_restart %{name}.service %files -f %{go_vendor_license_filelist} %doc examples CHANGES.md CONFIGURATION.md CONTAINER.md NOTES.md README.md %doc %{_docdir}/%{name}/dba/README.md %{_bindir}/cfg2env %{_bindir}/davical-admin %{_bindir}/davical-cron %{_bindir}/davicald %{_unitdir}/%{name}.service %{_sysusersdir}/%{name}.conf %changelog ## START: Generated by rpmautospec * Sun Aug 16 2026 Daniel Demus - 1.0.1-1 - Release 1.0.1 ## END: Generated by rpmautospec