]> git.pld-linux.org Git - SPECS.git/blob - mozilla-addon-autoscroll.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / mozilla-addon-autoscroll.spec
1 Summary:        Automatic scrolling functionality
2 Summary(pl.UTF-8):      Automatyczne przewijanie
3 %define         _realname       autoscroll
4 Name:           mozilla-addon-%{_realname}
5 Version:        1.0
6 Release:        3
7 License:        MPL 1.1/GPL 2.0/LGPL 2.1
8 Group:          X11/Applications/Networking
9 Source0:        http://home.jesus.ox.ac.uk/~ecatmur/projects/mozilla/%{_realname}.xpi
10 # Source0-md5:  ab274fec67e8697d6f5f7bd1676be82f
11 Source1:        http://lednerg.home.comcast.net/%{_realname}_icons.zip
12 # Source1-md5:  359b61e2fadb43e560634da8cfe34ba8
13 Source2:        %{_realname}-installed-chrome.txt
14 URL:            http://home.jesus.ox.ac.uk/~ecatmur/projects/mozilla/
15 BuildRequires:  unzip
16 Requires(post,postun):  mozilla >= 5:1.7.3-3
17 Requires(post,postun):  textutils
18 Requires:       mozilla >= 2:1.0-7
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _chromedir      %{_datadir}/mozilla/chrome
23
24 %description
25 AutoScroll is an addon for Mozilla and Phoenix and possibly other
26 browsers which support XPI packages that emulates the autoscrolling
27 functionality of Internet Explorer. For those unfamiliar with this,
28 when you middle click on a page (typically by clicking a mouse wheel
29 button) you can then move the mouse up and down to have the page
30 scroll by you without further mouse movements.
31
32 %description -l pl.UTF-8
33 AutoScroll jest dodatkiem do Mozilli i Phoeniksa oraz prawdopodobnie
34 innych przeglądarek obsługujących pakiety XPI, który emuluje
35 funkcjonalność autoprzewijania znaną z Internet Explorera. Kliknięcie
36 środkowym przyciskiem myszy na stronie (zazwyczaj przez naciśnięcie
37 rolki) i ruch myszy w którymś kierunku powoduje przewijanie strony bez
38 konieczności wykonywania kolejnych ruchów myszą.
39
40 %prep
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{_chromedir}
45
46 unzip %{SOURCE0} -d $RPM_BUILD_ROOT%{_chromedir}
47 unzip -o %{SOURCE1} -d $RPM_BUILD_ROOT%{_chromedir}/%{_realname}/content
48 install %{SOURCE2} $RPM_BUILD_ROOT%{_chromedir}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post
54 if [ "$1" = 1 ]; then
55         %{_sbindir}/mozilla-chrome+xpcom-generate
56 fi
57
58 %postun
59 [ ! -x %{_sbindir}/mozilla-chrome+xpcom-generate ] || %{_sbindir}/mozilla-chrome+xpcom-generate
60
61 %files
62 %defattr(644,root,root,755)
63 %{_chromedir}/%{_realname}
64 %{_chromedir}/%{_realname}-installed-chrome.txt
This page took 0.515135 seconds and 3 git commands to generate.