1 |
joequant |
448000 |
%global _internal_version 32a2a5c |
2 |
joequant |
321289 |
|
3 |
|
|
Name: cinnamon |
4 |
joequant |
448000 |
Version: 1.9.1 |
5 |
joequant |
460897 |
Release: %mkrel 2 |
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 |
400111 |
Source: cinnamon-%{version}.tar.gz |
15 |
joequant |
321289 |
Source5: 10cinnamon |
16 |
|
|
Source6: 11cinnamon2d |
17 |
|
|
|
18 |
joequant |
433852 |
Patch0: cinnamon-gnome3.8-1888.patch |
19 |
joequant |
434268 |
#Patch1: cinnamon-1.5.0_datetime_setting.patch |
20 |
joequant |
321289 |
|
21 |
joequant |
460897 |
# From https://github.com/linuxmint/Cinnamon/pull/2131 |
22 |
|
|
# https://github.com/leigh123linux/Cinnamon/commit/914d7da.patch |
23 |
|
|
Patch1: cinnamon-1.9.1-mga-mozjs17-build.patch |
24 |
|
|
|
25 |
joequant |
321289 |
%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 |
|
|
BuildRequires: clutter-devel >= %{clutter_version} |
33 |
|
|
BuildRequires: dbus-glib-devel |
34 |
|
|
BuildRequires: desktop-file-utils |
35 |
|
|
BuildRequires: gjs-devel >= 0.7.14-6 |
36 |
|
|
BuildRequires: glib2-devel |
37 |
|
|
BuildRequires: libGConf2-devel |
38 |
|
|
BuildRequires: gnome-menus-devel >= 3.1.5-2.fc16 |
39 |
|
|
BuildRequires: gnome-desktop3-devel |
40 |
|
|
BuildRequires: gobject-introspection >= %{gobject_introspection_version} |
41 |
|
|
BuildRequires: pkgconfig(json-glib-1.0) >= %{json_glib_version} |
42 |
|
|
BuildRequires: upower-devel |
43 |
|
|
BuildRequires: pkgconfig(libnm-glib) |
44 |
|
|
BuildRequires: polkit-1-devel |
45 |
|
|
BuildRequires: libgudev-devel |
46 |
|
|
# for screencast recorder functionality |
47 |
|
|
BuildRequires: pkgconfig(gstreamer-1.0) |
48 |
|
|
BuildRequires: gtk+3-devel |
49 |
|
|
BuildRequires: intltool |
50 |
|
|
BuildRequires: libcanberra-devel |
51 |
|
|
BuildRequires: libcroco-devel |
52 |
|
|
BuildRequires: libgnome-keyring-devel |
53 |
|
|
BuildRequires: libsoup-devel |
54 |
|
|
BuildRequires: pkgconfig(libnm-glib-vpn) |
55 |
|
|
|
56 |
|
|
|
57 |
|
|
# for barriers |
58 |
|
|
BuildRequires: libxfixes-devel >= 5.0 |
59 |
|
|
# used in unused BigThemeImage |
60 |
|
|
BuildRequires: librsvg2-devel |
61 |
|
|
BuildRequires: muffin-devel >= %{muffin_version} |
62 |
|
|
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 |
434268 |
Requires: gnome-menus >= 3.0.0-2 |
68 |
joequant |
321289 |
# wrapper script uses to restart old GNOME session if run --replace |
69 |
|
|
# from the command line |
70 |
joequant |
434268 |
Requires: gobject-introspection >= %{gobject_introspection_version} |
71 |
joequant |
321289 |
# needed for loading SVG's via gdk-pixbuf |
72 |
|
|
#Requires: librsvg2%{?_isa} |
73 |
|
|
# needed as it is now split from Clutter |
74 |
joequant |
434268 |
Requires: json-glib >= %{json_glib_version} |
75 |
joequant |
321289 |
# might be still be needed. |
76 |
joequant |
434268 |
Requires: muffin >= %{muffin_version} |
77 |
|
|
Requires: upower |
78 |
|
|
Requires: polkit >= 0.100 |
79 |
joequant |
321289 |
# needed for session files |
80 |
joequant |
341165 |
# gnome-session version fixes location of helper app |
81 |
|
|
Requires: gnome-session >= 3.6.2-2.mga3 |
82 |
joequant |
321289 |
# needed for schemas |
83 |
|
|
Requires: at-spi2-atk |
84 |
|
|
# needed for on-screen keyboard |
85 |
joequant |
434268 |
Requires: caribou |
86 |
joequant |
321289 |
# needed for settings |
87 |
|
|
Requires: python-gobject |
88 |
|
|
Requires: dbus-python |
89 |
|
|
Requires: nautilus |
90 |
|
|
Requires: python-lxml |
91 |
|
|
Requires: gnome-python-gconf |
92 |
|
|
Requires: python-imaging |
93 |
|
|
|
94 |
|
|
%description |
95 |
|
|
Cinnamon is a Linux desktop which provides advanced |
96 |
|
|
innovative features and a traditional user experience. |
97 |
|
|
|
98 |
|
|
The desktop layout is similar to Gnome 2. |
99 |
|
|
The underlying technology is forked from Gnome Shell. |
100 |
|
|
The emphasis is put on making users feel at home and providing |
101 |
|
|
them with an easy to use and comfortable desktop experience. |
102 |
|
|
|
103 |
|
|
%prep |
104 |
|
|
%setup -q -n linuxmint-Cinnamon-%{_internal_version} |
105 |
joequant |
433852 |
%patch0 -p1 |
106 |
joequant |
460897 |
%patch1 -p1 |
107 |
joequant |
321289 |
|
108 |
|
|
# remove gschema |
109 |
|
|
rm -rf data/org.cinnamon.gschema.xml |
110 |
|
|
# make changes for settings move to /usr/share |
111 |
|
|
mv files/usr/lib/cinnamon-settings files%{_datadir} |
112 |
joequant |
434438 |
grep -r -l /usr/lib/cinnamon-settings files%{_datadir} files%{_bindir} | \ |
113 |
|
|
xargs sed -i -e 's@/usr/lib@/usr/share@g' |
114 |
|
|
sed -i -e 's@/usr/lib@/usr/share@g' js/ui/panel.js cinnamon.pot |
115 |
|
|
|
116 |
joequant |
321289 |
# make changes for menu-editor move to /usr/share |
117 |
|
|
mv files/usr/lib/cinnamon-menu-editor files%{_datadir} |
118 |
joequant |
434438 |
grep -r -l /usr/lib/cinnamon-menu-editor files%{_datadir} files%{_bindir} | \ |
119 |
|
|
xargs sed -i -e 's@/usr/lib@/usr/share@g' |
120 |
joequant |
321289 |
rm -rf files/usr/lib |
121 |
joequant |
434268 |
|
122 |
joequant |
321289 |
sed -i -e 's@-OOt@-t@g' files%{_bindir}/cinnamon-menu-editor |
123 |
joequant |
341165 |
sed -i -e 's@/usr/lib/gnome-session@%{_libexecdir}@g' files%{_datadir}/gnome-session/sessions/cinnamon.session |
124 |
joequant |
434268 |
|
125 |
|
|
# have cinnamon use mageia app system |
126 |
|
|
sed -i -e 's@cinnamon-applications@applications@g' src/cinnamon-app-system.c \ |
127 |
|
|
files/usr/share/cinnamon-menu-editor/cme/MenuEditor.py |
128 |
|
|
|
129 |
joequant |
321289 |
%{__mkdir_p} files%{_sysconfdir}/X11/wmsession.d |
130 |
|
|
install -pm 644 %SOURCE5 %SOURCE6 files%{_sysconfdir}/X11/wmsession.d |
131 |
joequant |
434268 |
|
132 |
|
|
# files replaced with mageia files |
133 |
|
|
rm -rf files%{_sysconfdir}/xdg |
134 |
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 |
135 |
|
|
|
136 |
|
|
rm -f configure |
137 |
|
|
rm -rf debian/ |
138 |
|
|
|
139 |
|
|
NOCONFIGURE=1 ./autogen.sh |
140 |
|
|
|
141 |
|
|
%build |
142 |
|
|
export CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations" |
143 |
joequant |
433852 |
%configure2_5x --disable-static --enable-compile-warnings=yes |
144 |
joequant |
321289 |
%make V=1 |
145 |
|
|
|
146 |
|
|
%install |
147 |
joequant |
434268 |
%makeinstall_std |
148 |
joequant |
321289 |
|
149 |
|
|
# Remove .la file |
150 |
joequant |
434268 |
rm -rf %{buildroot}/%{_libdir}/cinnamon/libcinnamon.la |
151 |
joequant |
321289 |
|
152 |
|
|
# Remove firefox plugin |
153 |
joequant |
434268 |
rm -rf %{buildroot}/%{_libdir}/mozilla |
154 |
joequant |
321289 |
|
155 |
joequant |
434268 |
desktop-file-validate %{buildroot}%{_datadir}/applications/cinnamon.desktop |
156 |
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/cinnamon2d.desktop |
157 |
joequant |
321289 |
|
158 |
|
|
desktop-file-install \ |
159 |
|
|
--add-category="Utility" \ |
160 |
|
|
--remove-category="DesktopSettings" \ |
161 |
|
|
--remove-key="Encoding" \ |
162 |
|
|
--add-only-show-in="GNOME" \ |
163 |
|
|
--delete-original \ |
164 |
joequant |
434268 |
--dir=%{buildroot}%{_datadir}/applications \ |
165 |
|
|
%{buildroot}%{_datadir}/applications/* |
166 |
joequant |
321289 |
|
167 |
|
|
%find_lang %{name} |
168 |
|
|
%files -f %{name}.lang |
169 |
|
|
%doc COPYING README |
170 |
|
|
%{_bindir}/cinnamon |
171 |
joequant |
398310 |
%{_bindir}/cinnamon-looking-glass |
172 |
joequant |
321289 |
%{_bindir}/cinnamon2d |
173 |
joequant |
433852 |
%{_bindir}/cinnamon3d |
174 |
joequant |
321539 |
%{_bindir}/gnome-session-cinnamon |
175 |
joequant |
321289 |
%{_bindir}/gnome-session-cinnamon2d |
176 |
joequant |
411935 |
%{_bindir}/cinnamon-launcher |
177 |
joequant |
321289 |
%{_bindir}/cinnamon-menu-editor |
178 |
|
|
%{_bindir}/cinnamon-settings |
179 |
|
|
%{_bindir}/cinnamon-extension-tool |
180 |
joequant |
398310 |
%{_bindir}/cinnamon-screensaver-lock-dialog |
181 |
joequant |
321289 |
%{_sysconfdir}/X11/wmsession.d/*cinnamon* |
182 |
|
|
%{_datadir}/desktop-directories/cinnamon-*.directory |
183 |
|
|
%{_datadir}/glib-2.0/schemas/*.xml |
184 |
|
|
%{_datadir}/applications/cinnamon.desktop |
185 |
|
|
%{_datadir}/applications/cinnamon2d.desktop |
186 |
|
|
%{_datadir}/applications/cinnamon-settings.desktop |
187 |
|
|
%{_datadir}/applications/cinnamon-add-panel-launcher.desktop |
188 |
|
|
%{_datadir}/applications/cinnamon-menu-editor.desktop |
189 |
|
|
%{_datadir}/xsessions/cinnamon*.desktop |
190 |
|
|
%{_datadir}/gnome-session/sessions/cinnamon*.session |
191 |
|
|
%{_datadir}/cinnamon/ |
192 |
|
|
%{_datadir}/cinnamon-menu-editor/ |
193 |
|
|
%{_datadir}/cinnamon-settings/ |
194 |
|
|
%{_datadir}/dbus-1/services/org.Cinnamon.HotplugSniffer.service |
195 |
|
|
%{_libdir}/cinnamon/ |
196 |
|
|
%{_libexecdir}/cinnamon/cinnamon-perf-helper |
197 |
|
|
%{_libexecdir}/cinnamon/cinnamon-hotplug-sniffer |
198 |
|
|
%{_mandir}/man1/*.1.* |
199 |
|
|
|
200 |
|
|
|