[packages/js-swfobject] package source and minified version; allow possible co-install of other versions

glen glen at pld-linux.org
Thu Nov 29 22:18:38 CET 2012


commit e2425b4ec0539c6fb119b2e6a710a66bf2341642
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Nov 29 23:18:02 2012 +0200

    package source and minified version; allow possible co-install of other versions

 js-swfobject.spec | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/js-swfobject.spec b/js-swfobject.spec
index a9dd148..98da9c9 100644
--- a/js-swfobject.spec
+++ b/js-swfobject.spec
@@ -1,7 +1,8 @@
 %define		ver	%(echo %{version} | tr . _)
+%define		plugin	swfobject
 Summary:	JavaScript Flash Player detection and embed script
 Summary(pl.UTF-8):	Skrypt w JavaScripcie do wykrywania i osadzania Flash Playera
-Name:		js-swfobject
+Name:		js-%{plugin}
 Version:	2.2
 Release:	1
 License:	MIT
@@ -49,7 +50,11 @@ mv %{_webapp}/* .
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_appdir}
-cp -p swfobject.js $RPM_BUILD_ROOT%{_appdir}
+
+cp -p %{plugin}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
+cp -p src/%{plugin}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.js
+ln -s %{plugin}-%{version}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.src.js
+ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/js-swfobject.git/commitdiff/e2425b4ec0539c6fb119b2e6a710a66bf2341642



More information about the pld-cvs-commit mailing list