## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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.19.0 %bcond check 1 # https://github.com/geteduroam/linux-app %global goipath github.com/geteduroam/linux-app Version: 0.15 %global tag %{version} %gometa -L -f Name: geteduroam Release: %autorelease Summary: Client that configures eduroam Wi-Fi # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause 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 BuildRequires: go-vendor-tools BuildRequires: desktop-file-utils BuildRequires: systemd-rpm-macros BuildRequires: libappstream-glib #Needs network manager to be there and dlopen is used for other libraries so they must be manually there Requires: NetworkManager Requires: NetworkManager-wifi Requires: libgtk-4.so.1()(64bit) Requires: libadwaita-1.so.0()(64bit) Requires: /usr/bin/notify-send %description A geteduroam client for Linux. Geteduroam simplifies the process of connecting to eduroam, with certificate enrollment and configuration for EAP-TLS %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on for cmd in cmd/* ; 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}/ mkdir -p %{buildroot}%{_datadir} desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ --remove-key=Encoding \ --set-key=StartupNotify --set-value=true \ --set-key=Keywords --set-value='wifi;wireless;' \ cmd/geteduroam-gui/resources/share/applications/app.eduroam.geteduroam.desktop cp -a cmd/geteduroam-gui/resources/share/icons %{buildroot}%{_datadir}/ install -Dpm 0644 cmd/geteduroam-gui/flatpak/app.eduroam.geteduroam.metainfo.xml \ %{buildroot}%{_metainfodir}/app.eduroam.geteduroam.metainfo.xml install -Dpm 0644 -t %{buildroot}%{_userunitdir} systemd/user/geteduroam/* %check %go_vendor_license_check -c %{S:2} appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml %if %{with check} %gotest ./... %endif %post %systemd_user_post geteduroam-notifs.timer %preun %systemd_user_preun geteduroam-notifs.timer %files -f %{go_vendor_license_filelist} %doc README.md %{_bindir}/geteduroam-cli %{_bindir}/geteduroam-gui %{_bindir}/geteduroam-notifcheck %{_datadir}/applications/app.eduroam.geteduroam.desktop %{_datadir}/icons/hicolor/*/apps/app.eduroam.geteduroam.png %{_metainfodir}/app.eduroam.geteduroam.metainfo.xml %{_userunitdir}/geteduroam-notifs.service %{_userunitdir}/geteduroam-notifs.timer %changelog ## START: Generated by rpmautospec * Fri Oct 09 2026 BryannaM - 0.15-2 - Adding the vendor tools toml * Fri Oct 09 2026 BryannaM - 0.15-1 - Uploading files Creating Repo ## END: Generated by rpmautospec