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