Backslash ${prefix} for kde3 too...
[gnash.git] / packaging / redhat / klash.spec
blob84f5b661e92c1c63a5ca9bf92e90204bb7b1bca2
1 Name: gnash
2 Version: 20090213
3 Release: 1
4 Distribution: fc10
5 Summary: GNU SWF player
7 Group: Applications/Multimedia
8 Vendor: Gnash Project
9 Packager: Rob Savoye <rob@welcomehome.org>
10 License: GPLv3
11 URL: http://www.gnu.org/software/gnash/
12 Source0: http://www.getgnash.org/packages/snapshots/fedora/%{name}-%{version}.tar.gz
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%{_target_cpu}
16 BuildRequires: libpng-devel libjpeg-devel libogg-devel
17 BuildRequires: libX11-devel libXt-devel
18 BuildRequires: agg-devel boost-devel curl-devel libXt-devel
19 BuildRequires: xorg-x11-proto-devel SDL-devel
20 BuildRequires: kdelibs-devel kdebase-devel qt-devel
21 BuildRequires: ffmpeg-devel
23 # Installation requirements
24 Requires: libpng libjpeg libogg
25 Requires: libX11 libXt
26 Requires: agg boost libcurl libXt SDL
27 Requires: ffmpeg
29 # BuildRequires: scrollkeeper
31 #Requires(post): scrollkeeper
32 #Requires(postun): scrollkeeper
33 Requires(post): /sbin/ldconfig
34 Requires(postun): /sbin/ldconfig
35 #Requires(post): /sbin/install-info
36 #Requires(preun): /sbin/install-info
38 %description
39 Gnash is a GNU SWF movie player that supports many SWF v7 features, with growing support for swf v8 and v9.
41 %package klash3
42 Summary: Konqueror SWF player plugin for KDE 3
43 Requires: %{name} = %{version}-%{release}
44 Requires: kdelibs kdelibs qt gnash
45 Group: Applications/Multimedia
47 %description klash3
48 The gnash SWF player plugin for Konqueror in KDE 3.
50 %package klash4
51 Summary: Konqueror SWF player plugin for KDE 4
52 Requires: %{name} = %{version}-%{release}
53 Requires: kdelibs kdelibs qt gnash
54 Group: Applications/Multimedia
56 %description klash4
57 The gnash SWF player plugin for Konqueror in KDE4.
59 %prep
60 %setup -q
62 %build
64 [ -n "$QTDIR" ] || . %{_sysconfdir}/profile.d/qt.sh
66 # Native RPM build
67 CROSS_OPTS="" # "--enable-ghelp --enable-docbook"
68 GUI="" # --enable-gui=gtk,kde3,kde4
69 SOUND="--enable-media=ffmpeg --enable-jemalloc"
70 RENDERER="" # --enable-render=ogl
71 # KDE3_OPTS="--with-kde3-plugindir=%{_libdir}/kde3/plugins \
72 # --with-kde3-pluginprefix=%{_prefix} \
73 # --with-kde3-servicesdir=%{_prefix}/share/services \
74 # --with-kde3-appsdatadir=%{_prefix}/share/apps/klash \
75 # --with-kde3-configdir=${_datadir}/config"
76 # KDE4_OPTS="--with-kde4-plugindir=%{_libdir}/kde4/plugins \
77 # --with-kde4-pluginprefix=%{_prefix} \
78 # --with-kde4-servicesdir=%{_prefix}/share/services \
79 # --with-kde4-appsdatadir=%{_prefix}/share/apps/klash \
80 # --with-kde4-configdir=${_datadir}/config"
82 # we disable the testuites by default, as when building packages we
83 # should have already been running the testsuites as part of the
84 # normal build & test development cycle.
85 ./configure \
86 $CROSS_OPTS \
87 $SOUND $GUI \
88 $RENDERER \
89 --disable-dependency-tracking \
90 --disable-rpath \
91 --enable-cygnal \
92 --disable-testsuite \
93 --prefix=/usr \
94 --mandir=%{_prefix}/share/man \
95 --infodir=%{_prefix}/share/info \
96 --with-plugins-install=system
98 make $(MAKEFLAGS) dumpconfig all
99 # When testing the spec file, try setting MAKEFLAGS to
100 # "CXXFLAGS-O0 -j4" to speed up getting results. Note *don't*
101 # do that for release buulds, as the performance will suffer.
103 %install
104 strip gui/.libs/kde*-gnash
105 strip utilities/.libs/dumpshm utilities/.libs/g* utilities/.libs/soldumper utilities/.libs/flvdumper cygnal/.libs/cygnal
106 rm -rf $RPM_BUILD_ROOT
107 make install install-plugins DESTDIR=$RPM_BUILD_ROOT
108 rm $RPM_BUILD_ROOT%{_libdir}/gnash/*.*a
109 %if !%{cross_compile}
111 rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
112 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
113 %endif
115 %clean
116 rm -rf $RPM_BUILD_ROOT
118 %post
119 /sbin/ldconfig
120 %if !%{cross_compile}
121 scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
122 /sbin/install-info --entry="* Gnash: (gnash). GNU SWF Player" %{_infodir}/%{name}.info %{_infodir}/dir || :
123 %endif
125 %preun
126 if [ $1 = 0 ]; then
127 /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
130 %postun
131 /sbin/ldconfig
132 %if !%{cross_compile}
133 scrollkeeper-update -q || :
134 %endif
136 %files
137 %defattr(-,root,root,-)
138 %dump
139 %doc README AUTHORS COPYING NEWS
140 %{_bindir}/gnash
141 %{_bindir}/kde*-gnash
142 %{_bindir}/gprocessor
143 %{_bindir}/soldumper
144 %{_bindir}/flvdumper
145 %{_bindir}/dumpshm
146 %{_bindir}/cygnal
147 %{_libdir}/gnash/*.so*
148 %{_prefix}/share/gnash/GnashG.png
149 %{_prefix}/share/gnash/gnash_128_96.ico
150 %{_datadir}/man/man1/*.1*
151 %{_datadir}/locale/*/LC_MESSAGES/gnash.mo
152 %if !%{cross_compile}
153 #%{_prefix}/share/info/*.info*
154 %{_prefix}/share/doc/gnash/*.html
155 %{_prefix}/share/doc/gnash/images/*.png
156 %{_prefix}/etc/gnashrc
157 %{_prefix}/etc/gnashpluginrc
158 # %{_infodir}/*.info*
159 #%doc doc/C/gnash*.html
160 #%doc doc/C/images/*.png
161 #%doc doc/C/images/*.txt
162 # %doc %{_prefix}/share/gnash/doc/gnash/C/images
163 # %doc %{_prefix}/share/gnash/doc/gnash/C/*.xml
164 %endif
166 %files plugin
167 %defattr(-,root,root,-)
168 %{_libdir}/mozilla/plugins/libgnashplugin.so
170 %files cygnal
171 %defattr(-,root,root,-)
172 %{_bindir}/cygnal
174 %files klash3
175 %defattr(-,root,root,-)
176 %if !%{cross_compile}
177 %{_bindir}/kde3-gnash
178 %{_libdir}/kde3/libklashpart.*
179 %{_prefix}/share/apps/klash/klashpartui.rc
180 %{_prefix}/share/apps/klash/pluginsinfo
181 %{_prefix}/share/services/klash_part.desktop
182 %endif
184 %files klash4
185 %defattr(-,root,root,-)
186 %if !%{cross_compile}
187 %{_bindir}/kde4-gnash
188 %{_bindir}/gnash
189 %{_libdir}/kde4/libklashpart.*
190 %{_prefix}/share/apps/klash/klashpartui.rc
191 %{_prefix}/share/apps/klash/pluginsinfo
192 %{_prefix}/share/services/klash_part.desktop
193 %endif
195 %changelog
196 * Sat Feb 13 2009 Rob Savoye <rob@welcomehome.org> - trunk
197 - Split off from gnash.spec
199 * Sat Oct 24 2008 Rob Savoye <rob@welcomehome.org> - trunk
200 - Adjust dependencies for current bzr trunk
202 * Sat Feb 16 2008 Rob Savoye <rob@welcomehome.org> - %{version}-%{release}
203 - Adjust dependencies for current cvs HEAD
205 * Sat Mar 6 2007 Rob Savoye <rob@welcomehome.org> - %{version}-%{release}
206 - merge in patch from John @ Redhat.
208 * Tue Mar 06 2007 John (J5) Palmieri <johnp@redhat.com> 0.7.2.cvs20070306-1
209 - update to new snapshot
211 * Thu Feb 28 2007 John (J5) Palmieri <johnp@redhat.com> 0.7.2.cvs20070226-3
212 - require xulrunner instead of webclient
214 * Wed Feb 28 2007 John (J5) Palmieri <johnp@redhat.com> 0.7.2.cvs20070226-2
215 - don't delete requires .so files
217 * Mon Feb 26 2007 John (J5) Palmieri <johnp@redhat.com> 0.7.2.cvs20070226-1
218 - cvs snapshot built for olpc
220 * Sat Nov 7 2006 Rob Savoye <rob@welcomehome.org> - 0.7.2-2
221 - update for 0.7.2 release.
223 * Sat Nov 6 2006 Patrice Dumas <pertusus@free.fr> 0.7.2-1
224 - update for 0.7.2 release.
226 * Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.7.1-9
227 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
229 * Sun Sep 24 2006 Patrice Dumas <pertusus@free.fr> 0.7.1-8
230 - plugin requires %%{_libdir}/mozilla/plugins. Fix (incompletly and
231 temporarily, but there is no better solution yet) #207613
233 * Sun Aug 27 2006 Patrice Dumas <pertusus@free.fr> - 0.7.1-7
234 - add defattr for klash
235 - add warnings in the description about stability
237 * Mon Aug 21 2006 Patrice Dumas <pertusus@free.fr> - 0.7.1-6
238 - remove superfluous buildrequires autoconf
239 - rename last patch to gnash-plugin-tempfile-dir.patch
240 - add README.fedora to plugin to explain tmpdirs
242 * Wed Aug 16 2006 Jens Petersen <petersen@redhat.com> - 0.7.1-5
243 - source qt.sh and configure --with-qtdir (Dominik Mierzejewski)
244 - add plugin-tempfile-dir.patch for plugin to use a safe tempdir
246 * Fri Jul 28 2006 Jens Petersen <petersen@redhat.com> - 0.7.1-4
247 - buildrequire autotools (Michael Knox)
249 * Fri Jun 2 2006 Patrice Dumas <pertusus@free.fr> - 0.7.1-3
250 - add gnash-continue_on_info_install_error.patch to avoid
251 - buildrequire libXmu-devel
253 * Wed May 17 2006 Jens Petersen <petersen@redhat.com> - 0.7.1-2
254 - configure with --disable-rpath
255 - buildrequire docbook2X
256 - remove devel files
258 * Sun May 7 2006 Jens Petersen <petersen@redhat.com> - 0.7.1-1
259 - update to 0.7.1 alpha release
261 * Sat Apr 22 2006 Rob Savoye <rob@welcomehome.org> - 0.7-1
262 - install the info file. Various tweaks for my system based on
263 Patrice's latest patch,
265 * Fri Feb 3 2006 Patrice Dumas <dumas@centre-cired.fr> - 0.7-0
266 - initial packaging