]>
Commit | Line | Data |
---|---|---|
138f32bc JB |
1 | Summary: GNOME Shell integration for Chrome |
2 | Summary(pl.UTF-8): Integracja GNOME Shell dla Chrome'a | |
3 | Name: chrome-gnome-shell | |
4 | Version: 10.1 | |
9b20bcc8 | 5 | Release: 2 |
138f32bc JB |
6 | License: GPL v3+ |
7 | Group: X11/Applications | |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/chrome-gnome-shell/10.1/%{name}-%{version}.tar.xz | |
9 | # Source0-md5: 11dd4c539fefff7153b4f0af8e6e4a71 | |
10 | URL: https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome | |
11 | BuildRequires: cmake >= 2.8 | |
12 | # base64, sha256sum | |
13 | BuildRequires: coreutils >= 6.0 | |
14 | BuildRequires: gettext-tools | |
15 | BuildRequires: jq | |
16 | BuildRequires: p7zip | |
17 | BuildRequires: python3 >= 1:3.2 | |
18 | BuildRequires: tar >= 1:1.22 | |
19 | BuildRequires: xz | |
20 | Requires: gnome-shell >= 3.22 | |
21 | Requires: python3-modules >= 1:3.2 | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
9b20bcc8 JR |
24 | %define _enable_debug_packages 0 |
25 | ||
138f32bc JB |
26 | %description |
27 | This package contains Browser extension for Google Chrome/Chromium, | |
28 | Firefox, Vivaldi, Opera (and other Browser Extension, Chrome Extension | |
29 | or WebExtensions capable browsers) and native host messaging connector | |
30 | that provides integration with GNOME Shell and the corresponding | |
31 | extensions repository (https://extensions.gnome.org/). | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Ten pakiet zawiera rozszerzenie dla przeglądarek Google | |
35 | Chrome/Chromium, Firefox, Vivaldi, Opera (i innych przeglądarek | |
36 | obsługujących rozszerzenia Chrome lub WebExtension) oraz natywny | |
37 | łącznik komunikacyjny, zapewniający integrację z powłoką GNOME Shell | |
38 | oraz jej repozytorium rozszerzeń (https://extensions.gnome.org/). | |
39 | ||
40 | %prep | |
41 | %setup -q | |
42 | ||
43 | %build | |
44 | install -d build | |
45 | cd build | |
46 | %cmake .. \ | |
47 | -DPYTHON_EXECUTABLE=%{__python3} | |
48 | ||
49 | %{__make} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} -C build install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/{gnome,hicolor} | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc NEWS README.md | |
65 | %attr(755,root,root) %{_bindir}/chrome-gnome-shell | |
66 | %{py3_sitedir}/chrome_gnome_shell-0.0.0-py*.egg-info | |
67 | %{_datadir}/dbus-1/services/org.gnome.ChromeGnomeShell.service | |
68 | %{_desktopdir}/org.gnome.ChromeGnomeShell.desktop | |
69 | %{_iconsdir}/hicolor/*x*/apps/org.gnome.ChromeGnomeShell.png | |
70 | # -chromium | |
71 | %dir %{_sysconfdir}/chromium | |
72 | %dir %{_sysconfdir}/chromium/native-messaging-hosts | |
73 | %{_sysconfdir}/chromium/native-messaging-hosts/org.gnome.chrome_gnome_shell.json | |
74 | # -chrome | |
75 | %dir /etc/opt/chrome | |
76 | %dir /etc/opt/chrome/native-messaging-hosts | |
77 | /etc/opt/chrome/native-messaging-hosts/org.gnome.chrome_gnome_shell.json | |
78 | # -firefox | |
79 | %dir %{_libdir}/mozilla/native-messaging-hosts | |
80 | %{_libdir}/mozilla/native-messaging-hosts/org.gnome.chrome_gnome_shell.json |