14
14
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%{_target_cpu}
16
16
BuildRequires: libpng-devel libjpeg-devel libogg-devel
17
BuildRequires: gtk2-devel libX11-devel libXt-devel glib2-devel
18
BuildRequires: atk-devel pango-devel
17
BuildRequires: gtk2-devel glib2-devel
18
BuildRequires: atk-devel pango-devel openssl-devel
19
19
BuildRequires: agg-devel boost-devel curl-devel libXt-devel
20
BuildRequires: xorg-x11-proto-devel SDL-devel
20
BuildRequires: pygtk2-devel giflib-devel
21
BuildRequires: gstreamer-devel >= 0.10, gstreamer-plugins-base-devel >= 0.10
22
# These are for the kde4 support
23
BuildRequires: kdelibs-devel >= 4.0, kdebase-devel >= 4.0, qt-devel >= 4.0
25
# YellowDog doesn't ship ffmpeg
21
26
%if %{distribution} != "ydl6"
22
27
BuildRequires: ffmpeg-devel
29
# Mandriva uses different names for the X11 library packages
30
%if %{distribution} != "fc11"
31
BuildRequires: libx11_6-devel libxt_6-devel
33
BuildRequires: libX11-devel libXt-devel xorg-x11-proto-devel
25
36
# Installation requirements
26
Requires: libpng libjpeg libogg
27
Requires: gtk2 libX11 libXt glib2 atk pango
28
Requires: agg boost libcurl libXt SDL
37
Requires: libpng libjpeg libogg gtk2 glib2 atk pango
38
Requires: gstreamer gstreamer-ffmpeg gstreamer-plugins-base
39
# Mandriva uses differ names for the X11 library packages
40
%if %{distribution} != "fc11"
41
Requires: libx11_6 libxt_6
43
Requires: libX11 libXt
45
Requires: agg boost libcurl SDL
46
# YellowDog doesn't ship ffmpeg
29
47
%if %{distribution} != "ydl6"
59
76
%description cygnal
60
77
Cygnal is a streaming media server that's Flash aware.
80
Summary: Gnash header files
81
Group: Applications/Multimedia
84
Summary: Gnash widgets for Gtk and Python
85
Group: Applications/Multimedia
88
The Gnash widgets can be used to embed Gnash into any Gtk or Python-Gtk
92
Gnash header files can be used to write external Gnash extensions.
95
Summary: Konqueror SWF player plugin for KDE 4
96
Requires: %{name} = %{version}-%{release}
97
Requires: kdelibs >= 4, kdebase >= 4, qt >= 4, gnash
98
Group: Applications/Multimedia
101
The gnash SWF player plugin for Konqueror in KDE4.
109
# [ -n "$QTDIR" ] || . %{_sysconfdir}/profile.d/qt.sh
67
111
# handle cross building rpms. This gets messy when building for two
68
112
# archtectures with the same CPU type, like x86-Linux -> OLPC. We have
69
113
# to do this because an OLPC requires RPMs to install software, but
78
122
# if not defined, assume this is a native package.
79
123
%{?do_cross_compile:%define cross_compile 0}
81
# FIXME: this ia a bad hack! Although all this does work correctly and
125
# FIXME: this is a bad hack! Although all this does work correctly and
82
126
# build an RPM, it's set for an geode-olpc, so the actual hardware
83
127
# won't let us install it.
84
128
# %define cross_compile 0
87
# Build rpms for an ARM based processor, in our case the Nokia 770/800
131
# Build rpms for an ARM based processor, in our case the Nokia 770/800/810
90
134
RPM_TARGET=%{_target}
93
137
%if %{cross_compile}
94
138
# cross building an RPM. This works as long as you have a good cross
95
# compiler installed. We currently do want to cross compile the
96
# Mozilla plugin, but not the Konqueror one till we make KDE work
97
# better than it does now.
139
# compiler installed.
98
140
CROSS_OPTS="--build=%{_host} --host=$RPM_TARGET --target=$RPM_TARGET"
99
141
RENDERER="--enable-renderer=agg" # could be opengl
103
145
SOUND="--enable-media=gst" # could also be sdl
105
# The OLPC is a weird case, it's basically an i386-linux toolchain
106
# targeted towards Fedora Core 6. The machine itself is too limited to
107
# build RPMs on, so we do it this way.
109
CROSS_OPTS="$CROSS_OPTS --disable-kparts --disable-menus"
110
SOUND="--enable-media=gst --enable-jemalloc"
111
GUI="--enable-gui=gtk"
112
RENDERER="$RENDERER --with-pixelformat=RGB565"
115
148
# Native RPM build
116
149
CROSS_OPTS="" # "--enable-ghelp --enable-docbook"
117
GUI="--enable-gui=gtk"
118
SOUND="--enable-media=ffmpeg --enable-jemalloc"
119
RENDERER="" # --enable-render=ogl
150
# these are actually the default values, but this way they get added
151
# to the build so they appear in "gnash --version".
152
GUI="--enable-gui=gtk,kde4" # could be kde3, aqua, sdl
153
SOUND="--enable-media=gst" # could be ffmpeg
154
OTHER="--enable-jemalloc --enable-cygnal"
155
RENDERER="--enable-renderer=agg" # could be opengl or cairo
156
# These are not the defaults
157
OPTIONAL="--enable-avm2 --enable-python"
122
# %if %{distribution} != "ydl6"
123
# SOUND="--enable-media=gst"
160
%if %{distribution} != "ydl6"
161
SOUND="--enable-media=gst"
126
164
# we disable the testuites by default, as when building packages we
127
165
# should have already been running the testsuites as part of the
141
181
--disable-dependency-tracking \
142
--disable-testsuites \
182
--disable-testsuite \
143
183
--disable-rpath \
144
184
--with-plugindir=%{_libdir}/mozilla/plugins
146
186
make $(MAKEFLAGS) dumpconfig all
188
# uncommenting these will produce huge volumes of debug info from the
189
# shell, but sometimes that's what you need to do.
190
# export CONFIG_SHELL="sh -x"
152
198
--disable-dependency-tracking \
153
199
--disable-rpath \
200
--enable-sdkinstall \
155
201
--disable-testsuite \
157
203
--mandir=%{_prefix}/share/man \
158
204
--infodir=%{_prefix}/share/info \
159
--with-npapi-install=system
160
# --with-npapi-plugindir=%{_libdir}/mozilla/plugins
205
--with-plugins-install=system
207
# --with-kde4-pluginprefix=%{_prefix} \
208
# --with-kde4-plugindir=%{_libdir}/kde4/plugins \
209
# --with-kde4-servicesdir=%{_prefix}/share/kde4/services \
210
# --with-kde4-appsdatadir=%{_prefix}/share/kde4/apps/klash \
211
# --with-kde4-configdir=${_datadir}/config
162
213
make $(MAKEFLAGS) dumpconfig all
164
215
# When testing the spec file, try setting MAKEFLAGS to
165
216
# "CXXFLAGS-O0 -j4" to speed up getting results. Note *don't*
166
# do that for release buulds, as the performance will suffer.
217
# do that for release builds, as the performance will suffer.
169
220
strip gui/.libs/*-gnash
170
221
strip utilities/.libs/dumpshm utilities/.libs/g* utilities/.libs/soldumper utilities/.libs/flvdumper cygnal/.libs/cygnal
171
222
rm -rf $RPM_BUILD_ROOT
172
make install install-plugins DESTDIR=$RPM_BUILD_ROOT
223
make $(MAKEFLAGS) install DESTDIR=$RPM_BUILD_ROOT
224
make $(MAKEFLAGS) install-plugins DESTDIR=$RPM_BUILD_ROOT
173
225
rm $RPM_BUILD_ROOT%{_libdir}/gnash/*.*a
174
226
%if !%{cross_compile}
238
290
%defattr(-,root,root,-)
239
291
%{_bindir}/cygnal
292
%{_prefix}/etc/cygnalrc
293
%{_libdir}/cygnal/plugins/*.so*
296
%{_prefix}/include/gnash/*.h
297
%{_prefix}/lib/pkgconfig/gnash.pc
300
%{_prefix}/include/gnash/*.h
301
%{_prefix}/lib/python*/site-packages/gtk-2.0/gnash.*
304
%defattr(-,root,root,-)
306
%if !%{cross_compile}
307
%{_bindir}/kde4-gnash
308
%{_libdir}/kde4/libklashpart.*
309
%{_prefix}/share/kde4/apps/klash/klashpartui.rc
310
%{_prefix}/share/kde4/apps/klash/pluginsinfo
311
%{_prefix}/share/kde4/services/klash_part.desktop
315
* Sat Sep 07 2009 Rob Savoye <rob@welcomehome.org> - %{version}-%{release}
316
- add kde4 support for klash.
318
* Sat Jun 13 2009 Rob Savoye <rob@welcomehome.org> - trunk
319
- Add support for packaging the gtk & python widget
242
321
* Sat Feb 13 2009 Rob Savoye <rob@welcomehome.org> - trunk
243
322
- Split off klash into it's own spec file.