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