]> git.pld-linux.org Git - packages/browser-plugin-lastpass.git/blob - browser-plugin-lastpass.spec
native portion of lastpass
[packages/browser-plugin-lastpass.git] / browser-plugin-lastpass.spec
1 # TODO
2 # - add other browsers (opera, google-chrome, firefox...)
3 Summary:        LastPass binary version to enable sharing login state between other browsers
4 Name:           browser-plugin-lastpass
5 Version:        3.1.10
6 Release:        0.2
7 License:        ?
8 Group:          X11/Applications/Networking
9 Source0:        https://lastpass.com/lplinux.tar.bz2
10 # Source0-md5:  eedb4dcf4f44ba80c4531514aec4d38f
11 NoSource:       0
12 Source1:        https://lastpass.com/lpchrome_linux.crx
13 # Source1-md5:  b1bd0fd75b38ba34b2cbd605746d5e83
14 NoSource:       1
15 URL:            https://lastpass.com/
16 ExclusiveArch:  %{ix86} %{x8664}
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 #%define                chromium_cfdir  /etc/chromium-browser
20 # FIXME: currently (chrome<34) chromium config dir is wrong: /etc/chromium not /etc/chromium-browser
21 %define         chromium_cfdir  /etc/chromium
22
23 %ifarch %{x8664}
24 %define         NPLASTPASS nplastpass64
25 %else
26 %define         NPLASTPASS nplastpass
27 %endif
28
29 %description
30 Binary version of LastPass to enable importing passwords from Google
31 Chrome password manager and to enable sharing login state between
32 other browsers.
33
34 %prep
35 %setup -qc
36
37 echo "{ \"ExtensionInstallSources\": [\"https://lastpass.com/*\", \"https://*.lastpass.com/*\", \"https://*.cloudfront.net/lastpass/*\"] }" \
38         > lastpass_policy.json
39 echo "{ \"name\": \"com.lastpass.nplastpass\", \"description\": \"LastPass\", \"path\": \"%{chromium_cfdir}/native-messaging-hosts/%{NPLASTPASS}\", \"type\": \"stdio\", \"allowed_origins\": [ \"chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/\", \"chrome-extension://debgaelkhoipmbjnhpoblmbacnmmgbeg/\" ] }" \
40         > com.lastpass.nplastpass.json
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{chromium_cfdir}/{policies/managed,native-messaging-hosts}
45 cp -p lastpass_policy.json $RPM_BUILD_ROOT%{chromium_cfdir}/policies/managed
46 cp -f %{NPLASTPASS} $RPM_BUILD_ROOT%{chromium_cfdir}/native-messaging-hosts
47 cp -p com.lastpass.nplastpass.json $RPM_BUILD_ROOT%{chromium_cfdir}/native-messaging-hosts
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 # FIXME: should be owned by chromium itself
55 %dir %{chromium_cfdir}
56 %dir %{chromium_cfdir}/native-messaging-hosts
57 %dir %{chromium_cfdir}/policies
58 %dir %{chromium_cfdir}/policies/managed
59 %config(noreplace) %verify(not md5 mtime size) %{chromium_cfdir}/policies/managed/lastpass_policy.json
60 %config(noreplace) %verify(not md5 mtime size) %{chromium_cfdir}/native-messaging-hosts/com.lastpass.nplastpass.json
61 %attr(755,root,root) %{chromium_cfdir}/native-messaging-hosts/nplastpass64
This page took 0.133458 seconds and 3 git commands to generate.