]> git.pld-linux.org Git - packages/mate-tweak.git/blob - mate-tweak.spec
198511e999d89d4847d61964b71daad2472d99c4
[packages/mate-tweak.git] / mate-tweak.spec
1 # TODO
2 # - ubuntu specific multiarch paths for indicators
3 Summary:        MATE desktop tweak tool
4 Summary(pl.UTF-8):      Narzędzie do dostrajania środowiska MATE
5 Name:           mate-tweak
6 Version:        16.10.4
7 Release:        3
8 License:        GPL v2+
9 Group:          X11/Applications
10 Source0:        https://bitbucket.org/ubuntu-mate/mate-tweak/get/%{version}.tar.gz?/%{name}-%{version}.tar.gz
11 # Source0-md5:  1fbfcb3523c98cc4342c61f3f1130dd2
12 Patch0:         %{name}-use-matemenu.patch
13 URL:            https://bitbucket.org/ubuntu-mate/mate-tweak
14 BuildRequires:  gobject-introspection-devel
15 BuildRequires:  intltool
16 BuildRequires:  python3-distutils-extra
17 BuildRequires:  python3-modules >= 1:3.2
18 BuildRequires:  python3-setuptools
19 BuildRequires:  rpm-pythonprov
20 BuildRequires:  rpmbuild(macros) >= 1.714
21 BuildRequires:  sed >= 4.0
22 #Requires:      Mesa-demo-x
23 Requires:       dconf
24 Requires:       gobject-introspection
25 Requires:       gtk+3 >= 3.0
26 Requires:       libnotify >= 0.7
27 Requires:       mate-panel
28 Requires:       python3-configobj
29 Requires:       python3-psutil
30 Requires:       python3-pygobject3 >= 3.0
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
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
56 %prep
57 %setup -qc
58 %{__mv} ubuntu-mate-mate-tweak-*/* .
59 %patch0 -p1
60
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
64 %build
65 %py3_build
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %py3_install
71
72 # Give gi-find-deps.sh a bait.
73 #ln -s %{_bindir}/%{name} $RPM_BUILD_ROOT%{_libexecdir}/%{name}/%{name}.py
74
75 # es_419,zh-Hans are bogus
76 # frp,jv,ku_IQ,nah,nqo,pms,sco,tpi not supported by glibc
77 # ur_PK an ampty version or ur
78 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_419,frp,jv,ku_IQ,nah,nqo,pms,sco,tpi,ur_PK,zh-Hans}
79
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
118 %dir %{_datadir}/mate/applications
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
126 %{py3_sitescriptdir}/mate_tweak-%{version}-py*.egg-info
This page took 0.058445 seconds and 2 git commands to generate.