/[packages]/cauldron/cinnamon/current/SPECS/cinnamon.spec
ViewVC logotype

Contents of /cauldron/cinnamon/current/SPECS/cinnamon.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 615450 - (show annotations) (download)
Thu Apr 17 13:22:45 2014 UTC (10 years, 2 months ago) by joequant
File size: 9113 byte(s)
bump version

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

  ViewVC Help
Powered by ViewVC 1.1.30