I'm working on a spec, pulling source with forgemeta/scm
With known/supported scm sources (e.g., github), it works as expected, with no
issues.
Atm, I'm trying to pull from a different source,
git.kernel.org
with this 'ofono-test.spec'
------------------------------------
%global forgeurl
https://git.kernel.org/pub/scm/network/ofono/ofono.git
%global commit aeeb321a72d0b84c0fe5008dc7c49f0707582ca0
%forgemeta -i -a
Name: ofono
Version: 0
Release: %{dist}
Summary: ofono
License: GPL-2.0
URL: %{forgeurl}
Source: %{forgesource}
BuildRequires: git
%description
ofono
%prep
%forgesetup
%build
%install
%files
%changelog
------------------------------------
"build through %prep" stage fails
rpmbuild --clean --verbose -bp ofono-test.spec
Packaging variables read or set by %forgemeta
forgeurl0:
https://git.kernel.org/pub/scm/network/ofono/ofono.git
forgesource0: #/.%{archiveext0}
forgesetupargs0: -c -n %{archivename0}
extractdir0: %{archivename0}
commit0: aeeb321a72d0b84c0fe5008dc7c49f0707582ca0
distprefix0: .%{scm0}aeeb321
dist: .%{scm0}aeeb321.fc32
(snapshot date is either manually supplied or computed once
%{_sourcedir}/%{archivename0}.%{archiveext0} is available)
warning: line 8: Possible unexpanded macro in: Release:
.%{scm0}aeeb321.fc32
error: Bad source: /root/rpmbuild/SOURCES/.%{archiveext0}: No
such file or directory
Not at all clear what the actual problem is. Since it _does_ work with
gitbub/gitlab sources, I'd _guess_ it's a URL/source string format issue ...
Reading at
https://fedoraproject.org/wiki/Forge-hosted_projects_packaging_automation#Extending_the_macro
states
"locate the latest version of the forgemeta macro (it should be
installed in /usr/lib/rpm/macros.d/macros.forge-srpm by fedora-rpm-macros)"
the package is installed
dnf list --installed fedora-rpm-macros
Installed Packages
fedora-rpm-macros.noarch 26-8.fc32 @fedora
there's no such file
ls -al /usr/lib/rpm/macros.d/macros.forge-srpm
ls: cannot access '/usr/lib/rpm/macros.d/macros.forge-srpm': No
such file or directory
checking
rpm -ql fedora-rpm-macros
/usr/lib/rpm/macros.d/macros.fedora
and, the file's empty
cat /usr/lib/rpm/macros.d/macros.fedora
# Miscellaneous Fedora-related RPM macros.
# Currently there is nothing here.
(1) Are there up-to-date/correct docs for 'Extending the macro' ?
(2) Is there an explcit example for use with 'git.kernel.org' sources?
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]