|
@@ -1,13 +1,15 @@
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
|
-# uncomment to enable ghelp/omf/scrollkeeper support
|
|
|
|
|
|
+# ghelp/omf/scrollkeeper support
|
|
# not working as of version 0.8.7
|
|
# not working as of version 0.8.7
|
|
-#global scrollkeeper 1
|
|
|
|
|
|
+%define scrollkeeper 0
|
|
|
|
+
|
|
|
|
+# kde and klash support
|
|
|
|
+%define kde_support 0
|
|
|
|
|
|
Name: gnash
|
|
Name: gnash
|
|
Version: 0.8.7
|
|
Version: 0.8.7
|
|
-Release: 1%{?dist}
|
|
|
|
-Epoch: 1
|
|
|
|
|
|
+Release: 1%{?_dist_release}
|
|
Summary: GNU flash movie player
|
|
Summary: GNU flash movie player
|
|
|
|
|
|
Group: Applications/Multimedia
|
|
Group: Applications/Multimedia
|
|
@@ -19,19 +21,23 @@ Source2: gnash.desktop
|
|
|
|
|
|
# register KComponentData properly in KDE 4 KPart
|
|
# register KComponentData properly in KDE 4 KPart
|
|
Patch0: gnash-0.8.3-fix-kde4-port.patch
|
|
Patch0: gnash-0.8.3-fix-kde4-port.patch
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
BuildRequires: libxml2-devel libpng-devel libjpeg-devel libogg-devel
|
|
BuildRequires: libxml2-devel libpng-devel libjpeg-devel libogg-devel
|
|
-BuildRequires: boost-devel curl-devel freetype-devel fontconfig-devel
|
|
|
|
|
|
+BuildRequires: libboost-devel curl-devel freetype-devel fontconfig-devel
|
|
|
|
+BuildRequires: libboost-date-time libboost-serialization libboost-thread
|
|
BuildRequires: SDL-devel
|
|
BuildRequires: SDL-devel
|
|
BuildRequires: agg-devel
|
|
BuildRequires: agg-devel
|
|
-BuildRequires: kde-filesystem
|
|
|
|
|
|
+%if %{kde_support}
|
|
|
|
+#BuildRequires: kde-filesystem
|
|
BuildRequires: kdelibs-devel
|
|
BuildRequires: kdelibs-devel
|
|
|
|
+%endif
|
|
BuildRequires: gtkglext-devel
|
|
BuildRequires: gtkglext-devel
|
|
BuildRequires: docbook2X
|
|
BuildRequires: docbook2X
|
|
-BuildRequires: %{_bindir}/docbook2pdf
|
|
|
|
-BuildRequires: gstreamer-devel >= 0.10
|
|
|
|
-%if 0%{?scrollkeeper}
|
|
|
|
|
|
+#BuildRequires: %{_bindir}/docbook2pdf
|
|
|
|
+BuildRequires: gstreamer-devel >= 0.10%
|
|
|
|
+BuildRequires: gstreamer-plugins-base-devel >= 0.10
|
|
|
|
+%if %{scrollkeeper}
|
|
BuildRequires: scrollkeeper
|
|
BuildRequires: scrollkeeper
|
|
%endif
|
|
%endif
|
|
BuildRequires: giflib-devel
|
|
BuildRequires: giflib-devel
|
|
@@ -41,8 +47,9 @@ BuildRequires: speex-devel
|
|
BuildRequires: gstreamer-plugins-base-devel
|
|
BuildRequires: gstreamer-plugins-base-devel
|
|
BuildRequires: pygtk2-devel
|
|
BuildRequires: pygtk2-devel
|
|
BuildRequires: libtool-ltdl-devel
|
|
BuildRequires: libtool-ltdl-devel
|
|
|
|
+BuildRequires(check): dejagnu
|
|
|
|
|
|
-%if 0%{?scrollkeeper}
|
|
|
|
|
|
+%if %{scrollkeeper}
|
|
Requires(post): scrollkeeper
|
|
Requires(post): scrollkeeper
|
|
Requires(postun): scrollkeeper
|
|
Requires(postun): scrollkeeper
|
|
%endif
|
|
%endif
|
|
@@ -62,7 +69,7 @@ class.
|
|
|
|
|
|
%package plugin
|
|
%package plugin
|
|
Summary: Web-client flash movie player plugin
|
|
Summary: Web-client flash movie player plugin
|
|
-Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
# this doesn't prevent wrong dependencies, in case a package
|
|
# this doesn't prevent wrong dependencies, in case a package
|
|
# provides %%{_libdir}/mozilla/plugins (like kdebase for konqueror)
|
|
# provides %%{_libdir}/mozilla/plugins (like kdebase for konqueror)
|
|
# and another unrelated webbrowser is installed, like w3m-el.
|
|
# and another unrelated webbrowser is installed, like w3m-el.
|
|
@@ -73,17 +80,20 @@ Group: Applications/Internet
|
|
%description plugin
|
|
%description plugin
|
|
The gnash flash movie player plugin for firefox or mozilla.
|
|
The gnash flash movie player plugin for firefox or mozilla.
|
|
|
|
|
|
|
|
+%if %{kde_support}
|
|
%package klash
|
|
%package klash
|
|
Summary: Konqueror flash movie player plugin
|
|
Summary: Konqueror flash movie player plugin
|
|
-Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
Group: Applications/Multimedia
|
|
Group: Applications/Multimedia
|
|
|
|
|
|
%description klash
|
|
%description klash
|
|
The gnash flash movie player plugin for Konqueror.
|
|
The gnash flash movie player plugin for Konqueror.
|
|
|
|
|
|
|
|
+%endif
|
|
|
|
+
|
|
%package cygnal
|
|
%package cygnal
|
|
Summary: Streaming media server
|
|
Summary: Streaming media server
|
|
-Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
Group: Applications/Multimedia
|
|
Group: Applications/Multimedia
|
|
|
|
|
|
%description cygnal
|
|
%description cygnal
|
|
@@ -91,7 +101,7 @@ Cygnal is a streaming media server that's Flash aware.
|
|
|
|
|
|
%package devel
|
|
%package devel
|
|
Summary: Gnash header files
|
|
Summary: Gnash header files
|
|
-Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
@@ -100,7 +110,7 @@ the Gnash GTK+ widget into a C/C++ application.
|
|
|
|
|
|
%package -n python-gnash
|
|
%package -n python-gnash
|
|
Summary: Gnash Python bindings
|
|
Summary: Gnash Python bindings
|
|
-Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
Group: Applications/Multimedia
|
|
Group: Applications/Multimedia
|
|
|
|
|
|
%description -n python-gnash
|
|
%description -n python-gnash
|
|
@@ -110,12 +120,14 @@ application.
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
%patch0 -p1 -b .fix-kde4
|
|
%patch0 -p1 -b .fix-kde4
|
|
|
|
+%if %{kde_support}
|
|
# Hack as autoreconf breaks build
|
|
# Hack as autoreconf breaks build
|
|
sed -i -e 's!kapp.h!kapplication.h!g' configure
|
|
sed -i -e 's!kapp.h!kapplication.h!g' configure
|
|
sed -i -e 's!libkdeui.la!libkdeui.so!g' configure
|
|
sed -i -e 's!libkdeui.la!libkdeui.so!g' configure
|
|
# Currently kde4-gnash (from kde4 branch) links against various KDE libraries,
|
|
# Currently kde4-gnash (from kde4 branch) links against various KDE libraries,
|
|
# but only needs Qt -- remove the superfluous linkage
|
|
# but only needs Qt -- remove the superfluous linkage
|
|
sed -i -e 's!\$(KDE4_LIBS)!!g' gui/Makefile.in
|
|
sed -i -e 's!\$(KDE4_LIBS)!!g' gui/Makefile.in
|
|
|
|
+%endif
|
|
# we don't want any builtin ltdl built, configure wants always either
|
|
# we don't want any builtin ltdl built, configure wants always either
|
|
# ltdl-install or ltdl-convenience, hack that out
|
|
# ltdl-install or ltdl-convenience, hack that out
|
|
sed -i -e 's/test x"\${enable_ltdl_convenience-no}" != xno/false/g' configure
|
|
sed -i -e 's/test x"\${enable_ltdl_convenience-no}" != xno/false/g' configure
|
|
@@ -139,28 +151,45 @@ mv AUTHORS.utf8 AUTHORS
|
|
--enable-cygnal \
|
|
--enable-cygnal \
|
|
--enable-sdkinstall \
|
|
--enable-sdkinstall \
|
|
--enable-python \
|
|
--enable-python \
|
|
|
|
+%if %{kde_support}
|
|
--enable-gui=gtk,kde4,sdl,fb \
|
|
--enable-gui=gtk,kde4,sdl,fb \
|
|
--with-kde4-prefix=%{_kde4_prefix} \
|
|
--with-kde4-prefix=%{_kde4_prefix} \
|
|
--with-kde4-lib=%{_kde4_libdir}/kde4/devel \
|
|
--with-kde4-lib=%{_kde4_libdir}/kde4/devel \
|
|
--with-kde4-incl=%{_kde4_includedir} \
|
|
--with-kde4-incl=%{_kde4_includedir} \
|
|
|
|
+%else
|
|
|
|
+ --enable-gui=gtk,sdl,fb \
|
|
|
|
+%endif
|
|
--without-included-ltdl
|
|
--without-included-ltdl
|
|
|
|
+
|
|
|
|
+%if %{kde_support}
|
|
# make sure the Qt 4 moc etc. tools are found
|
|
# make sure the Qt 4 moc etc. tools are found
|
|
export PATH=%{_qt4_prefix}/bin:$PATH
|
|
export PATH=%{_qt4_prefix}/bin:$PATH
|
|
#doesn't work currently: %%{?_smp_mflags}
|
|
#doesn't work currently: %%{?_smp_mflags}
|
|
# override KDE4_LIBS because configure doesn't detect it properly
|
|
# override KDE4_LIBS because configure doesn't detect it properly
|
|
make KDE4_LIBS='-L%{_kde4_libdir}/kde4/devel -lkparts -lkdeui -lkdecore'
|
|
make KDE4_LIBS='-L%{_kde4_libdir}/kde4/devel -lkparts -lkdeui -lkdecore'
|
|
|
|
+%else
|
|
|
|
+#doesn't work currently: %%{?_smp_mflags}
|
|
|
|
+make
|
|
|
|
+%endif
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install install-plugins \
|
|
make install install-plugins \
|
|
DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' \
|
|
DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' \
|
|
|
|
+%if %{kde_support}
|
|
KDE4_PLUGINDIR=%{_kde4_libdir}/kde4 \
|
|
KDE4_PLUGINDIR=%{_kde4_libdir}/kde4 \
|
|
KDE4_SERVICESDIR=%{_kde4_datadir}/kde4/services \
|
|
KDE4_SERVICESDIR=%{_kde4_datadir}/kde4/services \
|
|
KDE4_CONFIGDIR=%{_kde4_configdir} \
|
|
KDE4_CONFIGDIR=%{_kde4_configdir} \
|
|
KDE4_APPSDATADIR=%{_kde4_appsdir}/klash
|
|
KDE4_APPSDATADIR=%{_kde4_appsdir}/klash
|
|
|
|
+%endif
|
|
|
|
+
|
|
rm $RPM_BUILD_ROOT%{_libdir}/gnash/*.la
|
|
rm $RPM_BUILD_ROOT%{_libdir}/gnash/*.la
|
|
|
|
+
|
|
|
|
+%if %{kde_support}
|
|
# KDE 4 doesn't need the .la file anymore, thankfully
|
|
# KDE 4 doesn't need the .la file anymore, thankfully
|
|
rm $RPM_BUILD_ROOT%{_kde4_libdir}/kde4/libklashpart.la
|
|
rm $RPM_BUILD_ROOT%{_kde4_libdir}/kde4/libklashpart.la
|
|
|
|
+%endif
|
|
|
|
+
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
|
|
|
rm -rf __dist_docs
|
|
rm -rf __dist_docs
|
|
@@ -203,7 +232,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%post
|
|
%post
|
|
/sbin/ldconfig
|
|
/sbin/ldconfig
|
|
-%if 0%{?scrollkeeper}
|
|
|
|
|
|
+%if %{scrollkeeper}
|
|
scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
|
|
scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
|
|
%endif
|
|
%endif
|
|
/sbin/install-info %{_infodir}/gnash_ref.info %{_infodir}/dir || :
|
|
/sbin/install-info %{_infodir}/gnash_ref.info %{_infodir}/dir || :
|
|
@@ -225,7 +254,7 @@ fi
|
|
|
|
|
|
%postun
|
|
%postun
|
|
/sbin/ldconfig
|
|
/sbin/ldconfig
|
|
-%if 0%{?scrollkeeper}
|
|
|
|
|
|
+%if %{scrollkeeper}
|
|
scrollkeeper-update -q || :
|
|
scrollkeeper-update -q || :
|
|
%endif
|
|
%endif
|
|
|
|
|
|
@@ -268,7 +297,7 @@ fi
|
|
%{_datadir}/icons/hicolor/32x32/apps/*.png
|
|
%{_datadir}/icons/hicolor/32x32/apps/*.png
|
|
%{_datadir}/applications/*.desktop
|
|
%{_datadir}/applications/*.desktop
|
|
%{_libexecdir}/gnash-wrapper
|
|
%{_libexecdir}/gnash-wrapper
|
|
-%if 0%{?scrollkeeper}
|
|
|
|
|
|
+%if %{scrollkeeper}
|
|
%{_datadir}/omf/gnash/
|
|
%{_datadir}/omf/gnash/
|
|
%endif
|
|
%endif
|
|
|
|
|
|
@@ -276,6 +305,7 @@ fi
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/mozilla/plugins/libgnashplugin.so
|
|
%{_libdir}/mozilla/plugins/libgnashplugin.so
|
|
|
|
|
|
|
|
+%if %{kde_support}
|
|
%files klash
|
|
%files klash
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_kde4_bindir}/kde4-gnash
|
|
%{_kde4_bindir}/kde4-gnash
|
|
@@ -283,6 +313,7 @@ fi
|
|
%{_kde4_appsdir}/klash/
|
|
%{_kde4_appsdir}/klash/
|
|
%{_kde4_datadir}/kde4/services/klash_part.desktop
|
|
%{_kde4_datadir}/kde4/services/klash_part.desktop
|
|
%{_mandir}/man1/kde4-gnash.1*
|
|
%{_mandir}/man1/kde4-gnash.1*
|
|
|
|
+%endif
|
|
|
|
|
|
%files cygnal
|
|
%files cygnal
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -303,6 +334,9 @@ fi
|
|
%{python_sitearch}/gtk-2.0/*
|
|
%{python_sitearch}/gtk-2.0/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Mar 17 2010 IWAI, Masaharu <iwai@alib.jp> 0.8.7-1
|
|
|
|
+- initial build for Vine Linux: based Fedora 0.8.7-1.fc14
|
|
|
|
+
|
|
* Sat Feb 27 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1:0.8.7-1
|
|
* Sat Feb 27 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1:0.8.7-1
|
|
- update to 0.8.7
|
|
- update to 0.8.7
|
|
- make scrollkeeper a conditional (still disabled as it's not working)
|
|
- make scrollkeeper a conditional (still disabled as it's not working)
|