SPECS: flash_media_player.spec - add lighttpd config

glen glen at pld-linux.org
Mon Jul 23 14:00:41 CEST 2007


Author: glen                         Date: Mon Jul 23 12:00:41 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add lighttpd config

---- Files affected:
SPECS:
   flash_media_player.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/flash_media_player.spec
diff -u SPECS/flash_media_player.spec:1.5 SPECS/flash_media_player.spec:1.6
--- SPECS/flash_media_player.spec:1.5	Mon Jul 23 13:55:43 2007
+++ SPECS/flash_media_player.spec	Mon Jul 23 14:00:36 2007
@@ -1,21 +1,25 @@
 # $Revision$, $Date$
-# TODO
-# - all
 Summary:	JW Media Player
 Summary(pl.UTF-8):	Odtwarzacz Flash Media
 Name:		jw_media_player
 Version:	3.99
-Release:	0.2
+Release:	0.3
 License:	Creative Commons
 Group:		Applications/WWW
 Source0:	http://www.jeroenwijering.com/upload/%{name}.zip
 # Source0-md5:	995e438774dba2c1c3919e62749aa735
+Source1:	%{name}-lighttpd.conf
 URL:		http://www.jeroenwijering.com/?item=JW_Media_Player
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires:	webapps
 Obsoletes:	flash_media_player
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_appdir	%{_datadir}/%{name}
+%define		_webapps	/etc/webapps
+%define		_webapp		%{name}
+%define		_sysconfdir	%{_webapps}/%{_webapp}
+%define		_appdir	%{_datadir}/%{_webapp}
 
 %description
 The JW Media Player (built with Adobe's Flash) supports playback of a
@@ -40,6 +44,13 @@
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_appdir}
 cp -a mediaplayer.swf $RPM_BUILD_ROOT%{_appdir}
+cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
+
+%triggerin -- lighttpd
+%webapp_register lighttpd %{_webapp}
+
+%triggerun -- lighttpd
+%webapp_unregister lighttpd %{_webapp}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -55,6 +66,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2007/07/23 12:00:36  glen
+- add lighttpd config
+
 Revision 1.5  2007/07/23 11:55:43  glen
 - missing dir
 
================================================================

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



More information about the pld-cvs-commit mailing list