Re: Translating spec to dockerfile for upstream ispc

2019-02-25 Thread Luya Tshimbalanga
On 2019-02-23 1:48 p.m., Christoph Junghans wrote:
> On Fri, Feb 22, 2019 at 10:31 PM Luya Tshimbalanga >  
> 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
Done. Thank you Christoph.


Luya


___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org


Re: Translating spec to dockerfile for upstream ispc

2019-02-23 Thread Christoph Junghans
On Fri, Feb 22, 2019 at 10:31 PM Luya Tshimbalanga
 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@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> 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@lists.fedoraproject.org



-- 
Christoph Junghans
Web: http://www.compphys.de
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org


Translating spec to dockerfile for upstream ispc

2019-02-22 Thread Luya Tshimbalanga
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.

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@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org