]>
Commit | Line | Data |
---|---|---|
149a2c97 | 1 | # TODO |
149a2c97 ER |
2 | # - .pcf fonts compress and move to system fonts dir |
3 | # | |
ffa71f56 JB |
4 | # Conditional build: |
5 | %bcond_without appindicator # application indicators support (in mate-typing-monitor) | |
f50e0a90 | 6 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x |
11ef52b0 | 7 | |
aef019ac | 8 | Summary: MATE Desktop control-center |
b6a5a99c | 9 | Summary(pl.UTF-8): Centrum sterowania środowiska MATE Desktop |
aef019ac | 10 | Name: mate-control-center |
53a0a6d5 | 11 | Version: 1.16.1 |
694b3475 JB |
12 | Release: 1 |
13 | License: LGPL v2+ (libmate-slab), GPL v2+ (the rest) | |
5ee653a2 | 14 | Group: X11/Applications |
6e3251d8 | 15 | Source0: http://pub.mate-desktop.org/releases/1.16/%{name}-%{version}.tar.xz |
53a0a6d5 | 16 | # Source0-md5: a5e2ac375961d9c2e998c836139dc023 |
53892f9b | 17 | URL: http://wiki.mate-desktop.org/mate-control-center |
b6a5a99c JB |
18 | BuildRequires: autoconf >= 2.53 |
19 | BuildRequires: automake >= 1:1.9 | |
20 | BuildRequires: dbus-devel | |
53892f9b | 21 | BuildRequires: dbus-glib-devel |
b6a5a99c | 22 | BuildRequires: dconf-devel >= 0.13.4 |
aef019ac | 23 | BuildRequires: desktop-file-utils |
8cea121d | 24 | BuildRequires: docbook-dtd412-xml |
d6f33950 | 25 | BuildRequires: freetype-devel >= 2 |
7bc5e0b2 | 26 | BuildRequires: gettext-tools >= 0.10.40 |
694b3475 | 27 | BuildRequires: glib2-devel >= 1:2.36 |
f50e0a90 JB |
28 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.24.0} |
29 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} | |
d6f33950 | 30 | BuildRequires: intltool >= 0.50.1 |
f2feee18 JB |
31 | %if %{with appindicator} |
32 | %{!?with_gtk3:BuildRequires: libappindicator-gtk2-devel >= 0.0.13} | |
33 | %{?with_gtk3:BuildRequires: libappindicator-gtk3-devel >= 0.0.13} | |
34 | %endif | |
f50e0a90 JB |
35 | %{!?with_gtk3:BuildRequires: libcanberra-gtk-devel} |
36 | %{?with_gtk3:BuildRequires: libcanberra-gtk3-devel} | |
b6a5a99c JB |
37 | BuildRequires: libmatekbd-devel >= 1.1.0 |
38 | BuildRequires: librsvg-devel >= 2.0 | |
39 | BuildRequires: libtool >= 1:1.4.3 | |
f50e0a90 | 40 | %{!?with_gtk3:BuildRequires: libunique-devel} |
694b3475 | 41 | %{?with_gtk3:BuildRequires: libunique3-devel >= 3.0} |
b6a5a99c JB |
42 | BuildRequires: libxklavier-devel >= 4.0 |
43 | BuildRequires: libxml2-devel >= 2.0 | |
f2feee18 | 44 | BuildRequires: marco-devel >= 1.13.1 |
aef019ac | 45 | BuildRequires: mate-common |
f2feee18 | 46 | BuildRequires: mate-desktop-devel >= 1.15.1 |
b6a5a99c | 47 | BuildRequires: mate-menus-devel >= 1.1.0 |
9f91f442 | 48 | BuildRequires: mate-settings-daemon-devel >= 1.13.1 |
b6a5a99c JB |
49 | BuildRequires: pango-devel |
50 | BuildRequires: pkgconfig | |
5ee653a2 | 51 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
aef019ac ER |
52 | BuildRequires: rpmbuild(macros) >= 1.596 |
53 | BuildRequires: tar >= 1:1.22 | |
53892f9b ER |
54 | BuildRequires: xorg-lib-libICE-devel |
55 | BuildRequires: xorg-lib-libSM-devel | |
b6a5a99c | 56 | BuildRequires: xorg-lib-libX11-devel |
53892f9b | 57 | BuildRequires: xorg-lib-libXScrnSaver-devel |
b6a5a99c | 58 | BuildRequires: xorg-lib-libXcursor-devel |
53892f9b | 59 | BuildRequires: xorg-lib-libXext-devel |
b6a5a99c JB |
60 | BuildRequires: xorg-lib-libXft-devel |
61 | BuildRequires: xorg-lib-libXi-devel >= 1.2 | |
53892f9b | 62 | BuildRequires: xorg-lib-libXxf86misc-devel |
aef019ac | 63 | BuildRequires: xz |
ff11c60f | 64 | BuildRequires: yelp-tools |
cb0e71c0 | 65 | Requires: %{name}-libs = %{version}-%{release} |
b6a5a99c | 66 | Requires: dconf >= 0.13.4 |
aef019ac | 67 | Requires: desktop-file-utils |
aef019ac ER |
68 | Requires: gsettings-desktop-schemas |
69 | Requires: gtk-update-icon-cache | |
70 | Requires: hicolor-icon-theme | |
f2feee18 JB |
71 | %if %{with appindicator} |
72 | %{!?with_gtk3:Requires: libappindicator-gtk2 >= 0.0.13} | |
73 | %{?with_gtk3:Requires: libappindicator-gtk3 >= 0.0.13} | |
74 | %endif | |
b6a5a99c JB |
75 | Requires: libmatekbd >= 1.1.0 |
76 | Requires: libxklavier >= 4.0 | |
f2feee18 | 77 | Requires: marco-libs >= 1.13.1 |
aef019ac | 78 | Requires: shared-mime-info |
dc0b6802 | 79 | Conflicts: libfm < 0.1.17-2 |
122f168e | 80 | Conflicts: lxappearance < 0.5.2-2 |
aef019ac ER |
81 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
82 | ||
83 | %description | |
b6a5a99c JB |
84 | MATE Desktop Control Center. The control center is MATE's main |
85 | interface for configuration of various aspects of your desktop. | |
86 | ||
87 | %description -l pl.UTF-8 | |
88 | Centrum sterowania środowiska MATE Desktop. Jest to główny interfejs | |
89 | do konfigurowania różnych aspektów pulpitu. | |
cb0e71c0 ER |
90 | |
91 | %package libs | |
92 | Summary: MATE Control Center libmate-window-settings library | |
b6a5a99c | 93 | Summary(pl.UTF-8): Biblioteka libmate-window-settings centrum sterowania MATE |
cb0e71c0 | 94 | Group: X11/Libraries |
694b3475 | 95 | Requires: glib2 >= 1:2.36 |
f50e0a90 JB |
96 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0} |
97 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
f2feee18 | 98 | Requires: mate-desktop-libs >= 1.15.1 |
b6a5a99c JB |
99 | Requires: mate-menus-libs >= 1.1.0 |
100 | Requires: xorg-lib-libXi >= 1.2 | |
cb0e71c0 ER |
101 | Conflicts: mate-control-center < 1.5.3-2 |
102 | ||
103 | %description libs | |
104 | This package contains libmate-window-settings library. | |
105 | ||
106 | %description libs -l pl.UTF-8 | |
107 | Pakiet ten zawiera bibliotekę libmate-window-settings. | |
aef019ac | 108 | |
aef019ac | 109 | %package devel |
b6a5a99c JB |
110 | Summary: Development files for libmate-window-settings library |
111 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libmate-window-settings | |
aef019ac | 112 | Group: X11/Development/Libraries |
cb0e71c0 | 113 | Requires: %{name}-libs = %{version}-%{release} |
694b3475 | 114 | Requires: glib2-devel >= 1:2.36 |
f50e0a90 JB |
115 | %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.24.0} |
116 | %{?with_gtk3:Requires: gtk+3-devel >= 3.0.0} | |
f2feee18 | 117 | Requires: mate-desktop-devel >= 1.15.1 |
b6a5a99c | 118 | Requires: mate-menus-devel >= 1.1.0 |
aef019ac ER |
119 | |
120 | %description devel | |
b6a5a99c JB |
121 | Development files for libmate-window-settings library. |
122 | ||
123 | %description devel -l pl.UTF-8 | |
124 | Pliki programistyczne biblioteki libmate-window-settings. | |
aef019ac ER |
125 | |
126 | %prep | |
127 | %setup -q | |
128 | ||
129 | %build | |
5ffcb7ba | 130 | %{__intltoolize} |
5ffcb7ba JP |
131 | %{__aclocal} |
132 | %{__autoheader} | |
133 | %{__autoconf} | |
134 | %{__automake} | |
aef019ac | 135 | %configure \ |
ffa71f56 | 136 | %{!?with_appindicator:--disable-appindicator} \ |
aef019ac | 137 | --disable-schemas-compile \ |
b6a5a99c JB |
138 | --disable-silent-rules \ |
139 | --disable-static \ | |
f50e0a90 JB |
140 | --disable-update-mimedb \ |
141 | %{?with_gtk3:--with-gtk=3.0} | |
aef019ac | 142 | |
b6a5a99c | 143 | %{__make} |
aef019ac ER |
144 | |
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | %{__make} install \ | |
148 | DESTDIR=$RPM_BUILD_ROOT | |
149 | ||
b6a5a99c | 150 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
aef019ac | 151 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/window-manager-settings/libmarco.la |
fe89848f | 152 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,jv,pms} |
7c221eb1 | 153 | |
aef019ac ER |
154 | desktop-file-install \ |
155 | --remove-category="MATE" \ | |
156 | --add-category="X-Mate" \ | |
157 | --delete-original \ | |
158 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
b6a5a99c | 159 | $RPM_BUILD_ROOT%{_desktopdir}/*.desktop |
aef019ac ER |
160 | |
161 | # delete mime cache | |
162 | %{__rm} $RPM_BUILD_ROOT%{_desktopdir}/mimeinfo.cache | |
163 | ||
f50e0a90 JB |
164 | # so far (July 2014) it's the only package that ships Valencian variant of GNOME/MATE help |
165 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/help/ca@valencia | |
166 | ||
167 | %find_lang %{name} --with-mate | |
aef019ac ER |
168 | |
169 | %clean | |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | ||
172 | %post | |
aef019ac ER |
173 | %update_desktop_database |
174 | %update_icon_cache hicolor | |
175 | %update_mime_database | |
176 | %glib_compile_schemas | |
177 | ||
178 | %postun | |
aef019ac ER |
179 | %update_desktop_database_postun |
180 | %update_icon_cache hicolor | |
181 | %update_mime_database | |
182 | %glib_compile_schemas | |
183 | ||
cb0e71c0 ER |
184 | %post libs -p /sbin/ldconfig |
185 | %postun libs -p /sbin/ldconfig | |
186 | ||
aef019ac ER |
187 | %files -f %{name}.lang |
188 | %defattr(644,root,root,755) | |
b6a5a99c JB |
189 | %doc AUTHORS ChangeLog NEWS README TODO |
190 | %attr(755,root,root) %{_bindir}/mate-about-me | |
191 | %attr(755,root,root) %{_bindir}/mate-appearance-properties | |
192 | %attr(755,root,root) %{_bindir}/mate-at-properties | |
193 | %attr(755,root,root) %{_bindir}/mate-control-center | |
194 | %attr(755,root,root) %{_bindir}/mate-default-applications-properties | |
195 | %attr(755,root,root) %{_bindir}/mate-display-properties | |
196 | %attr(755,root,root) %{_bindir}/mate-font-viewer | |
197 | %attr(755,root,root) %{_bindir}/mate-keybinding-properties | |
198 | %attr(755,root,root) %{_bindir}/mate-keyboard-properties | |
199 | %attr(755,root,root) %{_bindir}/mate-mouse-properties | |
200 | %attr(755,root,root) %{_bindir}/mate-network-properties | |
201 | %attr(755,root,root) %{_bindir}/mate-thumbnail-font | |
202 | %attr(755,root,root) %{_bindir}/mate-typing-monitor | |
203 | %attr(755,root,root) %{_bindir}/mate-window-properties | |
aef019ac | 204 | %attr(755,root,root) %{_sbindir}/mate-display-properties-install-systemwide |
aef019ac ER |
205 | %dir %{_libdir}/window-manager-settings |
206 | %attr(755,root,root) %{_libdir}/window-manager-settings/libmarco.so | |
b6a5a99c | 207 | %{_sysconfdir}/xdg/menus/matecc.menu |
aef019ac | 208 | %{_datadir}/desktop-directories/matecc.directory |
b6a5a99c JB |
209 | %{_datadir}/glib-2.0/schemas/org.mate.control-center*.gschema.xml |
210 | # cursor fonts referred as builtins in capplets/common/mate-theme-info.c | |
2390cf68 | 211 | %dir %{_datadir}/mate/cursor-fonts |
149a2c97 | 212 | # TODO: maybe .gz, like other fonts in %{_datadir}/fonts/misc/*.pcf.gz? |
2390cf68 | 213 | %{_datadir}/mate/cursor-fonts/*.pcf |
b6a5a99c JB |
214 | %dir %{_datadir}/mate-control-center |
215 | %dir %{_datadir}/mate-control-center/keybindings | |
216 | %{_datadir}/mate-control-center/keybindings/00-multimedia-key.xml | |
217 | %{_datadir}/mate-control-center/keybindings/01-desktop-key.xml | |
218 | %{_datadir}/mate-control-center/pixmaps | |
219 | %{_datadir}/mate-control-center/ui | |
220 | %{_datadir}/mime/packages/mate-theme-package.xml | |
221 | %{_datadir}/thumbnailers/mate-font-viewer.thumbnailer | |
222 | %{_datadir}/polkit-1/actions/org.mate.randr.policy | |
b6a5a99c JB |
223 | %{_desktopdir}/mate-about-me.desktop |
224 | %{_desktopdir}/mate-appearance-properties.desktop | |
4b2b252a | 225 | %{_desktopdir}/mate-at-properties.desktop |
b6a5a99c | 226 | %{_desktopdir}/mate-default-applications-properties.desktop |
4b2b252a | 227 | %{_desktopdir}/mate-display-properties.desktop |
b6a5a99c JB |
228 | %{_desktopdir}/mate-font-viewer.desktop |
229 | %{_desktopdir}/mate-keybinding.desktop | |
4b2b252a | 230 | %{_desktopdir}/mate-keyboard.desktop |
b6a5a99c JB |
231 | %{_desktopdir}/mate-network-properties.desktop |
232 | %{_desktopdir}/mate-settings-mouse.desktop | |
233 | %{_desktopdir}/mate-theme-installer.desktop | |
4b2b252a | 234 | %{_desktopdir}/mate-window-properties.desktop |
b6a5a99c | 235 | %{_desktopdir}/matecc.desktop |
694b3475 JB |
236 | %{_iconsdir}/hicolor/*x*/apps/mate-network-properties.png |
237 | %{_iconsdir}/hicolor/*x*/apps/mate-preferences-desktop-display.png | |
238 | %{_iconsdir}/hicolor/*x*/apps/mate-typing-monitor.png | |
239 | %{_iconsdir}/hicolor/scalable/apps/mate-network-properties.svg | |
240 | %{_iconsdir}/hicolor/scalable/apps/mate-preferences-desktop-display.svg | |
241 | %{_iconsdir}/hicolor/scalable/apps/mate-typing-monitor.svg | |
b6a5a99c JB |
242 | %{_mandir}/man1/mate-about-me.1* |
243 | %{_mandir}/man1/mate-appearance-properties.1* | |
694b3475 JB |
244 | %{_mandir}/man1/mate-at-properties.1* |
245 | %{_mandir}/man1/mate-control-center.1* | |
b6a5a99c | 246 | %{_mandir}/man1/mate-default-applications-properties.1* |
694b3475 JB |
247 | %{_mandir}/man1/mate-display-properties-install-systemwide.1* |
248 | %{_mandir}/man1/mate-display-properties.1* | |
249 | %{_mandir}/man1/mate-font-viewer.1* | |
250 | %{_mandir}/man1/mate-keybinding-properties.1* | |
251 | %{_mandir}/man1/mate-keyboard-properties.1* | |
252 | %{_mandir}/man1/mate-mouse-properties.1* | |
253 | %{_mandir}/man1/mate-network-properties.1* | |
254 | %{_mandir}/man1/mate-thumbnail-font.1* | |
255 | %{_mandir}/man1/mate-typing-monitor.1* | |
256 | %{_mandir}/man1/mate-window-properties.1* | |
2390cf68 | 257 | |
cb0e71c0 ER |
258 | %files libs |
259 | %defattr(644,root,root,755) | |
694b3475 JB |
260 | %attr(755,root,root) %{_libdir}/libmate-slab.so.*.*.* |
261 | %attr(755,root,root) %ghost %{_libdir}/libmate-slab.so.0 | |
7c221eb1 | 262 | %attr(755,root,root) %{_libdir}/libmate-window-settings.so.*.*.* |
b6a5a99c | 263 | %attr(755,root,root) %ghost %{_libdir}/libmate-window-settings.so.1 |
aef019ac ER |
264 | |
265 | %files devel | |
266 | %defattr(644,root,root,755) | |
694b3475 | 267 | %attr(755,root,root) %{_libdir}/libmate-slab.so |
b6a5a99c | 268 | %attr(755,root,root) %{_libdir}/libmate-window-settings.so |
694b3475 | 269 | %{_includedir}/libmate-slab |
aef019ac | 270 | %{_includedir}/mate-window-settings-2.0 |
5ffcb7ba JP |
271 | %{_pkgconfigdir}/mate-default-applications.pc |
272 | %{_pkgconfigdir}/mate-keybindings.pc | |
694b3475 | 273 | %{_pkgconfigdir}/mate-slab.pc |
7c221eb1 | 274 | %{_pkgconfigdir}/mate-window-settings-2.0.pc |