/[packages]/cauldron/firefox-ext-bugzilla-tweaks/current/SPECS/firefox-ext-bugzilla-tweaks.spec
ViewVC logotype

Contents of /cauldron/firefox-ext-bugzilla-tweaks/current/SPECS/firefox-ext-bugzilla-tweaks.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 389214 - (show annotations) (download)
Thu Jan 17 21:30:27 2013 UTC (12 years, 6 months ago) by pterjan
File size: 1293 byte(s)
oops
1 Summary: Bugzilla extension for firefox
2 Name: firefox-ext-bugzilla-tweaks
3 Version: 1.12.1
4 Release: %mkrel 2
5 License: MPL
6 Group: Networking/WWW
7 URL: https://addons.mozilla.org/en-US/firefox/addon/187588/
8 Source: http://releases.mozilla.org/pub/mozilla.org/addons/187588/bugzilla_tweaks-%{version}-fx.xpi
9 Obsoletes: %{name} < %{version}
10 Requires: firefox >= %{firefox_epoch}:%{firefox_version}
11 BuildArch: noarch
12 BuildRequires: firefox-devel
13
14 %description
15 This extension modifies the pages loaded from bugzilla.mozilla.org and adds features including:
16 - Interleaving the bug's change history with the comments on the same page
17 - Showing the last time that a bug or attachment flag was changed
18 - Proving user name autocompletion support
19 - And many more...
20
21 %prep
22 %setup -q -c -n %{name}-%{version}
23
24 %build
25
26 %install
27 rm -rf %{buildroot}
28 mkdir -p %{buildroot}%{firefox_extdir}
29
30 hash="$(sed -n '/.*em:id="\(.*\)"/{s//\1/p;q}' install.rdf)"
31 if [ -z "$hash" ]; then
32 hash="$(sed -n '/.*em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)"
33 fi
34 if [ -z "$hash" ]; then
35 echo "Failed to find plugin hash."
36 exit 1
37 fi
38 extdir="%{firefox_extdir}/$hash"
39 mkdir -p "%{buildroot}$extdir"
40 cp -af * "%{buildroot}$extdir/"
41
42 %clean
43 rm -rf %{buildroot}
44
45 %files
46 %defattr(0644,root,root,0755)
47 %{firefox_extdir}
48
49

  ViewVC Help
Powered by ViewVC 1.1.30