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