FROM opensuse/tumbleweed

RUN zypper --non-interactive install -y \
        dnf \
        dnf-command\(builddep\) \
        rpmdevtools \
        Mesa-dri-devel Mesa-dri \
        libinput-devel \
        git \
        rpm-build \
        tar \
        make \
        autoconf \
        automake \
        cmake \
        nasm \
        speexdsp-devel \
        libpulse-devel \
        libcanberra-devel \
        libcurl-devel \
        libtool \
        libQt5DBus-devel \
        pcre-devel \
        yaml-cpp-devel \
        libdbus-c++-devel \
        libQt5DBus-devel \
        libXext-devel \
        libXfixes-devel \
        yasm \
        speex-devel \
        libgsm-devel \
        chrpath \
        check \
        astyle \
        uuid-devel \
        gettext-devel \
        gcc-c++ \
        which \
        alsa-lib-devel \
        systemd-devel \
        libuuid-devel \
        uuid-devel \
        gnutls-devel \
        libopus-devel \
        patch \
        jsoncpp-devel \
        webkit2gtk3-devel \
        libcryptopp-devel \
        libva-devel \
        libvdpau-devel \
        msgpack-devel \
        clutter-devel \
        openssl-devel \
        clutter-gtk-devel \
        libnma-devel \
        libcryptopp-devel \
        libdbus-c++-devel \
        libQt5DBus-devel \
        libexpat-devel \
        gnome-icon-theme-symbolic \
        libgsm-devel \
        gtk3-devel \
        libappindicator-devel \
        sqlite-devel \
        libQt5Sql-devel \
        libQt5Gui-devel  \
        libqt5-qtdeclarative-devel \
        libqt5-qtquickcontrols \
        libQt5Concurrent-devel \
        libQt5QuickControls2-devel \
        libqt5-qtmultimedia-devel \
        libqt5-qtsvg-devel \
        libqt5-qtwebengine-devel \
        libQt5Sql-devel \
        libQt5Gui-devel  \
        ffmpeg-4-libavutil-devel \
        gtk3-devel\
        qrencode-devel \
        python3-python-dateutil \
        libqt5-linguist-devel \
        libsndfile-devel \
        libxcb* \
        libxkb* \
        libX11-devel \
        libXrender-devel \
        libfreetype6 \
        xcb-util-image-devel \
        xcb-util-keysyms-devel \
        xcb-util-renderutil-devel \
        xcb-util-wm-devel \
        xorg-x11-devel \
        libQt5Sql-devel \
        libQt5Gui-devel \
        libqt5-qtbase-devel \
        libqt5-qttools \
        xz \
        libnotify \
        xkeyboard-config \
        argon2-devel \
        wget

ADD scripts/build-package-rpm.sh  /opt/build-package-rpm.sh

CMD /opt/build-package-rpm.sh
