]> git.pld-linux.org Git - packages/browser-plugin-lastpass.git/blame - browser-plugin-lastpass.spec
native portion of lastpass
[packages/browser-plugin-lastpass.git] / browser-plugin-lastpass.spec
CommitLineData
f46261ca
ER
1# TODO
2# - add other browsers (opera, google-chrome, firefox...)
3Summary: LastPass binary version to enable sharing login state between other browsers
4Name: browser-plugin-lastpass
5Version: 3.1.10
6Release: 0.2
7License: ?
8Group: X11/Applications/Networking
9Source0: https://lastpass.com/lplinux.tar.bz2
10# Source0-md5: eedb4dcf4f44ba80c4531514aec4d38f
11NoSource: 0
12Source1: https://lastpass.com/lpchrome_linux.crx
13# Source1-md5: b1bd0fd75b38ba34b2cbd605746d5e83
14NoSource: 1
15URL: https://lastpass.com/
16ExclusiveArch: %{ix86} %{x8664}
17BuildRoot: %{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
30Binary version of LastPass to enable importing passwords from Google
31Chrome password manager and to enable sharing login state between
32other browsers.
33
34%prep
35%setup -qc
36
37echo "{ \"ExtensionInstallSources\": [\"https://lastpass.com/*\", \"https://*.lastpass.com/*\", \"https://*.cloudfront.net/lastpass/*\"] }" \
38 > lastpass_policy.json
39echo "{ \"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
43rm -rf $RPM_BUILD_ROOT
44install -d $RPM_BUILD_ROOT%{chromium_cfdir}/{policies/managed,native-messaging-hosts}
45cp -p lastpass_policy.json $RPM_BUILD_ROOT%{chromium_cfdir}/policies/managed
46cp -f %{NPLASTPASS} $RPM_BUILD_ROOT%{chromium_cfdir}/native-messaging-hosts
47cp -p com.lastpass.nplastpass.json $RPM_BUILD_ROOT%{chromium_cfdir}/native-messaging-hosts
48
49%clean
50rm -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.091716 seconds and 4 git commands to generate.