~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to packaging/redhat/gnash.spec

  • Committer: Bazaar Package Importer
  • Author(s): Sindhudweep Narayan Sarkar
  • Date: 2009-10-07 00:06:10 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20091007000610-mj9rwqe774gizn1j
Tags: 0.8.6-0ubuntu1
new upstream release 0.8.6 (LP: #435897)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Name:           gnash
2
 
Version:        20090225
 
2
Version:        20090907
3
3
Release:        1
4
 
Distribution:   fc10
 
4
Distribution:   fc11
5
5
#Distribution:  ydl6
6
6
Summary:        GNU SWF player
7
7
 
14
14
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-%{_target_cpu}
15
15
 
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
 
24
 
 
25
# YellowDog doesn't ship ffmpeg
21
26
%if %{distribution} != "ydl6"
22
27
BuildRequires:  ffmpeg-devel
23
28
%endif
 
29
# Mandriva uses different names for the X11 library packages
 
30
%if %{distribution} != "fc11"
 
31
BuildRequires:  libx11_6-devel libxt_6-devel
 
32
%else
 
33
BuildRequires:  libX11-devel libXt-devel xorg-x11-proto-devel 
 
34
%endif
24
35
 
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
 
42
%else
 
43
Requires: libX11 libXt 
 
44
%endif
 
45
Requires: agg boost libcurl SDL
 
46
# YellowDog doesn't ship ffmpeg
29
47
%if %{distribution} != "ydl6"
30
48
Requires: ffmpeg
31
49
%endif
45
63
%package plugin
46
64
Summary:   Web-client SWF player plugin 
47
65
Requires:  %{name} = %{version}-%{release}
48
 
Requires: gstreamer >= 0.10 gnash
49
66
Group:     Applications/Internet
50
67
 
51
68
%description plugin
59
76
%description cygnal
60
77
Cygnal is a streaming media server that's Flash aware.
61
78
 
 
79
%package devel
 
80
Summary:   Gnash header files
 
81
Group:     Applications/Multimedia
 
82
 
 
83
%package widget
 
84
Summary:   Gnash widgets for Gtk and Python
 
85
Group:     Applications/Multimedia
 
86
 
 
87
%description widget
 
88
The Gnash widgets can be used to embed Gnash into any Gtk or Python-Gtk
 
89
application.
 
90
 
 
91
%description devel
 
92
Gnash header files can be used to write external Gnash extensions.
 
93
 
 
94
%package klash4
 
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
 
99
 
 
100
%description klash4
 
101
The gnash SWF player plugin for Konqueror in KDE4.
 
102
 
62
103
%prep
63
104
%setup -q
64
105
 
65
106
%build
66
107
 
 
108
# For QT3
 
109
# [ -n "$QTDIR" ] || . %{_sysconfdir}/profile.d/qt.sh
 
110
 
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}
80
124
 
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
85
129
# %define olpc 0
86
130
 
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
88
132
# tablet. 
89
133
%ifarch arm
90
134
RPM_TARGET=%{_target}
92
136
 
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
100
142
  %ifarch arm
102
144
  %else
103
145
    SOUND="--enable-media=gst"                  # could also be sdl
104
146
  %endif
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.
108
 
  %if olpc
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"
113
 
  %endif
114
147
%else
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"
120
158
%endif
121
159
 
122
 
# %if %{distribution} != "ydl6"
123
 
#   SOUND="--enable-media=gst" 
124
 
# %endif
 
160
%if %{distribution} != "ydl6"
 
161
  SOUND="--enable-media=gst" 
 
162
%endif
125
163
 
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 
138
176
        $CROSS_OPTS \
139
177
        $SOUND $GUI \
140
178
        $RENDERER \
 
179
        $OTHER \
 
180
        $OPTIONAL \
141
181
        --disable-dependency-tracking \
142
 
        --disable-testsuites \
 
182
        --disable-testsuite \
143
183
        --disable-rpath \
144
184
        --with-plugindir=%{_libdir}/mozilla/plugins
145
185
 
146
186
make $(MAKEFLAGS) dumpconfig all
147
187
%else
 
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"
 
191
# sh -x ./configure
148
192
./configure \
149
193
        $CROSS_OPTS \
150
194
        $SOUND $GUI \
151
195
        $RENDERER \
 
196
        $OTHER \
 
197
        $OPTIONAL \
152
198
        --disable-dependency-tracking \
153
199
        --disable-rpath \
154
 
        --enable-cygnal \
 
200
        --enable-sdkinstall \
155
201
        --disable-testsuite \
156
202
        --prefix=/usr \
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
 
206
 
 
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
161
212
 
162
213
make $(MAKEFLAGS) dumpconfig all
163
214
%endif
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.
167
218
 
168
219
%install
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}
175
227
 
207
259
%{_bindir}/gprocessor
208
260
%{_bindir}/soldumper
209
261
%{_bindir}/flvdumper
 
262
%{_bindir}/findmicrophones
 
263
%{_bindir}/findwebcams
210
264
%{_bindir}/dumpshm
211
 
#%{_bindir}/rtmpget
212
 
%{_bindir}/cygnal
213
265
%{_libdir}/gnash/*.so*
214
266
%{_libdir}/mozilla/plugins/*.so
215
267
%{_prefix}/share/gnash/GnashG.png
237
289
%files cygnal
238
290
%defattr(-,root,root,-)
239
291
%{_bindir}/cygnal
 
292
%{_prefix}/etc/cygnalrc
 
293
%{_libdir}/cygnal/plugins/*.so*
 
294
 
 
295
%files devel
 
296
%{_prefix}/include/gnash/*.h
 
297
%{_prefix}/lib/pkgconfig/gnash.pc
 
298
 
 
299
%files widget
 
300
%{_prefix}/include/gnash/*.h
 
301
%{_prefix}/lib/python*/site-packages/gtk-2.0/gnash.*
 
302
 
 
303
%files klash4
 
304
%defattr(-,root,root,-)
 
305
%{_bindir}/gnash
 
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
 
312
%endif
240
313
 
241
314
%changelog
 
315
* Sat Sep 07 2009 Rob Savoye <rob@welcomehome.org> - %{version}-%{release}
 
316
- add kde4 support for klash.
 
317
 
 
318
* Sat Jun 13 2009 Rob Savoye <rob@welcomehome.org> - trunk
 
319
- Add support for packaging the gtk & python widget
 
320
 
242
321
* Sat Feb 13 2009 Rob Savoye <rob@welcomehome.org> - trunk
243
322
- Split off klash into it's own spec file.
244
323