/[packages]/backports/4/cinnamon/current/SPECS/cinnamon.spec
ViewVC logotype

Contents of /backports/4/cinnamon/current/SPECS/cinnamon.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 615358 - (show annotations) (download)
Thu Apr 17 05:25:43 2014 UTC (10 years, 7 months ago) by joequant
File size: 8985 byte(s)
put in memory fixes

1 %global _internal_version 0048c84
2 %define date 20131125
3
4 Name: cinnamon
5 Version: 2.0.14
6 Release: %mkrel 6
7 Summary: Window management and application launching for Cinnamon
8
9 Group: Graphical desktop/Cinnamon
10 # cinnamon-menu-editor is LGPLv2+
11 License: GPLv2+ and LGPLv2+
12 URL: http://cinnamon.linuxmint.com
13 # To generate tarball
14
15 Source0: %{name}-%{version}.tar.gz
16 #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 Source1: cinnamon-mageia.gschema.override
21 Source3: polkit-cinnamon-authentication-agent-1.desktop
22 Source5: 10cinnamon
23 Source6: 11cinnamon2d
24
25 # from fedora
26 Patch0: background.patch
27 Patch1: autostart.patch
28 #Fix translation bug - been reported upstream as pull #2789
29 Patch2: cinnamon-2.0.14-mga-menu-localization.patch
30 #Fix icon menu bug
31 Patch3: cinnamon-2.0.14-mga-icon-menu-fix.patch
32
33 %global clutter_version 1.7.5
34 %global gobject_introspection_version 0.10.1
35 %global muffin_version 1.9.1
36 %global eds_version 2.91.6
37 %global json_glib_version 0.13.2
38 %global polkit_version 0.100
39
40 BuildRequires: pkgconfig(clutter-x11-1.0) >= %{clutter_version}
41 BuildRequires: pkgconfig(dbus-glib-1)
42 BuildRequires: desktop-file-utils
43 BuildRequires: glib2-devel
44 BuildRequires: pkgconfig(gconf-2.0)
45 BuildRequires: pkgconfig(libgnome-menu-3.0) >= 3.1.5-2.fc16
46 BuildRequires: pkgconfig(gobject-introspection-1.0) >= %{gobject_introspection_version}
47 BuildRequires: pkgconfig(json-glib-1.0) >= %{json_glib_version}
48 BuildRequires: pkgconfig(libnm-glib)
49 BuildRequires: pkgconfig(libnm-util)
50 BuildRequires: pkgconfig(polkit-agent-1) >= %{polkit_version}
51 BuildRequires: libgudev-devel
52 # for screencast recorder functionality
53 BuildRequires: pkgconfig(gstreamer-1.0)
54 BuildRequires: pkgconfig(gtk+-3.0)
55 BuildRequires: intltool
56 BuildRequires: pkgconfig(libcanberra)
57 BuildRequires: pkgconfig(libcroco-0.6) >= 0.6.2
58 BuildRequires: pkgconfig(gnome-keyring-1)
59 BuildRequires: pkgconfig(libsoup-2.4)
60 BuildRequires: pkgconfig(libnm-glib-vpn)
61 BuildRequires: pkgconfig(libstartup-notification-1.0)
62
63 # for barriers
64 BuildRequires: pkgconfig(xfixes) >= 5.0
65 # used in unused BigThemeImage
66 BuildRequires: librsvg2-devel
67 BuildRequires: pkgconfig(libmuffin) >= %{muffin_version}
68 BuildRequires: libpulseaudio-devel
69 BuildRequires: gnome-bluetooth-devel >= 2.91
70 BuildRequires: gnome-bluetooth >= 2.91
71 # Bootstrap requirements
72 BuildRequires: gtk-doc gnome-common
73
74 BuildRequires: pkgconfig(libwacom)
75 BuildRequires: pkgconfig(xorg-wacom)
76 BuildRequires: pkgconfig(xtst)
77 BuildRequires: pkgconfig(gio-2.0)
78 BuildRequires: pkgconfig(gio-unix-2.0)
79 BuildRequires: pkgconfig(libxml-2.0)
80 BuildRequires: pkgconfig(gdk-x11-3.0)
81 BuildRequires: pkgconfig(cjs-internals-1.0)
82 BuildRequires: pkgconfig(gnome-desktop-3.0) >= 2.90.0
83 BuildRequires: pkgconfig(x11)
84 BuildRequires: pkgconfig(cinnamon-desktop) >= 2.0.4
85
86 Requires: gnome-menus >= 3.0.0-2
87 # wrapper script uses to restart old GNOME session if run --replace
88 # from the command line
89 Requires: gobject-introspection >= %{gobject_introspection_version}
90 # needed for loading SVG's via gdk-pixbuf
91 #Requires: librsvg2%{?_isa}
92 # needed as it is now split from Clutter
93 Requires: json-glib >= %{json_glib_version}
94 # might be still be needed.
95 Requires: muffin >= %{muffin_version}
96 Requires: upower
97 Requires: polkit >= 0.100
98 # needed for session files
99 # cinnamon-session version fixes location of helper app
100 Requires: cinnamon-session
101 # needed for schemas
102 Requires: at-spi2-atk
103 # needed for on-screen keyboard
104 Requires: caribou
105 # needed for settings
106 Requires: python-gobject
107 Requires: dbus-python
108 Requires: nautilus
109 Requires: python-lxml
110 Requires: gnome-python-gconf
111 Requires: python-imaging
112 Requires: python-pam
113 Requires: python-pexpect
114 Requires: python-pillow
115 Requires: cinnamon-control-center
116 Requires: cinnamon-screensaver
117 Requires: cinnamon-translations
118 # fix 10916
119 Requires: gnome-themes-standard
120 # fix cinnamon startup crashes
121 Requires: typelib(fontconfig)
122 # include cjs introspection
123 Requires: cjs
124 # Mate polkit
125 Requires: mate-polkit
126
127 # cinnamon handles notifications natively, no notification-daemon needed
128 Provides: virtual-notification-daemon
129 # and ditto for polkit authorisation dialogs
130 Provides: polkit-agent
131
132 %description
133 Cinnamon is a Linux desktop which provides advanced
134 innovative features and a traditional user experience.
135
136 The desktop layout is similar to Gnome 2.
137 The underlying technology is forked from Gnome Shell.
138 The emphasis is put on making users feel at home and providing
139 them with an easy to use and comfortable desktop experience.
140
141 %prep
142 %setup -q -n Cinnamon-%{version}
143 %patch0 -p1
144 %patch1 -p1
145 %patch2 -p1
146 %patch3 -p1
147
148 # remove gschema
149 rm -rf data/org.cinnamon.gschema.xml
150 # move items to /usr/share
151 mv files/usr/lib/* files%{_datadir}
152 grep -r -l /usr/lib files%{_datadir} files%{_bindir} | \
153 xargs sed -i -e 's@/usr/lib@/usr/share@g'
154 sed -i -e 's@/usr/lib@/usr/share@g' js/ui/panel.js cinnamon.pot
155 sed -i -e 's@-OOt@-t@g' files%{_bindir}/cinnamon-menu-editor
156 rm -rf files/usr/lib
157
158 # have cinnamon use mageia app system
159 grep -r -l cinnamon-applications.menu files%{_datadir} files%{_bindir} src | \
160 xargs sed -i -e 's@cinnamon-applications@applications@g'
161
162 %{__mkdir_p} files%{_sysconfdir}/X11/wmsession.d
163 install -pm 644 %SOURCE5 %SOURCE6 files%{_sysconfdir}/X11/wmsession.d
164
165 # files replaced with mageia files
166 rm -rf files%{_sysconfdir}/xdg
167 rm -f files%{_datadir}/desktop-directories/cinnamon-{menu-applications,utility,utility-accessibility,development,education,game,graphics,network,audio-video,office,system-tools,other}.directory
168
169 rm -f configure
170 rm -rf debian/
171
172 NOCONFIGURE=1 ./autogen.sh
173
174 %build
175 export CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations"
176 %configure2_5x \
177 --disable-static \
178 --disable-rpath \
179 --enable-compile-warnings=yes \
180 --enable-introspection=yes
181 %make V=1
182
183 %install
184 %makeinstall_std
185
186 # Remove .la file
187 rm -rf %{buildroot}/%{_libdir}/cinnamon/libcinnamon.la
188
189 install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/glib-2.0/schemas/cinnamon-mageia.gschema.override
190
191 # install polkik autostart desktop file
192 install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/
193
194 desktop-file-validate %{buildroot}%{_datadir}/applications/cinnamon.desktop
195 desktop-file-validate %{buildroot}%{_datadir}/applications/cinnamon2d.desktop
196 desktop-file-validate %{buildroot}%{_datadir}/applications/polkit-cinnamon-authentication-agent-1.desktop
197
198 desktop-file-install \
199 --add-category="Utility" \
200 --remove-category="DesktopSettings" \
201 --remove-key="Encoding" \
202 --add-only-show-in="GNOME" \
203 --delete-original \
204 --dir=%{buildroot}%{_datadir}/applications \
205 %{buildroot}%{_datadir}/applications/*
206
207 # fix hard coded path
208 %ifarch x86_64
209 sed -i -e 's@/usr/lib/cinnamon-control-center@/usr/lib64/cinnamon-control-center@g' \
210 %{buildroot}%{_datadir}/cinnamon-settings/bin/capi.py
211 %endif
212
213 # kill upstream xsession file.
214 # If we leave this it overrides our one, preventing the run of /etc/X11/Xsession
215 # and thus the processing of /etc/X11/xinit.d/ files.
216 # See: https://bugs.mageia.org/show_bug.cgi?id=11582
217 rm -rf %{buildroot}%{_datadir}/xsessions
218
219 %find_lang %{name}
220 %files -f %{name}.lang
221 %doc COPYING README
222 %{_bindir}/cinnamon
223 %{_bindir}/cinnamon-looking-glass
224 %{_bindir}/cinnamon2d
225 %{_bindir}/cinnamon-desktop-editor
226 %{_bindir}/cinnamon-settings-users
227 %{_bindir}/cinnamon-session-cinnamon
228 %{_bindir}/cinnamon-session-cinnamon2d
229 %{_bindir}/cinnamon-launcher
230 %{_bindir}/cinnamon-menu-editor
231 %{_bindir}/cinnamon-settings
232 %{_bindir}/cinnamon-extension-tool
233 %{_bindir}/cinnamon-screensaver-lock-dialog
234 %{_bindir}/cinnamon-json-makepot
235 %{_sysconfdir}/X11/wmsession.d/*cinnamon*
236 %{_datadir}/desktop-directories/cinnamon-*.directory
237 %{_datadir}/glib-2.0/schemas/*
238 %{_datadir}/applications/cinnamon.desktop
239 %{_datadir}/applications/cinnamon2d.desktop
240 %{_datadir}/applications/cinnamon-settings.desktop
241 %{_datadir}/applications/cinnamon-settings-users.desktop
242 %{_datadir}/applications/cinnamon-add-panel-launcher.desktop
243 %{_datadir}/applications/cinnamon-menu-editor.desktop
244 %{_datadir}/applications/polkit-cinnamon-authentication-agent-1.desktop
245 %{_datadir}/cinnamon-session/sessions/cinnamon*.session
246 %{_datadir}/cinnamon/
247 %{_datadir}/cinnamon-*/
248 %{_datadir}/dbus-1/services/org.Cinnamon.HotplugSniffer.service
249 %{_libdir}/cinnamon/
250 %{_libexecdir}/cinnamon/cinnamon-perf-helper
251 %{_libexecdir}/cinnamon/cinnamon-hotplug-sniffer
252 %{_mandir}/man1/*.1.*
253
254

  ViewVC Help
Powered by ViewVC 1.1.30