]>
Commit | Line | Data |
---|---|---|
ab8a77c2 ER |
1 | # TODO |
2 | # - ubuntu specific multiarch paths for indicators | |
8128bc9f | 3 | Summary: MATE desktop tweak tool |
e7c6fc0f | 4 | Summary(pl.UTF-8): Narzędzie do dostrajania środowiska MATE |
8128bc9f | 5 | Name: mate-tweak |
ab8a77c2 | 6 | Version: 16.10.4 |
30202ebd | 7 | Release: 3 |
e7c6fc0f | 8 | License: GPL v2+ |
8128bc9f ER |
9 | Group: X11/Applications |
10 | Source0: https://bitbucket.org/ubuntu-mate/mate-tweak/get/%{version}.tar.gz?/%{name}-%{version}.tar.gz | |
ab8a77c2 | 11 | # Source0-md5: 1fbfcb3523c98cc4342c61f3f1130dd2 |
8128bc9f | 12 | Patch0: %{name}-use-matemenu.patch |
85a2d20e | 13 | URL: https://bitbucket.org/ubuntu-mate/mate-tweak |
8128bc9f ER |
14 | BuildRequires: gobject-introspection-devel |
15 | BuildRequires: intltool | |
d7f44c12 | 16 | BuildRequires: python3-distutils-extra |
e7c6fc0f | 17 | BuildRequires: python3-modules >= 1:3.2 |
d7f44c12 | 18 | BuildRequires: python3-setuptools |
8128bc9f ER |
19 | BuildRequires: rpm-pythonprov |
20 | BuildRequires: rpmbuild(macros) >= 1.714 | |
052a3aa3 | 21 | BuildRequires: sed >= 4.0 |
b70f929a | 22 | #Requires: Mesa-demo-x |
8128bc9f | 23 | Requires: dconf |
e7c6fc0f JB |
24 | Requires: gobject-introspection |
25 | Requires: gtk+3 >= 3.0 | |
26 | Requires: libnotify >= 0.7 | |
8128bc9f | 27 | Requires: mate-panel |
d7f44c12 | 28 | Requires: python3-configobj |
89a735bf | 29 | Requires: python3-psutil |
e7c6fc0f | 30 | Requires: python3-pygobject3 >= 3.0 |
8128bc9f ER |
31 | BuildArch: noarch |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %define _libexecdir %{_prefix}/lib | |
35 | ||
36 | %description | |
37 | Configures some aspects of the MATE desktop not exposed via the MATE | |
38 | Control Centre applets. | |
39 | ||
40 | Settings that can be handled via MATE Tweak: | |
41 | - Show/hide standard desktop icons. | |
42 | - Panel fine-tuning (icon visibility, in menus and on buttons, icon | |
43 | size, button labelling, contex menus, etc.). | |
44 | - Window manager fine-tuning. | |
45 | ||
e7c6fc0f JB |
46 | %description -l pl.UTF-8 |
47 | MATE Tweak to narzędzie do konfiguracji niektórych aspektów środowiska | |
48 | graficznego MATE, nie udostępniony poprzez aplety MATE Control Centre. | |
49 | ||
50 | Ustawienia obsługiwane przez MATE Tweak: | |
51 | - pokazywanie/ukrywanie standardowych ikon pulpitu | |
52 | - dostrajanie panelu (widoczność ikon w menu i na przyciskach, rozmiar | |
53 | ikon, etykiety przycisków, menu kontekstowe itp.) | |
54 | - dostrajanie zarządcy okien | |
55 | ||
8128bc9f ER |
56 | %prep |
57 | %setup -qc | |
e7c6fc0f | 58 | %{__mv} ubuntu-mate-mate-tweak-*/* . |
8128bc9f ER |
59 | %patch0 -p1 |
60 | ||
052a3aa3 JB |
61 | %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' util/{disable-mate-volume-applet,mate-panel-backup,install-mate-panel-layout} |
62 | %{__sed} -i -e '1s,/usr/bin/env bash,/bin/bash,' marco-{compton,xcompmgr,no-composite} metacity-{compton,xcompmgr,no-composite} | |
63 | ||
8128bc9f | 64 | %build |
d7f44c12 | 65 | %py3_build |
8128bc9f ER |
66 | |
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
e7c6fc0f | 69 | |
d7f44c12 | 70 | %py3_install |
8128bc9f ER |
71 | |
72 | # Give gi-find-deps.sh a bait. | |
73 | #ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_libexecdir}/%{name}/%{name}.py | |
74 | ||
85a2d20e | 75 | # es_419,zh-Hans are bogus |
547b4586 | 76 | # frp,jv,ku_IQ,nah,nqo,pms,sco,tpi not supported by glibc |
85a2d20e | 77 | # ur_PK an ampty version or ur |
547b4586 | 78 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_419,frp,jv,ku_IQ,nah,nqo,pms,sco,tpi,ur_PK,zh-Hans} |
33f90f53 | 79 | |
8128bc9f ER |
80 | %find_lang %{name} |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post | |
86 | %update_desktop_database | |
87 | ||
88 | %postun | |
89 | %update_desktop_database | |
90 | ||
91 | %files -f %{name}.lang | |
92 | %defattr(644,root,root,755) | |
93 | %doc README.md | |
94 | %attr(755,root,root) %{_bindir}/marco-compton | |
95 | %attr(755,root,root) %{_bindir}/marco-no-composite | |
96 | %attr(755,root,root) %{_bindir}/marco-xcompmgr | |
97 | %attr(755,root,root) %{_bindir}/mate-tweak | |
98 | %attr(755,root,root) %{_bindir}/metacity-compton | |
99 | %attr(755,root,root) %{_bindir}/metacity-no-composite | |
100 | %attr(755,root,root) %{_bindir}/metacity-xcompmgr | |
101 | %{_mandir}/man1/marco-compton.1* | |
102 | %{_mandir}/man1/marco-no-composite.1* | |
103 | %{_mandir}/man1/mate-tweak.1* | |
104 | %{_mandir}/man1/metacity-compton.1* | |
105 | %{_mandir}/man1/metacity-no-composite.1* | |
106 | %{_desktopdir}/mate-tweak.desktop | |
107 | %{_datadir}/polkit-1/actions/org.mate.mate-tweak.policy | |
108 | ||
109 | %dir %{_libexecdir}/mate-tweak | |
110 | %{_libexecdir}/mate-tweak/disable-mate-volume-applet | |
111 | %{_libexecdir}/mate-tweak/install-mate-panel-layout | |
112 | %{_libexecdir}/mate-tweak/mate-panel-backup | |
113 | %{_libexecdir}/mate-tweak/mate-tweak.ui | |
114 | ||
115 | %dir %{_datadir}/mate-tweak | |
116 | %{_datadir}/mate-tweak/mate-volume-control-applet.desktop | |
117 | ||
30202ebd | 118 | %dir %{_datadir}/mate/applications |
8128bc9f ER |
119 | %{_datadir}/mate/applications/marco-compton.desktop |
120 | %{_datadir}/mate/applications/marco-no-composite.desktop | |
121 | %{_datadir}/mate/applications/marco-xcompmgr.desktop | |
122 | %{_datadir}/mate/applications/metacity-compton.desktop | |
123 | %{_datadir}/mate/applications/metacity-no-composite.desktop | |
124 | %{_datadir}/mate/applications/metacity-xcompmgr.desktop | |
125 | ||
d7f44c12 | 126 | %{py3_sitescriptdir}/mate_tweak-%{version}-py*.egg-info |