SPECS: gnash.spec - separated klash with kde bcond

qboosh qboosh at pld-linux.org
Sun Dec 10 21:15:32 CET 2006


Author: qboosh                       Date: Sun Dec 10 20:15:32 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- separated klash with kde bcond

---- Files affected:
SPECS:
   gnash.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/gnash.spec
diff -u SPECS/gnash.spec:1.4 SPECS/gnash.spec:1.5
--- SPECS/gnash.spec:1.4	Sun Dec 10 13:31:14 2006
+++ SPECS/gnash.spec	Sun Dec 10 21:15:27 2006
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	kde	# don't build klash plugin for Konqueror
+#
 Summary:	Gnash - free Flash movie player
 Summary(pl):	Gnash - wolnodostępny odtwarzacz filmów Flash
 Name:		gnash
@@ -17,6 +21,7 @@
 BuildRequires:	automake
 BuildRequires:	boost-devel
 BuildRequires:	cairo-devel
+%{?with_kde:BuildRequires:	kdelibs-devel >= 3.0}
 BuildRequires:	gstreamer-devel >= 0.10
 BuildRequires:	gtk+2-devel >= 2.0
 BuildRequires:	gtkglext-devel
@@ -54,6 +59,20 @@
 public domain, więc na początku grudnia 2005 GameSWF został
 odgałęziony, a kod przeorganizowany w stylu projektu GNU.
 
+%package -n konqueror-plugin-klash
+Summary:	Klash plugin for Konqueror
+Summary(pl):	Wtyczka Klash dla Konquerora
+Group:		X11/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	konqueror
+
+%description -n konqueror-plugin-klash
+Klash plugin for Konqueror for displaying Flash using Gnash library.
+
+%description -n konqueror-plugin-klash -l pl
+Wtyczka Klash dla Konquerora służąca do wyświetlania Flasha przy
+użyciu biblioteki Gnash.
+
 %prep
 %setup -q
 
@@ -68,6 +87,7 @@
 %configure \
 	--disable-static \
 	--enable-ghelp \
+	%{?with_kde:--enable-klash} \
 	--enable-mp3 \
 	--enable-pthreads \
 	--with-plugindir=%{_libdir}/browser-plugins
@@ -94,25 +114,34 @@
 %attr(755,root,root) %{_bindir}/gnash
 %attr(755,root,root) %{_bindir}/gparser
 %attr(755,root,root) %{_bindir}/gprocessor
-%attr(755,root,root) %{_bindir}/klash
-%{_libdir}/kde3/libklashpart.la
-%attr(755,root,root) %{_libdir}/kde3/libklashpart.so
-%{_datadir}/apps/klash
-%{_datadir}/config/klashrc
 %dir %{_datadir}/gnash
 %{_datadir}/gnash/gnash_128_96.ico
 %{_mandir}/man1/gnash.1*
-%{_datadir}/services/klash_part.desktop
 # removed in install section
 #%attr(755,root,root) %{_libdir}/libgnash*.so.*.*.*
 %attr(755,root,root) %{_libdir}/browser-plugins/libgnashplugin.so
 
+%if %{with kde}
+%files -n konqueror-plugin-klash
+%defattr(644,root,root,755)
+%doc plugin/klash/README
+%attr(755,root,root) %{_bindir}/klash
+%{_libdir}/kde3/libklashpart.la
+%attr(755,root,root) %{_libdir}/kde3/libklashpart.so
+%{_datadir}/apps/klash
+%{_datadir}/config/klashrc
+%{_datadir}/services/klash_part.desktop
+%endif
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2006/12/10 20:15:27  qboosh
+- separated klash with kde bcond
+
 Revision 1.4  2006/12/10 12:31:14  glen
 - 0.7.2, builds
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gnash.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list