]>
Commit | Line | Data |
---|---|---|
aef019ac ER |
1 | Summary: MATE Desktop control-center |
2 | Name: mate-control-center | |
c830fbc2 | 3 | Version: 1.5.5 |
984d1310 | 4 | Release: 1 |
53892f9b | 5 | License: LGPL v2+ and GPL v2+ |
5ee653a2 | 6 | Group: X11/Applications |
aef019ac | 7 | Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz |
c830fbc2 | 8 | # Source0-md5: ea05c8c897bc2ce06297a617e5e6de13 |
53892f9b ER |
9 | URL: http://wiki.mate-desktop.org/mate-control-center |
10 | BuildRequires: dbus-glib-devel | |
11 | BuildRequires: dconf-devel | |
aef019ac | 12 | BuildRequires: desktop-file-utils |
53892f9b ER |
13 | BuildRequires: gsettings-desktop-schemas-devel |
14 | BuildRequires: gtk+2-devel | |
aef019ac | 15 | BuildRequires: icon-naming-utils |
53892f9b ER |
16 | BuildRequires: libcanberra-devel |
17 | BuildRequires: libmatekbd-devel | |
53892f9b ER |
18 | BuildRequires: librsvg-devel |
19 | BuildRequires: libunique-devel | |
20 | BuildRequires: libxklavier-devel | |
aef019ac | 21 | BuildRequires: mate-common |
53892f9b ER |
22 | BuildRequires: mate-desktop-devel |
23 | BuildRequires: mate-doc-utils | |
24 | BuildRequires: mate-menus-devel | |
25 | BuildRequires: mate-settings-daemon-devel | |
26 | BuildRequires: mate-window-manager-devel | |
27 | BuildRequires: nss-devel | |
28 | BuildRequires: polkit-devel | |
5ee653a2 | 29 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
aef019ac ER |
30 | BuildRequires: rpmbuild(macros) >= 1.596 |
31 | BuildRequires: tar >= 1:1.22 | |
53892f9b ER |
32 | BuildRequires: xorg-lib-libICE-devel |
33 | BuildRequires: xorg-lib-libSM-devel | |
34 | BuildRequires: xorg-lib-libXScrnSaver-devel | |
35 | BuildRequires: xorg-lib-libXext-devel | |
36 | BuildRequires: xorg-lib-libXxf86misc-devel | |
37 | BuildRequires: xorg-lib-libxkbfile-devel | |
aef019ac | 38 | BuildRequires: xz |
cb0e71c0 | 39 | Requires: %{name}-libs = %{version}-%{release} |
aef019ac ER |
40 | Requires: desktop-file-utils |
41 | Requires: glib2 >= 1:2.26.0 | |
42 | Requires: gsettings-desktop-schemas | |
43 | Requires: gtk-update-icon-cache | |
44 | Requires: hicolor-icon-theme | |
45 | Requires: shared-mime-info | |
aef019ac ER |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
cb0e71c0 ER |
49 | MATE Desktop Control Center. |
50 | ||
51 | %package libs | |
52 | Summary: MATE Control Center libmate-window-settings library | |
53 | Summary(pl.UTF-8): Biblioteka Control Center libmate-window-settings | |
54 | Group: X11/Libraries | |
55 | Conflicts: mate-control-center < 1.5.3-2 | |
56 | ||
57 | %description libs | |
58 | This package contains libmate-window-settings library. | |
59 | ||
60 | %description libs -l pl.UTF-8 | |
61 | Pakiet ten zawiera bibliotekę libmate-window-settings. | |
aef019ac | 62 | |
aef019ac ER |
63 | %package devel |
64 | Summary: Development files for mate-settings-daemon | |
65 | Group: X11/Development/Libraries | |
cb0e71c0 | 66 | Requires: %{name}-libs = %{version}-%{release} |
aef019ac ER |
67 | |
68 | %description devel | |
69 | Development files for mate-control-center | |
70 | ||
71 | %prep | |
72 | %setup -q | |
73 | ||
74 | %build | |
75 | NOCONFIGURE=1 ./autogen.sh | |
76 | %configure \ | |
77 | --with-html-dir=%{_gtkdocdir} \ | |
78 | --disable-static \ | |
79 | --disable-schemas-compile \ | |
80 | --disable-update-mimedb \ | |
81 | --disable-scrollkeeper | |
82 | ||
83 | %{__make} \ | |
84 | V=1 | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmate-window-settings.la | |
92 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libslab.la | |
93 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/window-manager-settings/libmarco.la | |
94 | ||
7c221eb1 ER |
95 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf |
96 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-control-center.convert | |
97 | ||
aef019ac ER |
98 | desktop-file-install \ |
99 | --remove-category="MATE" \ | |
100 | --add-category="X-Mate" \ | |
101 | --delete-original \ | |
102 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
103 | $RPM_BUILD_ROOT%{_desktopdir}/*.desktop | |
104 | ||
105 | # delete mime cache | |
106 | %{__rm} $RPM_BUILD_ROOT%{_desktopdir}/mimeinfo.cache | |
107 | ||
5ee653a2 | 108 | %find_lang %{name} --with-mate --with-omf --all-name |
aef019ac ER |
109 | |
110 | %clean | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %post | |
aef019ac ER |
114 | %update_desktop_database |
115 | %update_icon_cache hicolor | |
116 | %update_mime_database | |
117 | %glib_compile_schemas | |
118 | ||
119 | %postun | |
aef019ac ER |
120 | %update_desktop_database_postun |
121 | %update_icon_cache hicolor | |
122 | %update_mime_database | |
123 | %glib_compile_schemas | |
124 | ||
cb0e71c0 ER |
125 | %post libs -p /sbin/ldconfig |
126 | %postun libs -p /sbin/ldconfig | |
127 | ||
aef019ac ER |
128 | %files -f %{name}.lang |
129 | %defattr(644,root,root,755) | |
130 | %doc AUTHORS COPYING README | |
131 | %{_sysconfdir}/xdg/menus/matecc.menu | |
132 | %attr(755,root,root) %{_bindir}/mate-* | |
133 | %attr(755,root,root) %{_sbindir}/mate-display-properties-install-systemwide | |
aef019ac ER |
134 | %dir %{_libdir}/window-manager-settings |
135 | %attr(755,root,root) %{_libdir}/window-manager-settings/libmarco.so | |
136 | %{_desktopdir}/*.desktop | |
137 | %{_datadir}/desktop-directories/matecc.directory | |
2390cf68 | 138 | %{_iconsdir}/hicolor/*/apps/*.* |
aef019ac ER |
139 | %{_datadir}/glib-2.0/schemas/org.mate.*.xml |
140 | %{_datadir}/mate-control-center | |
aef019ac ER |
141 | %{_datadir}/mime/packages/mate-theme-package.xml |
142 | %{_datadir}/thumbnailers/mate-font-viewer.thumbnailer | |
aef019ac ER |
143 | %{_datadir}/polkit-1/actions/org.mate.randr.policy |
144 | ||
2390cf68 ER |
145 | # referred as builtins in capplets/common/mate-theme-info.c |
146 | # http://git.gnome.org/browse/gnome-control-center/tree/capplets/common/gnome-theme-info.c?id=GNOME_CONTROL_CENTER_2_32_1 | |
147 | %dir %{_datadir}/mate/cursor-fonts | |
cb0e71c0 | 148 | # TODO: maybe .gzlike other fonts in %{_datadir}/fonts/misc/*.pcf.gz? |
2390cf68 ER |
149 | %{_datadir}/mate/cursor-fonts/*.pcf |
150 | ||
cb0e71c0 ER |
151 | %files libs |
152 | %defattr(644,root,root,755) | |
7c221eb1 ER |
153 | %attr(755,root,root) %{_libdir}/libmate-window-settings.so.*.*.* |
154 | %ghost %{_libdir}/libmate-window-settings.so.1 | |
aef019ac ER |
155 | %attr(755,root,root) %{_libdir}/libslab.so.*.*.* |
156 | %ghost %{_libdir}/libslab.so.0 | |
157 | ||
158 | %files devel | |
159 | %defattr(644,root,root,755) | |
7c221eb1 | 160 | %{_includedir}/libslab |
aef019ac | 161 | %{_includedir}/mate-window-settings-2.0 |
7c221eb1 ER |
162 | %{_libdir}/libmate-window-settings.so |
163 | %{_libdir}/libslab.so | |
aef019ac ER |
164 | %{_npkgconfigdir}/mate-default-applications.pc |
165 | %{_npkgconfigdir}/mate-keybindings.pc | |
aef019ac | 166 | %{_pkgconfigdir}/libslab.pc |
7c221eb1 | 167 | %{_pkgconfigdir}/mate-window-settings-2.0.pc |