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