Re: Translating spec to dockerfile for upstream ispc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 22, 2019 at 10:31 PM Luya Tshimbalanga
<luya@xxxxxxxxxxxxxxxxx> wrote:
>
> Upstream ISPC [0] will need a dockerfile to reproduce the failure to
> build ispc package in Fedora[1][2]. Unfortunately, I know very little
> about the Docker functionality so I will need assistance to do so.
You can do an rpm build from a spec file within docker with a
dockerfile like this:
FROM fedora:rawhide
RUN dnf install -y spectool git rpm-build dnf-plugins-core
RUN git clone https://src.fedoraproject.org/rpms/ispc.git
WORKDIR ispc
RUN spectool -g ispc.spec
RUN dnf builddep -y ispc.spec
RUN rpmbuild -D"_sourcedir ${PWD}" -D"_srcrpmdir ${PWD}" -ba ispc.spec
(you might need to point git to clone the right spec file.)

Christoph
>
> The docker file for Fedora is inside the upstream tarball .
>
> Thanks in advance.
>
> Luya
>
> References
>
> ---------------
>
> [0] https://github.com/ispc/ispc
>
> [1] https://github.com/ispc/ispc/issues/1413
>
> [2] https://bugzilla.redhat.com/show_bug.cgi?id=1675162
>
> [3] https://src.fedoraproject.org/rpms/ispc
>
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx



-- 
Christoph Junghans
Web: http://www.compphys.de
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux