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