Hello Ankur
On Wed, Feb 2, 2022 at 4:18 PM Ankur Sinha <sanjay.ankur@gmail.com> wrote:
On Wed, Feb 02, 2022 16:07:38 +0100, Alain Vigne wrote:
> Can someone explain to me why my  .srpm  [1]
> is not building in mock ?
>
> I ran
> > mock filename.srpm

Have you had a chance to look at the mock man page, or this wiki page?
https://fedoraproject.org/wiki/Using_Mock_to_test_package_builds#How_do_I_use_Mock.3F
Yes... The page says  This page needs some love <3


The command is of the form:

mock -r <chroot> --rebuild ./path/to/srpm
It says also
 --rebuild is the default option. So the following would work equally well

mock package-1.2-3.src.rpm


--
Thanks,
Regards,
Ankur Sinha "FranciscoD" (He / Him / His) | https://fedoraproject.org/wiki/User:Ankursinha
Time zone: Europe/London
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-leave@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 on the list, report it: https://pagure.io/fedora-infrastructure

And indeed, same error:
RPM build errors:
error: File not found: /builddir/build/BUILDROOT/libfungw-1.2.0-1.fc36.x86_64/usr/lib/puplug/fungw_mujs.*
    File not found: /builddir/build/BUILDROOT/libfungw-1.2.0-1.fc36.x86_64/usr/lib64/libfungw_mujs.*
...
It has something to do with me removing the files post install
rm -f %{buildroot}/%{_usr}/lib/puplug/%{srcname}*.a
rm -f %{buildroot}/%{_libdir}/%{name}*.a

--
Alain V.