On 2025/03/31 13:32, Leigh Scott wrote:

Using github/gitlab sources is non-starter IMO as they rarely include the 
submodules.

In the case of submodules I have had good experience using `%forgemeta`.
From a package that I am working on, I can share the simple skeleton of
how it looks like

```
%global         forgeurl0 https://gitlab.com/QEF/q-e
# Cannot de-bundle devicexlib. The project doesn't build properly and qe uses version 0.1
# https://gitlab.com/max-centre/components/devicexlib/-/issues/20
%global         forgeurl1 https://gitlab.com/max-centre/components/devicexlib
# Waiting on wannier90 4.0.0 and q-e to adapt to it
%global         forgeurl2 https://github.com/wannier-developers/wannier90

...

%global         tag0 qe-%{version}
%global         tag1 a6b89ef77b1ceda48e967921f1f5488d2df9226d
%global         tag2 1d6b187374a2d50b509e5e79e2cab01a79ff7ce1

Source0:        %{forgesource0}
Source1:        %{forgesource1}
Source2:        %{forgesource2}

...

%prep
%autosetup -p1 -n q-e-qe-%{version}
tar -xf %{SOURCE1} --strip-components=1 -C external/devxlib
tar -xf %{SOURCE2} --strip-components=1 -C external/wannier90
```
-- 
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to