SPECS: seamonkey-addon-flashgot.spec (NEW) - NEW, Download helper

sparky sparky at pld-linux.org
Sun Feb 25 22:39:37 CET 2007


Author: sparky                       Date: Sun Feb 25 21:39:37 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- NEW, Download helper

---- Files affected:
SPECS:
   seamonkey-addon-flashgot.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/seamonkey-addon-flashgot.spec
diff -u /dev/null SPECS/seamonkey-addon-flashgot.spec:1.1
--- /dev/null	Sun Feb 25 22:39:37 2007
+++ SPECS/seamonkey-addon-flashgot.spec	Sun Feb 25 22:39:32 2007
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+
+%define		_realname	flashgot
+
+Summary:	Download helper
+Name:		seamonkey-addon-%{_realname}
+Version:	0.5.97.03
+Release:	0.1
+License:	GPL
+Group:		X11/Applications/Networking
+Source0:	http://releases.mozilla.org/pub/mozilla.org/extensions/flashgot/%{_realname}-%{version}-fx+fl+mz+ns+zm+tb.xpi
+# Source0-md5:	633e84506fcf8fce9d0285b07f6e0f24
+Source1:	gen-installed-chrome.sh
+URL:		http://flashgot.net/
+BuildRequires:	unzip
+BuildRequires:	zip
+Requires(post,postun):	seamonkey >= 1.0
+Requires:	seamonkey >= 1.0
+#BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define	_chromedir	%{_datadir}/seamonkey/chrome
+
+%description
+Download one link, selected links or all the links of a page together
+at the maximum speed with a single click, using the most popular,
+lightweight and reliable external download managers. Supported
+download tools are dozens, see http://flashgot.net for details. This
+extension offers also a Build Gallery functionality which helps to
+collect in a single page serial movies and images scattered on several
+pages, for easy and fast "download all".
+
+%prep
+%setup -qc
+
+# remove .exe file
+zip -d chrome/%{_realname}.jar "content/flashgot/FlashGot*"
+
+install %{SOURCE1} .
+./gen-installed-chrome.sh locale chrome/%{_realname}.jar \
+	| sed '/content/s/^locale/content/; /skin/s/^locale/skin/;' \
+	> %{_realname}-installed-chrome.txt
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_chromedir},%{_libdir}/seamonkey}
+
+install chrome/%{_realname}.jar $RPM_BUILD_ROOT%{_chromedir}
+install %{_realname}-installed-chrome.txt $RPM_BUILD_ROOT%{_chromedir}
+cp -r defaults $RPM_BUILD_ROOT%{_datadir}/seamonkey
+cp -r components $RPM_BUILD_ROOT%{_libdir}/seamonkey
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{_sbindir}/seamonkey-chrome+xpcom-generate
+
+%postun
+%{_sbindir}/seamonkey-chrome+xpcom-generate
+
+%files
+%defattr(644,root,root,755)
+%{_chromedir}/%{_realname}.jar
+%{_chromedir}/%{_realname}-installed-chrome.txt
+%{_datadir}/seamonkey/defaults/preferences/flashgot.js
+%{_libdir}/seamonkey/components/flashgotService.js
+
+%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.1  2007/02/25 21:39:32  sparky
+- NEW, Download helper
+
================================================================


More information about the pld-cvs-commit mailing list