I maintain packaging for some open source software created by Farsight and now maintained by DomainTools. I am attempting to create rocky9 rpms for our software and dependencies. I am having trouble building an rpm for this project:
unless I change the package name in the rpm spec to “dns.” There is a spec that builds in fedora:
When I try to build this spec, I get an error that the %gometa rpm macro does not accept the -L argument. If I remove that argument and attempt to build, I can build the source rpm. When I attempt to build the binary rpm from that srpm, I get:
RPM build errors:
+ cd dns-1.1.62
/var/tmp/rpm-tmp.JFzRQn: line 39: cd: dns-1.1.62: No such file or directory
I have tried using the --scm-option src_dir_basename=dns or --scm-option src_dir_basename=golang-github-miekg-dns, but neither of them seems to work. If I change the package name in the rpm spec to “dns”, the package builds. Here are the mock commands I am using:
sudo mock -v --buildsrpm --scm-enable --scm-option spec=golang-github-miekg-dns.spec --scm-option method=git --scm-option git_get="git clone https://src.fedoraproject.org/forks/mcrawforddt/rpms/golang-github-miekg-dns.git" --scm-option branch=local-mock-max-experimental --scm-option package=golang-github-miekg-dns --scm-option write_tar=True --scm-option src_dir_basename=golang-github-miekg-dns --resultdir=$RESULTDIR --enable-plugin=rpmautospec --no-clean
sudo mock -v --no-clean --resultdir="$RESULTDIR" workspace/result/golang-github-miekg-dns-1.1.62-7.el9.src.rpm
I am running on a rocky9 system with mock version mock-6.1-1.el9.noarch Please let me know what I might need to update to get the binary rpm build working, as well as, ideally, the %gometa -L macro.