1 |
joequant |
563792 |
%global _internal_version 0048c84 |
2 |
|
|
%define date 20131125 |
3 |
joequant |
321289 |
|
4 |
|
|
Name: cinnamon |
5 |
joequant |
563792 |
Version: 2.0.14 |
6 |
joequant |
564206 |
Release: %mkrel 3 |
7 |
joequant |
476700 |
Summary: Window management and application launching for Cinnamon |
8 |
joequant |
321289 |
|
9 |
joequant |
476700 |
Group: Graphical desktop/Cinnamon |
10 |
joequant |
321289 |
# cinnamon-menu-editor is LGPLv2+ |
11 |
|
|
License: GPLv2+ and LGPLv2+ |
12 |
|
|
URL: http://cinnamon.linuxmint.com |
13 |
|
|
# To generate tarball |
14 |
joequant |
474263 |
|
15 |
joequant |
490027 |
Source0: %{name}-%{version}.tar.gz |
16 |
joequant |
490051 |
#SourceGet0: https://github.com/linuxmint/Cinnamon/archive/%{version}.tar.gz |
17 |
|
|
|
18 |
|
|
#Source0: %{name}-%{version}.git%{_internal_version}.tar.gz |
19 |
|
|
##SourceGet0: https://github.com/linuxmint/Cinnamon/tarball/%{_internal_version} |
20 |
joequant |
476700 |
Source1: cinnamon-mageia.gschema.override |
21 |
joequant |
564154 |
Source3: polkit-cinnamon-authentication-agent-1.desktop |
22 |
joequant |
321289 |
Source5: 10cinnamon |
23 |
|
|
Source6: 11cinnamon2d |
24 |
|
|
|
25 |
joequant |
564154 |
# from fedora |
26 |
joequant |
470204 |
Patch0: background.patch |
27 |
joequant |
564154 |
Patch1: autostart.patch |
28 |
joequant |
564206 |
#Fix translation bug - been reported upstream as pull #2789 |
29 |
joequant |
564154 |
Patch2: cinnamon-2.0.14-mga-menu-localization.patch |
30 |
joequant |
564206 |
#Fix icon menu bug |
31 |
|
|
Patch3: cinnamon-2.0.14-mga-icon-menu-fix.patch |
32 |
joequant |
321289 |
|
33 |
|
|
%global clutter_version 1.7.5 |
34 |
|
|
%global gobject_introspection_version 0.10.1 |
35 |
joequant |
490027 |
%global muffin_version 1.9.1 |
36 |
joequant |
321289 |
%global eds_version 2.91.6 |
37 |
|
|
%global json_glib_version 0.13.2 |
38 |
joequant |
470787 |
%global polkit_version 0.100 |
39 |
joequant |
321289 |
|
40 |
joequant |
470780 |
BuildRequires: pkgconfig(clutter-x11-1.0) >= %{clutter_version} |
41 |
|
|
BuildRequires: pkgconfig(dbus-glib-1) |
42 |
joequant |
321289 |
BuildRequires: desktop-file-utils |
43 |
|
|
BuildRequires: glib2-devel |
44 |
joequant |
470780 |
BuildRequires: pkgconfig(gconf-2.0) |
45 |
|
|
BuildRequires: pkgconfig(libgnome-menu-3.0) >= 3.1.5-2.fc16 |
46 |
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= %{gobject_introspection_version} |
47 |
joequant |
321289 |
BuildRequires: pkgconfig(json-glib-1.0) >= %{json_glib_version} |
48 |
|
|
BuildRequires: pkgconfig(libnm-glib) |
49 |
joequant |
470787 |
BuildRequires: pkgconfig(libnm-util) |
50 |
|
|
BuildRequires: pkgconfig(polkit-agent-1) >= %{polkit_version} |
51 |
joequant |
321289 |
BuildRequires: libgudev-devel |
52 |
|
|
# for screencast recorder functionality |
53 |
|
|
BuildRequires: pkgconfig(gstreamer-1.0) |
54 |
joequant |
470780 |
BuildRequires: pkgconfig(gtk+-3.0) |
55 |
joequant |
321289 |
BuildRequires: intltool |
56 |
joequant |
470780 |
BuildRequires: pkgconfig(libcanberra) |
57 |
joequant |
470787 |
BuildRequires: pkgconfig(libcroco-0.6) >= 0.6.2 |
58 |
joequant |
470780 |
BuildRequires: pkgconfig(gnome-keyring-1) |
59 |
|
|
BuildRequires: pkgconfig(libsoup-2.4) |
60 |
joequant |
321289 |
BuildRequires: pkgconfig(libnm-glib-vpn) |
61 |
joequant |
470780 |
BuildRequires: pkgconfig(libstartup-notification-1.0) |
62 |
joequant |
321289 |
|
63 |
|
|
# for barriers |
64 |
joequant |
470780 |
BuildRequires: pkgconfig(xfixes) >= 5.0 |
65 |
joequant |
321289 |
# used in unused BigThemeImage |
66 |
|
|
BuildRequires: librsvg2-devel |
67 |
joequant |
470780 |
BuildRequires: pkgconfig(libmuffin) >= %{muffin_version} |
68 |
joequant |
321289 |
BuildRequires: libpulseaudio-devel |
69 |
|
|
BuildRequires: gnome-bluetooth-devel >= 2.91 |
70 |
|
|
BuildRequires: gnome-bluetooth >= 2.91 |
71 |
|
|
# Bootstrap requirements |
72 |
|
|
BuildRequires: gtk-doc gnome-common |
73 |
joequant |
470204 |
|
74 |
|
|
BuildRequires: pkgconfig(libwacom) |
75 |
|
|
BuildRequires: pkgconfig(xorg-wacom) |
76 |
|
|
BuildRequires: pkgconfig(xtst) |
77 |
joequant |
470780 |
BuildRequires: pkgconfig(gio-2.0) |
78 |
|
|
BuildRequires: pkgconfig(gio-unix-2.0) |
79 |
|
|
BuildRequires: pkgconfig(libxml-2.0) |
80 |
|
|
BuildRequires: pkgconfig(gdk-x11-3.0) |
81 |
joequant |
470783 |
BuildRequires: pkgconfig(cjs-internals-1.0) |
82 |
joequant |
470787 |
BuildRequires: pkgconfig(gnome-desktop-3.0) >= 2.90.0 |
83 |
|
|
BuildRequires: pkgconfig(x11) |
84 |
joequant |
563792 |
BuildRequires: pkgconfig(cinnamon-desktop) >= 2.0.4 |
85 |
joequant |
470204 |
|
86 |
joequant |
434268 |
Requires: gnome-menus >= 3.0.0-2 |
87 |
joequant |
321289 |
# wrapper script uses to restart old GNOME session if run --replace |
88 |
|
|
# from the command line |
89 |
joequant |
434268 |
Requires: gobject-introspection >= %{gobject_introspection_version} |
90 |
joequant |
321289 |
# needed for loading SVG's via gdk-pixbuf |
91 |
|
|
#Requires: librsvg2%{?_isa} |
92 |
|
|
# needed as it is now split from Clutter |
93 |
joequant |
434268 |
Requires: json-glib >= %{json_glib_version} |
94 |
joequant |
321289 |
# might be still be needed. |
95 |
joequant |
434268 |
Requires: muffin >= %{muffin_version} |
96 |
|
|
Requires: upower |
97 |
|
|
Requires: polkit >= 0.100 |
98 |
joequant |
321289 |
# needed for session files |
99 |
joequant |
470204 |
# cinnamon-session version fixes location of helper app |
100 |
|
|
Requires: cinnamon-session |
101 |
joequant |
321289 |
# needed for schemas |
102 |
|
|
Requires: at-spi2-atk |
103 |
|
|
# needed for on-screen keyboard |
104 |
joequant |
434268 |
Requires: caribou |
105 |
joequant |
321289 |
# needed for settings |
106 |
|
|
Requires: python-gobject |
107 |
|
|
Requires: dbus-python |
108 |
|
|
Requires: nautilus |
109 |
|
|
Requires: python-lxml |
110 |
|
|
Requires: gnome-python-gconf |
111 |
|
|
Requires: python-imaging |
112 |
joequant |
471493 |
Requires: python-pam |
113 |
|
|
Requires: python-pexpect |
114 |
|
|
Requires: python-pillow |
115 |
|
|
Requires: cinnamon-control-center |
116 |
|
|
Requires: cinnamon-screensaver |
117 |
joequant |
474263 |
Requires: cinnamon-translations |
118 |
joequant |
463340 |
# fix 10916 |
119 |
|
|
Requires: gnome-themes-standard |
120 |
joequant |
468766 |
# fix cinnamon startup crashes |
121 |
|
|
Requires: typelib(fontconfig) |
122 |
joequant |
471459 |
# include cjs introspection |
123 |
|
|
Requires: cjs |
124 |
joequant |
564154 |
# Mate polkit |
125 |
|
|
Requires: mate-polkit |
126 |
joequant |
468766 |
|
127 |
joequant |
559926 |
# cinnamon handles notifications natively, no notification-daemon needed |
128 |
|
|
Provides: virtual-notification-daemon |
129 |
|
|
# and ditto for polkit authorisation dialogs |
130 |
|
|
Provides: polkit-agent |
131 |
|
|
|
132 |
joequant |
321289 |
%description |
133 |
|
|
Cinnamon is a Linux desktop which provides advanced |
134 |
|
|
innovative features and a traditional user experience. |
135 |
|
|
|
136 |
|
|
The desktop layout is similar to Gnome 2. |
137 |
|
|
The underlying technology is forked from Gnome Shell. |
138 |
|
|
The emphasis is put on making users feel at home and providing |
139 |
|
|
them with an easy to use and comfortable desktop experience. |
140 |
|
|
|
141 |
|
|
%prep |
142 |
joequant |
490051 |
%setup -q -n Cinnamon-%{version} |
143 |
joequant |
433852 |
%patch0 -p1 |
144 |
joequant |
564154 |
%patch1 -p1 |
145 |
|
|
%patch2 -p1 |
146 |
joequant |
564206 |
%patch3 -p1 |
147 |
joequant |
474263 |
|
148 |
joequant |
321289 |
# remove gschema |
149 |
|
|
rm -rf data/org.cinnamon.gschema.xml |
150 |
|
|
# make changes for settings move to /usr/share |
151 |
|
|
mv files/usr/lib/cinnamon-settings files%{_datadir} |
152 |
joequant |
434438 |
grep -r -l /usr/lib/cinnamon-settings files%{_datadir} files%{_bindir} | \ |
153 |
|
|
xargs sed -i -e 's@/usr/lib@/usr/share@g' |
154 |
|
|
sed -i -e 's@/usr/lib@/usr/share@g' js/ui/panel.js cinnamon.pot |
155 |
|
|
|
156 |
joequant |
321289 |
# make changes for menu-editor move to /usr/share |
157 |
|
|
mv files/usr/lib/cinnamon-menu-editor files%{_datadir} |
158 |
joequant |
434438 |
grep -r -l /usr/lib/cinnamon-menu-editor files%{_datadir} files%{_bindir} | \ |
159 |
|
|
xargs sed -i -e 's@/usr/lib@/usr/share@g' |
160 |
joequant |
321289 |
rm -rf files/usr/lib |
161 |
|
|
sed -i -e 's@-OOt@-t@g' files%{_bindir}/cinnamon-menu-editor |
162 |
joequant |
434268 |
|
163 |
|
|
# have cinnamon use mageia app system |
164 |
|
|
sed -i -e 's@cinnamon-applications@applications@g' src/cinnamon-app-system.c \ |
165 |
|
|
files/usr/share/cinnamon-menu-editor/cme/MenuEditor.py |
166 |
|
|
|
167 |
joequant |
321289 |
%{__mkdir_p} files%{_sysconfdir}/X11/wmsession.d |
168 |
|
|
install -pm 644 %SOURCE5 %SOURCE6 files%{_sysconfdir}/X11/wmsession.d |
169 |
joequant |
434268 |
|
170 |
|
|
# files replaced with mageia files |
171 |
|
|
rm -rf files%{_sysconfdir}/xdg |
172 |
joequant |
321289 |
rm -f files%{_datadir}/desktop-directories/cinnamon-{menu-applications,utility,utility-accessibility,development,education,game,graphics,network,audio-video,office,system-tools,other}.directory |
173 |
|
|
|
174 |
|
|
rm -f configure |
175 |
|
|
rm -rf debian/ |
176 |
|
|
|
177 |
|
|
NOCONFIGURE=1 ./autogen.sh |
178 |
|
|
|
179 |
|
|
%build |
180 |
|
|
export CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations" |
181 |
joequant |
476700 |
%configure2_5x \ |
182 |
|
|
--disable-static \ |
183 |
|
|
--disable-rpath \ |
184 |
|
|
--enable-compile-warnings=yes \ |
185 |
|
|
--enable-introspection=yes |
186 |
joequant |
321289 |
%make V=1 |
187 |
|
|
|
188 |
|
|
%install |
189 |
joequant |
434268 |
%makeinstall_std |
190 |
joequant |
321289 |
|
191 |
|
|
# Remove .la file |
192 |
joequant |
434268 |
rm -rf %{buildroot}/%{_libdir}/cinnamon/libcinnamon.la |
193 |
joequant |
321289 |
|
194 |
|
|
|
195 |
joequant |
564154 |
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/glib-2.0/schemas/cinnamon-mageia.gschema.override |
196 |
joequant |
476700 |
|
197 |
joequant |
564154 |
# install polkik autostart desktop file |
198 |
|
|
install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/ |
199 |
|
|
|
200 |
joequant |
434268 |
desktop-file-validate %{buildroot}%{_datadir}/applications/cinnamon.desktop |
201 |
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/cinnamon2d.desktop |
202 |
joequant |
564154 |
desktop-file-validate %{buildroot}%{_datadir}/applications/polkit-cinnamon-authentication-agent-1.desktop |
203 |
joequant |
321289 |
|
204 |
|
|
desktop-file-install \ |
205 |
|
|
--add-category="Utility" \ |
206 |
|
|
--remove-category="DesktopSettings" \ |
207 |
|
|
--remove-key="Encoding" \ |
208 |
|
|
--add-only-show-in="GNOME" \ |
209 |
|
|
--delete-original \ |
210 |
joequant |
434268 |
--dir=%{buildroot}%{_datadir}/applications \ |
211 |
|
|
%{buildroot}%{_datadir}/applications/* |
212 |
joequant |
321289 |
|
213 |
joequant |
496782 |
# fix hard coded path |
214 |
|
|
%ifarch x86_64 |
215 |
|
|
sed -i -e 's@/usr/lib/cinnamon-control-center@/usr/lib64/cinnamon-control-center@g' \ |
216 |
|
|
$RPM_BUILD_ROOT/%{_datadir}/cinnamon-settings/bin/capi.py |
217 |
|
|
%endif |
218 |
|
|
|
219 |
joequant |
321289 |
%find_lang %{name} |
220 |
|
|
%files -f %{name}.lang |
221 |
|
|
%doc COPYING README |
222 |
|
|
%{_bindir}/cinnamon |
223 |
joequant |
398310 |
%{_bindir}/cinnamon-looking-glass |
224 |
joequant |
321289 |
%{_bindir}/cinnamon2d |
225 |
joequant |
470204 |
%{_bindir}/cinnamon-desktop-editor |
226 |
|
|
%{_bindir}/cinnamon-settings-users |
227 |
|
|
%{_bindir}/cinnamon-session-cinnamon |
228 |
|
|
%{_bindir}/cinnamon-session-cinnamon2d |
229 |
joequant |
411935 |
%{_bindir}/cinnamon-launcher |
230 |
joequant |
321289 |
%{_bindir}/cinnamon-menu-editor |
231 |
|
|
%{_bindir}/cinnamon-settings |
232 |
|
|
%{_bindir}/cinnamon-extension-tool |
233 |
joequant |
398310 |
%{_bindir}/cinnamon-screensaver-lock-dialog |
234 |
joequant |
474263 |
%{_bindir}/cinnamon-json-makepot |
235 |
joequant |
321289 |
%{_sysconfdir}/X11/wmsession.d/*cinnamon* |
236 |
|
|
%{_datadir}/desktop-directories/cinnamon-*.directory |
237 |
joequant |
476700 |
%{_datadir}/glib-2.0/schemas/* |
238 |
joequant |
321289 |
%{_datadir}/applications/cinnamon.desktop |
239 |
|
|
%{_datadir}/applications/cinnamon2d.desktop |
240 |
|
|
%{_datadir}/applications/cinnamon-settings.desktop |
241 |
joequant |
470204 |
%{_datadir}/applications/cinnamon-settings-users.desktop |
242 |
joequant |
321289 |
%{_datadir}/applications/cinnamon-add-panel-launcher.desktop |
243 |
|
|
%{_datadir}/applications/cinnamon-menu-editor.desktop |
244 |
joequant |
564154 |
%{_datadir}/applications/polkit-cinnamon-authentication-agent-1.desktop |
245 |
joequant |
321289 |
%{_datadir}/xsessions/cinnamon*.desktop |
246 |
joequant |
470204 |
%{_datadir}/cinnamon-session/sessions/cinnamon*.session |
247 |
joequant |
321289 |
%{_datadir}/cinnamon/ |
248 |
|
|
%{_datadir}/cinnamon-menu-editor/ |
249 |
|
|
%{_datadir}/cinnamon-settings/ |
250 |
|
|
%{_datadir}/dbus-1/services/org.Cinnamon.HotplugSniffer.service |
251 |
|
|
%{_libdir}/cinnamon/ |
252 |
|
|
%{_libexecdir}/cinnamon/cinnamon-perf-helper |
253 |
|
|
%{_libexecdir}/cinnamon/cinnamon-hotplug-sniffer |
254 |
|
|
%{_mandir}/man1/*.1.* |
255 |
|
|
|
256 |
|
|
|