Gnash was removed from Fedora so the only way to have it, is to install it from source, here is instruction how to do this:
Installing Depenecies
Depenecies that can be installed from Fedora repositories
Some of them are from RPM fustion so you need to install that repository.
Here are instruction how to do this.
sudo dnf install swftools haxe dejagnu csound boost-devel SDL-devel \ gstreamer-plugins-base-devel gstreamer-devel speexdsp-devel \ speex-devel jemalloc-devel
Then to install app-devel adn swfmill packages you need to add Sphere RPM repo
sudo dnf install "http://ftp.gwdg.de/pub/opensuse/repositories/home:/zhonghuaren/Fedora_27/noarch/rpmsphere-release-27-1.1.noarch.rpm"
You can change Fedora 27 to your version of Fedora (for Fedora 29, repo file with version 28 also works)
sudo dnf install agg-devel swfmill
Then you need to install one library from source. libming is also missing in Fedora:
git clone https://github.com/libming/libming.git --depth 1 cd libming ./autogen.sh ./configure make sudo make install
if you get error because of missing yacc/bison and lex/flex use:
sudo dnf install bison flex
Installing Gnash
Then main part which is installing gnash, First you need to install dependencies:
sudo dnf install libjpeg-devel giflib-devel gtk2-devel curl-devel
Unfortunately you will not be able to use RTMP streaming becasue curl is build without support for it. If you need this you can try to build curl from source.
then clone the git repo:
git clone git://git.sv.gnu.org/gnash.git --depth 1 cd gnash
invoke
./autogen.sh
Then you need to execute this command from gnash directory:
sed -i -e 's/${JEMALLOC_CONFIG} --cxxflags/${JEMALLOC_CONFIG} --cppflags/' configure
In configure script there was an error from jemalloc-config
command, it was executed with
--cxxflags
option. Probably option got removed, it’s now --cppflags
or maybe that’s only on Fedora.
This was causing that Makefiles was broken.
then you need to run configure:
./configure --disable-npapi --prefix=/usr
by default make will install gnash in /usr/local
and if you’re using lightspark
it will
not find gnash, so we use prefix option to install it in /usr
directory.
I’ve used this config option --disable-npapi
since AFAIK FireFox and Chrome don’t
support NPAPI anymore and there are no xulrunner package in Fedora.
Then you need to execute this command:
sed -i 's/<jemalloc.h>/<jemalloc\/jemalloc.h>/' libbase/jemalloc_gnash.c
that will fix error in one if the c files.
now you can run build and install gnash:
make && sudo make install
You should be able to run swf files using gnash now.
Tested on Fedora 27 and Fedora 29.