packit icon indicating copy to clipboard operation
packit copied to clipboard

%forgeautosetup is not recognized

Open LecrisUT opened this issue 8 months ago • 0 comments

What happened? What is the problem?

Normally the %autosetup/%setup macros are overwritten so that it points to the new git archive created by packit. This does not seem to happen with %forgeautosetup

What did you expect to happen?

Convert the %forgeautosetup into %autosetup -n ...

Example spec file

%global         forgeurl https://gitlab.com/hook/activity-aware-firefox

Name:           activityfirefox
Version:        0.4.2
Release:        %autorelease
Summary:        KDE Activity-aware Firefox
License:        CC0-1.0
BuildArch:      noarch

%global         tag0 v%{version}
%forgemeta
URL:            %{forgeurl}
Source0:        %{forgesource0}

BuildRequires: desktop-file-utils

%description
Integration of Firefox into KDE Plasma in a way that it plays nice with its
Activities.


%prep
%forgeautosetup -p1


%install
install -Dpm 0755 activityfirefox -t %{buildroot}%{_bindir}
desktop-file-install \
  --dir=%{buildroot}%{_datadir}/applications \
  activityfirefox.desktop


%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/activityfirefox.desktop


%files
%license LICENSES/CC0-1.0.txt
%{_bindir}/activityfirefox
%{_datadir}/applications/activityfirefox.desktop


%changelog
%autochangelog

Workaround

  • [ ] There is an existing workaround that can be used until this issue is fixed.

Participation

  • [ ] I am willing to submit a pull request for this issue. (Packit team is happy to help!)

LecrisUT avatar Jul 03 '25 14:07 LecrisUT