# Generated by go2rpm 1.15.0 %bcond check 1 %bcond bootstrap 0 %if %{with bootstrap} %global debug_package %{nil} %endif %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/emersion/hydroxide %global goipath github.com/emersion/hydroxide Version: 0.2.29 %gometa -L -f %global common_description %{expand: A third-party, open-source ProtonMail CardDAV, IMAP and SMTP bridge.} %global golicenses LICENSE %global godocs README.md Name: golang-github-emersion-hydroxide Release: 2%{?dist} Summary: A third-party, open-source ProtonMail CardDAV, IMAP and SMTP bridge License: MIT URL: %{gourl} Source0: %{gosource} Source1: hydroxide@.service BuildRequires: systemd-rpm-macros %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %if %{without bootstrap} %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %endif %install %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %endif mkdir -p %{buildroot}%{_userunitdir} install %{SOURCE1} %{buildroot}%{_userunitdir} %if %{without bootstrap} %if %{with check} %check %gocheck %endif %endif %if %{without bootstrap} %files %license LICENSE %doc README.md %{_bindir}/hydroxide %{_userunitdir}/hydroxide@.service %endif %gopkgfiles %post %systemd_user_post hydroxide@.service %preun %systemd_user_preun hydroxide@.service %postun %systemd_user_postun_with_restart hydroxide@.service %changelog * Sat Mar 22 20:45:00 CET 2025 DEREFERENC3D - 0.2.29-2 - Fix systemd unit's target - Add missing BuildRequires for systemd macros - fix build on Copr * Sat Mar 22 19:30:00 CET 2025 DEREFERENC3D - 0.2.29-1 - Regenerate using go2rpm v1.15.0 - fix build by defining "global debug_package" - Fix go2rpm warning: list the binaries without globbing in "files" - Update to version 0.2.29 * Mon Dec 28 15:26:16 CST 2020 proletarius101 - 0.2.17-1 - Initial package