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