1 |
joequant |
321289 |
%global _internal_version 5ab432d |
2 |
|
|
|
3 |
|
|
%{?filter_setup: |
4 |
|
|
%filter_from_provides /^libcinnamon.so/d; |
5 |
|
|
%filter_from_requires /^libcinnamon.so/d; |
6 |
|
|
%filter_setup |
7 |
|
|
} |
8 |
|
|
|
9 |
|
|
Name: cinnamon |
10 |
|
|
Version: 1.6.7 |
11 |
|
|
Release: %mkrel 1 |
12 |
|
|
Summary: Window management and application launching for GNOME |
13 |
|
|
|
14 |
|
|
Group: Graphical desktop/GNOME |
15 |
|
|
# cinnamon-menu-editor is LGPLv2+ |
16 |
|
|
License: GPLv2+ and LGPLv2+ |
17 |
|
|
URL: http://cinnamon.linuxmint.com |
18 |
|
|
# To generate tarball |
19 |
|
|
# wget https://github.com/linuxmint/Cinnamon/tarball/%%{_internal_version} -O cinnamon-%%{version}.git%%{_internal_version}.tar.gz |
20 |
|
|
Source0: http://leigh123linux.fedorapeople.org/pub/cinnamon/source/cinnamon-%{version}.tar.gz |
21 |
|
|
Source1: cinnamon.desktop |
22 |
|
|
Source2: cinnamon.session |
23 |
|
|
Source3: cinnamon2d.desktop |
24 |
|
|
Source4: cinnamon2d.session |
25 |
|
|
Source5: 10cinnamon |
26 |
|
|
Source6: 11cinnamon2d |
27 |
|
|
|
28 |
|
|
# Fix menu structure |
29 |
|
|
Patch0: cinnamon-1.4.1_menu.patch |
30 |
|
|
Patch1: cinnamon-1.5.0_datetime_setting.patch |
31 |
|
|
# Replace mint favorites with fedora gnome-shell defaults |
32 |
|
|
Patch2: cinnamon-1.4.1_f17_favourite-apps-firefox.patch |
33 |
|
|
Patch3: fedora_icon.patch |
34 |
|
|
Patch4: nemo.patch |
35 |
|
|
Patch5: cinnamon.css.patch |
36 |
|
|
Patch6: cinnamon-rm-thread-init.patch |
37 |
|
|
|
38 |
|
|
# upstream patches and pending pulls |
39 |
|
|
|
40 |
|
|
|
41 |
|
|
%global clutter_version 1.7.5 |
42 |
|
|
%global gobject_introspection_version 0.10.1 |
43 |
|
|
%global muffin_version 1.1.0 |
44 |
|
|
%global eds_version 2.91.6 |
45 |
|
|
%global json_glib_version 0.13.2 |
46 |
|
|
|
47 |
|
|
|
48 |
|
|
BuildRequires: clutter-devel >= %{clutter_version} |
49 |
|
|
BuildRequires: dbus-glib-devel |
50 |
|
|
BuildRequires: desktop-file-utils |
51 |
|
|
BuildRequires: gjs-devel >= 0.7.14-6 |
52 |
|
|
BuildRequires: glib2-devel |
53 |
|
|
BuildRequires: libGConf2-devel |
54 |
|
|
BuildRequires: gnome-menus-devel >= 3.1.5-2.fc16 |
55 |
|
|
BuildRequires: gnome-desktop3-devel |
56 |
|
|
BuildRequires: gobject-introspection >= %{gobject_introspection_version} |
57 |
|
|
BuildRequires: pkgconfig(json-glib-1.0) >= %{json_glib_version} |
58 |
|
|
BuildRequires: upower-devel |
59 |
|
|
BuildRequires: pkgconfig(libnm-glib) |
60 |
|
|
BuildRequires: polkit-1-devel |
61 |
|
|
BuildRequires: libgudev-devel |
62 |
|
|
# for screencast recorder functionality |
63 |
|
|
BuildRequires: pkgconfig(gstreamer-1.0) |
64 |
|
|
BuildRequires: gtk+3-devel |
65 |
|
|
BuildRequires: intltool |
66 |
|
|
BuildRequires: libcanberra-devel |
67 |
|
|
BuildRequires: libcroco-devel |
68 |
|
|
BuildRequires: libgnome-keyring-devel |
69 |
|
|
BuildRequires: libsoup-devel |
70 |
|
|
BuildRequires: pkgconfig(libnm-glib-vpn) |
71 |
|
|
|
72 |
|
|
|
73 |
|
|
# for barriers |
74 |
|
|
BuildRequires: libxfixes-devel >= 5.0 |
75 |
|
|
# used in unused BigThemeImage |
76 |
|
|
BuildRequires: librsvg2-devel |
77 |
|
|
BuildRequires: muffin-devel >= %{muffin_version} |
78 |
|
|
BuildRequires: libpulseaudio-devel |
79 |
|
|
%ifnarch s390 s390x |
80 |
|
|
BuildRequires: gnome-bluetooth-devel >= 2.91 |
81 |
|
|
BuildRequires: gnome-bluetooth >= 2.91 |
82 |
|
|
%endif |
83 |
|
|
# Bootstrap requirements |
84 |
|
|
BuildRequires: gtk-doc gnome-common |
85 |
|
|
Requires: gnome-menus%{?_isa} >= 3.0.0-2 |
86 |
|
|
# wrapper script uses to restart old GNOME session if run --replace |
87 |
|
|
# from the command line |
88 |
|
|
Requires: gobject-introspection%{?_isa} >= %{gobject_introspection_version} |
89 |
|
|
# needed for loading SVG's via gdk-pixbuf |
90 |
|
|
#Requires: librsvg2%{?_isa} |
91 |
|
|
# needed as it is now split from Clutter |
92 |
|
|
Requires: json-glib%{?_isa} >= %{json_glib_version} |
93 |
|
|
# might be still be needed. |
94 |
|
|
Requires: muffin%{?_isa} >= %{muffin_version} |
95 |
|
|
Requires: upower%{?_isa} |
96 |
|
|
Requires: polkit%{?_isa} >= 0.100 |
97 |
|
|
# needed for session files |
98 |
|
|
Requires: gnome-session |
99 |
|
|
# needed for schemas |
100 |
|
|
Requires: at-spi2-atk |
101 |
|
|
# needed for on-screen keyboard |
102 |
|
|
Requires: caribou%{?_isa} |
103 |
|
|
# needed for settings |
104 |
|
|
Requires: python-gobject |
105 |
|
|
Requires: dbus-python |
106 |
|
|
Requires: nautilus |
107 |
|
|
Requires: python-lxml |
108 |
|
|
Requires: gnome-python-gconf |
109 |
|
|
Requires: python-imaging |
110 |
|
|
# needed for cinnamon-menu |
111 |
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=872694 |
112 |
|
|
Requires: gnome-panel |
113 |
|
|
|
114 |
|
|
%description |
115 |
|
|
Cinnamon is a Linux desktop which provides advanced |
116 |
|
|
innovative features and a traditional user experience. |
117 |
|
|
|
118 |
|
|
The desktop layout is similar to Gnome 2. |
119 |
|
|
The underlying technology is forked from Gnome Shell. |
120 |
|
|
The emphasis is put on making users feel at home and providing |
121 |
|
|
them with an easy to use and comfortable desktop experience. |
122 |
|
|
|
123 |
|
|
%prep |
124 |
|
|
%setup -q -n linuxmint-Cinnamon-%{_internal_version} |
125 |
|
|
%patch0 -p1 |
126 |
|
|
%patch1 -p1 |
127 |
|
|
%patch2 -p1 |
128 |
|
|
%patch3 -p1 |
129 |
|
|
|
130 |
|
|
# use nautilus instead of nemo |
131 |
|
|
%patch4 -p1 |
132 |
|
|
|
133 |
|
|
%patch5 -p1 |
134 |
|
|
%patch6 -p1 |
135 |
|
|
|
136 |
|
|
# upstream patches and pending pulls |
137 |
|
|
|
138 |
|
|
# remove gschema |
139 |
|
|
rm -rf data/org.cinnamon.gschema.xml |
140 |
|
|
# make changes for settings move to /usr/share |
141 |
|
|
mv files/usr/lib/cinnamon-settings files%{_datadir} |
142 |
|
|
sed -i -e 's@/usr/lib@/usr/share@g' files%{_bindir}/cinnamon-settings \ |
143 |
|
|
files%{_datadir}/cinnamon-settings/cinnamon-settings.py \ |
144 |
|
|
js/ui/panel.js cinnamon.pot |
145 |
|
|
# make changes for menu-editor move to /usr/share |
146 |
|
|
mv files/usr/lib/cinnamon-menu-editor files%{_datadir} |
147 |
|
|
rm -rf files/usr/lib |
148 |
|
|
sed -i -e 's@/usr/lib@/usr/share@g' files%{_bindir}/cinnamon-menu-editor \ |
149 |
|
|
files%{_datadir}/cinnamon-menu-editor/Alacarte/MainWindow.py |
150 |
|
|
sed -i -e 's@-OOt@-t@g' files%{_bindir}/cinnamon-menu-editor |
151 |
|
|
# remove and replace the session files as they don't work with fedora (can't be bothered to patch it) |
152 |
|
|
rm -f files%{_bindir}/gnome-session-cinnamon \ |
153 |
|
|
files%{_datadir}/xsessions/cinnamon*.desktop \ |
154 |
|
|
files%{_datadir}/gnome-session/sessions/cinnamon*.session |
155 |
|
|
%{__mkdir_p} files%{_sysconfdir}/X11/wmsession.d |
156 |
|
|
install -pm 644 %SOURCE1 %SOURCE3 files%{_datadir}/xsessions/ |
157 |
|
|
install -pm 644 %SOURCE2 %SOURCE4 files%{_datadir}/gnome-session/sessions/ |
158 |
|
|
install -pm 644 %SOURCE5 %SOURCE6 files%{_sysconfdir}/X11/wmsession.d |
159 |
|
|
# files replaced with fedora files |
160 |
|
|
rm -f files%{_datadir}/desktop-directories/cinnamon-{menu-applications,utility,utility-accessibility,development,education,game,graphics,network,audio-video,office,system-tools,other}.directory |
161 |
|
|
|
162 |
|
|
rm -f configure |
163 |
|
|
rm -rf debian/ |
164 |
|
|
|
165 |
|
|
NOCONFIGURE=1 ./autogen.sh |
166 |
|
|
|
167 |
|
|
%build |
168 |
|
|
export CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations" |
169 |
|
|
%configure2_5x --disable-static --enable-compile-warnings=yes |
170 |
|
|
%make V=1 |
171 |
|
|
|
172 |
|
|
%install |
173 |
|
|
%make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' |
174 |
|
|
|
175 |
|
|
# Remove .la file |
176 |
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/cinnamon/libcinnamon.la |
177 |
|
|
|
178 |
|
|
# Remove firefox plugin |
179 |
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/mozilla |
180 |
|
|
|
181 |
|
|
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/cinnamon.desktop |
182 |
|
|
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/cinnamon2d.desktop |
183 |
|
|
|
184 |
|
|
desktop-file-install \ |
185 |
|
|
--add-category="Utility" \ |
186 |
|
|
--remove-category="DesktopSettings" \ |
187 |
|
|
--remove-key="Encoding" \ |
188 |
|
|
--add-only-show-in="GNOME" \ |
189 |
|
|
--delete-original \ |
190 |
|
|
--dir=$RPM_BUILD_ROOT%{_datadir}/applications \ |
191 |
|
|
$RPM_BUILD_ROOT%{_datadir}/applications/* |
192 |
|
|
|
193 |
|
|
|
194 |
|
|
%find_lang %{name} |
195 |
|
|
|
196 |
|
|
%postun |
197 |
|
|
if [ $1 -eq 0 ] ; then |
198 |
|
|
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : |
199 |
|
|
fi |
200 |
|
|
|
201 |
|
|
%posttrans |
202 |
|
|
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : |
203 |
|
|
|
204 |
|
|
%files -f %{name}.lang |
205 |
|
|
%doc COPYING README |
206 |
|
|
%{_bindir}/cinnamon |
207 |
|
|
%{_bindir}/cinnamon2d |
208 |
|
|
%{_bindir}/gnome-session-cinnamon2d |
209 |
|
|
%exclude %{_bindir}/cinnamon-launcher |
210 |
|
|
%{_bindir}/cinnamon-menu-editor |
211 |
|
|
%{_bindir}/cinnamon-settings |
212 |
|
|
%{_bindir}/cinnamon-extension-tool |
213 |
|
|
%{_sysconfdir}/xdg/menus/cinnamon-applications.menu |
214 |
|
|
%{_sysconfdir}/xdg/menus/cinnamon-settings.menu |
215 |
|
|
%{_sysconfdir}/X11/wmsession.d/*cinnamon* |
216 |
|
|
%{_datadir}/desktop-directories/cinnamon-*.directory |
217 |
|
|
%{_datadir}/glib-2.0/schemas/*.xml |
218 |
|
|
%{_datadir}/applications/cinnamon.desktop |
219 |
|
|
%{_datadir}/applications/cinnamon2d.desktop |
220 |
|
|
%{_datadir}/applications/cinnamon-settings.desktop |
221 |
|
|
%{_datadir}/applications/cinnamon-add-panel-launcher.desktop |
222 |
|
|
%{_datadir}/applications/cinnamon-menu-editor.desktop |
223 |
|
|
%{_datadir}/xsessions/cinnamon*.desktop |
224 |
|
|
%{_datadir}/gnome-session/sessions/cinnamon*.session |
225 |
|
|
%{_datadir}/cinnamon/ |
226 |
|
|
%{_datadir}/cinnamon-menu-editor/ |
227 |
|
|
%{_datadir}/cinnamon-settings/ |
228 |
|
|
%{_datadir}/dbus-1/services/org.Cinnamon.HotplugSniffer.service |
229 |
|
|
%{_libdir}/cinnamon/ |
230 |
|
|
%{_libexecdir}/cinnamon/cinnamon-perf-helper |
231 |
|
|
%{_libexecdir}/cinnamon/cinnamon-hotplug-sniffer |
232 |
|
|
%{_mandir}/man1/*.1.* |
233 |
|
|
|
234 |
|
|
|