1 |
%define pre 0 |
2 |
|
3 |
Summary: Web development tool extension for firefox |
4 |
Name: firefox-ext-firebug |
5 |
Version: 1.9.2 |
6 |
Release: %mkrel 2 |
7 |
License: BSD |
8 |
Group: Networking/WWW |
9 |
URL: https://addons.mozilla.org/en-US/firefox/addon/firebug/ |
10 |
Source: http://getfirebug.com/releases/firebug/1.9/firebug-%{version}.xpi |
11 |
Requires: firefox >= %{firefox_epoch}:%{firefox_version} |
12 |
BuildRequires: firefox-devel |
13 |
Buildarch: noarch |
14 |
|
15 |
%description |
16 |
The most popular and powerful web development tool |
17 |
|
18 |
* Inspect HTML and modify style and layout in real-time |
19 |
* Use the most advanced JavaScript debugger available for any browser |
20 |
* Accurately analyze network usage and performance |
21 |
* Extend Firebug and add features to make Firebug even more powerful |
22 |
* Get the information you need to get it done with Firebug. |
23 |
|
24 |
|
25 |
%prep |
26 |
%setup -q -c -n %{name}-%{version} |
27 |
|
28 |
%build |
29 |
|
30 |
%install |
31 |
rm -rf %{buildroot} |
32 |
mkdir -p %{buildroot}%{firefox_extdir} |
33 |
|
34 |
hash="$(sed -n '/.*em:id="\(.*\)"/{s//\1/p;q}' install.rdf)" |
35 |
if [ -z "$hash" ]; then |
36 |
hash="$(sed -n '/.*em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)" |
37 |
fi |
38 |
if [ -z "$hash" ]; then |
39 |
echo "Failed to find plugin hash." |
40 |
exit 1 |
41 |
fi |
42 |
extdir="%{firefox_extdir}/" |
43 |
mkdir -p "%{buildroot}$extdir" |
44 |
cp -af %SOURCE0 "%{buildroot}$extdir/$hash.xpi" |
45 |
|
46 |
%files |
47 |
%defattr(0644,root,root,0755) |
48 |
%{firefox_extdir}/* |