1 |
%define url_ver %(echo %{version}|cut -d. -f1,2) |
2 |
%define major 1 |
3 |
%define slab_major 0 |
4 |
%define libname %mklibname mate-window-settings %{major} |
5 |
%define libslabname %mklibname slab %{slab_major} |
6 |
%define develname %mklibname -d mate-window-settings |
7 |
|
8 |
Summary: MATE control center |
9 |
Name: mate-control-center |
10 |
Version: 1.8.3 |
11 |
Release: %mkrel 1 |
12 |
License: GPLv2+ |
13 |
Group: Graphical desktop/MATE |
14 |
URL: http://mate-desktop.org |
15 |
Source0: http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz |
16 |
# (fc) display icons when control-center is not started from MATE (Mdk bug #16767) |
17 |
Patch0: gnome-control-center-2.27.90-menulocation.patch |
18 |
# (fc) force default dpi to 96, don't use X server value |
19 |
Patch1: gnome-control-center-2.23.6-forcedpi.patch |
20 |
# (fc) fix markup (GNOME bug #597006) (Fedora) |
21 |
Patch2: gnome-control-center-2.31.91-fix-markup.patch |
22 |
|
23 |
BuildRequires: itstool |
24 |
BuildRequires: mate-common |
25 |
BuildRequires: xsltproc |
26 |
BuildRequires: pkgconfig(dbus-glib-1) |
27 |
BuildRequires: pkgconfig(gdk-pixbuf-2.0) |
28 |
BuildRequires: pkgconfig(glib-2.0) |
29 |
BuildRequires: pkgconfig(gstreamer-0.10) |
30 |
BuildRequires: pkgconfig(gtk+-2.0) |
31 |
BuildRequires: pkgconfig(libcanberra-gtk) |
32 |
BuildRequires: pkgconfig(libmarco-private) >= 1.8.2 |
33 |
BuildRequires: pkgconfig(libmate-menu) |
34 |
BuildRequires: pkgconfig(libmatekbd) |
35 |
BuildRequires: pkgconfig(libnotify) |
36 |
BuildRequires: pkgconfig(mate-desktop-2.0) |
37 |
BuildRequires: pkgconfig(mate-settings-daemon) |
38 |
BuildRequires: pkgconfig(librsvg-2.0) |
39 |
BuildRequires: pkgconfig(pango) |
40 |
BuildRequires: pkgconfig(sm) |
41 |
BuildRequires: pkgconfig(unique-1.0) |
42 |
BuildRequires: pkgconfig(xxf86misc) |
43 |
BuildRequires: pkgconfig(xscrnsaver) |
44 |
BuildRequires: pkgconfig(dconf) >= 0.10 |
45 |
BuildRequires: gsettings-desktop-schemas-devel |
46 |
BuildRequires: desktop-file-utils |
47 |
|
48 |
Requires: mate-settings-daemon >= 1.7.0 |
49 |
Requires: gnome-keyring |
50 |
Requires: %{libname} = %{version}-%{release} |
51 |
Obsoletes: mate-control-center < 1.7.0 |
52 |
Conflicts: mate-control-center < 1.7.0 |
53 |
|
54 |
Requires(post): desktop-file-utils |
55 |
Requires(postun): desktop-file-utils |
56 |
|
57 |
%description |
58 |
MATE Control-center is a configuration tool for easily |
59 |
setting up your MATE environment. |
60 |
|
61 |
%package -n %{libname} |
62 |
Summary: %{summary} |
63 |
Group: System/Libraries |
64 |
Provides: libmate-window-settings = %{version}-%{release} |
65 |
Obsoletes: mate-control-center < 1.7.0 |
66 |
Conflicts: mate-control-center < 1.7.0 |
67 |
|
68 |
%description -n %{libname} |
69 |
Dynamic libraries used by MATE Control Center |
70 |
|
71 |
%package -n %{libslabname} |
72 |
Summary: %{summary} |
73 |
Group: System/Libraries |
74 |
|
75 |
%description -n %{libslabname} |
76 |
Dynamic libraries used by MATE Control Center |
77 |
|
78 |
%package -n %{develname} |
79 |
Summary: Static libraries, include files for MATE control center |
80 |
Group: Development/C |
81 |
Provides: %{name}-devel = %{version}-%{release} |
82 |
Requires: %{libname} = %{version}-%{release} |
83 |
Requires: %{libslabname} = %{version}-%{release} |
84 |
|
85 |
%description -n %{develname} |
86 |
Static libraries, include files for MATE Control Center |
87 |
|
88 |
%prep |
89 |
%autosetup -p1 |
90 |
|
91 |
%build |
92 |
%configure2_5x \ |
93 |
--disable-static \ |
94 |
--disable-schemas-compile \ |
95 |
--disable-update-mimedb \ |
96 |
--disable-scrollkeeper |
97 |
|
98 |
%make |
99 |
|
100 |
%install |
101 |
%makeinstall_std |
102 |
|
103 |
find %{buildroot}%{_libdir} -type f -name "*.la" -delete |
104 |
|
105 |
rm -f %{buildroot}%{_datadir}/applications/mimeinfo.cache |
106 |
|
107 |
%{find_lang} %{name} --with-gnome --all-name |
108 |
|
109 |
mkdir -p %{buildroot}%{_datadir}/mate-background-properties |
110 |
|
111 |
#remove unneeded mateconf file |
112 |
rm -fr %{buildroot}%{_datadir}/MateConf |
113 |
|
114 |
%files -f %{name}.lang |
115 |
%doc AUTHORS NEWS README |
116 |
%config(noreplace) %{_sysconfdir}/xdg/menus/matecc.menu |
117 |
%{_bindir}/mate-control-center |
118 |
%{_bindir}/mate-font-viewer |
119 |
%{_bindir}/mate-thumbnail-font |
120 |
%{_bindir}/mate-about-me |
121 |
%{_bindir}/mate-window-properties |
122 |
%{_bindir}/mate-network-properties |
123 |
%{_bindir}/mate-mouse-properties |
124 |
%{_bindir}/mate-keybinding-properties |
125 |
%{_bindir}/mate-keyboard-properties |
126 |
%{_bindir}/mate-display-properties |
127 |
%{_bindir}/mate-default-applications-properties |
128 |
%{_bindir}/mate-appearance-properties |
129 |
%{_bindir}/mate-at-properties |
130 |
%{_bindir}/mate-typing-monitor |
131 |
%{_sbindir}/mate-display-properties-install-systemwide |
132 |
%{_datadir}/polkit-1/actions/org.mate.randr.policy |
133 |
%{_iconsdir}/hicolor/*/*/* |
134 |
%{_datadir}/mate-background-properties |
135 |
%{_datadir}/applications/*.desktop |
136 |
%{_datadir}/desktop-directories/* |
137 |
%{_datadir}/mate-control-center/ |
138 |
%{_datadir}/glib-2.0/schemas/org.mate.control-center.gschema.xml |
139 |
%{_datadir}/glib-2.0/schemas/org.mate.control-center.keybinding.gschema.xml |
140 |
%dir %{_datadir}/mate/cursor-fonts/ |
141 |
%{_datadir}/mate/cursor-fonts/* |
142 |
%{_datadir}/mime/packages/mate-theme-package.xml |
143 |
%{_datadir}/help/*/mate-control-center |
144 |
%{_datadir}/thumbnailers/mate-font-viewer.thumbnailer |
145 |
%{_datadir}/man/man1/* |
146 |
|
147 |
%files -n %{libname} |
148 |
%{_libdir}/libmate-window-settings.so.%{major}* |
149 |
%{_libdir}/window-manager-settings/libmarco.so |
150 |
|
151 |
%files -n %{libslabname} |
152 |
%{_libdir}/libslab.so.%{slab_major} |
153 |
%{_libdir}/libslab.so.%{slab_major}.* |
154 |
|
155 |
%files -n %{develname} |
156 |
%doc ChangeLog |
157 |
%{_libdir}/libmate-window-settings.so |
158 |
%{_libdir}/libslab.so |
159 |
%{_libdir}/pkgconfig/* |
160 |
%dir %{_includedir}/mate-window-settings-2.0 |
161 |
%{_includedir}/mate-window-settings-2.0/* |
162 |
%dir %{_includedir}/libslab |
163 |
%{_includedir}/libslab/* |