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