/[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 615451 - (show annotations) (download)
Thu Apr 17 13:24:04 2014 UTC (10 years, 3 months ago) by joequant
File size: 8960 byte(s)
remove nautilus dependency

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: python-lxml
109 Requires: gnome-python-gconf
110 Requires: python-imaging
111 Requires: python-pam
112 Requires: python-pexpect
113 Requires: python-pillow
114 Requires: cinnamon-control-center
115 Requires: cinnamon-screensaver
116 Requires: cinnamon-translations
117 # fix 10916
118 Requires: gnome-themes-standard
119 # fix cinnamon startup crashes
120 Requires: typelib(fontconfig)
121 # include cjs introspection
122 Requires: cjs
123 # Mate polkit
124 Requires: mate-polkit
125
126 # cinnamon handles notifications natively, no notification-daemon needed
127 Provides: virtual-notification-daemon
128 # and ditto for polkit authorisation dialogs
129 Provides: polkit-agent
130
131 %description
132 Cinnamon is a Linux desktop which provides advanced
133 innovative features and a traditional user experience.
134
135 The desktop layout is similar to Gnome 2.
136 The underlying technology is forked from Gnome Shell.
137 The emphasis is put on making users feel at home and providing
138 them with an easy to use and comfortable desktop experience.
139
140 %prep
141 %setup -q -n Cinnamon-%{version}
142 %patch0 -p1
143 %patch1 -p1
144 %patch2 -p1
145 %patch3 -p1
146
147 # remove gschema
148 rm -rf data/org.cinnamon.gschema.xml
149 # move items to /usr/share
150 mv files/usr/lib/* files%{_datadir}
151 grep -r -l /usr/lib files%{_datadir} files%{_bindir} | \
152 xargs sed -i -e 's@/usr/lib@/usr/share@g'
153 sed -i -e 's@/usr/lib@/usr/share@g' js/ui/panel.js cinnamon.pot
154 sed -i -e 's@-OOt@-t@g' files%{_bindir}/cinnamon-menu-editor
155 rm -rf files/usr/lib
156
157 # have cinnamon use mageia app system
158 grep -r -l cinnamon-applications.menu files%{_datadir} files%{_bindir} src | \
159 xargs sed -i -e 's@cinnamon-applications@applications@g'
160
161 %{__mkdir_p} files%{_sysconfdir}/X11/wmsession.d
162 install -pm 644 %SOURCE5 %SOURCE6 files%{_sysconfdir}/X11/wmsession.d
163
164 # files replaced with mageia files
165 rm -rf files%{_sysconfdir}/xdg
166 rm -f files%{_datadir}/desktop-directories/cinnamon-{menu-applications,utility,utility-accessibility,development,education,game,graphics,network,audio-video,office,system-tools,other}.directory
167
168 rm -f configure
169 rm -rf debian/
170
171 NOCONFIGURE=1 ./autogen.sh
172
173 %build
174 export CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations"
175 %configure2_5x \
176 --disable-static \
177 --disable-rpath \
178 --enable-compile-warnings=yes \
179 --enable-introspection=yes
180 %make V=1
181
182 %install
183 %makeinstall_std
184
185 # Remove .la file
186 rm -rf %{buildroot}/%{_libdir}/cinnamon/libcinnamon.la
187
188 install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/glib-2.0/schemas/cinnamon-mageia.gschema.override
189
190 # install polkik autostart desktop file
191 install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/
192
193 desktop-file-validate %{buildroot}%{_datadir}/applications/cinnamon.desktop
194 desktop-file-validate %{buildroot}%{_datadir}/applications/cinnamon2d.desktop
195 desktop-file-validate %{buildroot}%{_datadir}/applications/polkit-cinnamon-authentication-agent-1.desktop
196
197 desktop-file-install \
198 --add-category="Utility" \
199 --remove-category="DesktopSettings" \
200 --remove-key="Encoding" \
201 --add-only-show-in="GNOME" \
202 --delete-original \
203 --dir=%{buildroot}%{_datadir}/applications \
204 %{buildroot}%{_datadir}/applications/*
205
206 # fix hard coded path
207 %ifarch x86_64
208 sed -i -e 's@/usr/lib/cinnamon-control-center@/usr/lib64/cinnamon-control-center@g' \
209 %{buildroot}%{_datadir}/cinnamon-settings/bin/capi.py
210 %endif
211
212 # kill upstream xsession file.
213 # If we leave this it overrides our one, preventing the run of /etc/X11/Xsession
214 # and thus the processing of /etc/X11/xinit.d/ files.
215 # See: https://bugs.mageia.org/show_bug.cgi?id=11582
216 rm -rf %{buildroot}%{_datadir}/xsessions
217
218 %find_lang %{name}
219 %files -f %{name}.lang
220 %doc COPYING README
221 %{_bindir}/cinnamon
222 %{_bindir}/cinnamon-looking-glass
223 %{_bindir}/cinnamon2d
224 %{_bindir}/cinnamon-desktop-editor
225 %{_bindir}/cinnamon-settings-users
226 %{_bindir}/cinnamon-session-cinnamon
227 %{_bindir}/cinnamon-session-cinnamon2d
228 %{_bindir}/cinnamon-launcher
229 %{_bindir}/cinnamon-menu-editor
230 %{_bindir}/cinnamon-settings
231 %{_bindir}/cinnamon-extension-tool
232 %{_bindir}/cinnamon-screensaver-lock-dialog
233 %{_bindir}/cinnamon-json-makepot
234 %{_sysconfdir}/X11/wmsession.d/*cinnamon*
235 %{_datadir}/desktop-directories/cinnamon-*.directory
236 %{_datadir}/glib-2.0/schemas/*
237 %{_datadir}/applications/cinnamon.desktop
238 %{_datadir}/applications/cinnamon2d.desktop
239 %{_datadir}/applications/cinnamon-settings.desktop
240 %{_datadir}/applications/cinnamon-settings-users.desktop
241 %{_datadir}/applications/cinnamon-add-panel-launcher.desktop
242 %{_datadir}/applications/cinnamon-menu-editor.desktop
243 %{_datadir}/applications/polkit-cinnamon-authentication-agent-1.desktop
244 %{_datadir}/cinnamon-session/sessions/cinnamon*.session
245 %{_datadir}/cinnamon/
246 %{_datadir}/cinnamon-*/
247 %{_datadir}/dbus-1/services/org.Cinnamon.HotplugSniffer.service
248 %{_libdir}/cinnamon/
249 %{_libexecdir}/cinnamon/cinnamon-perf-helper
250 %{_libexecdir}/cinnamon/cinnamon-hotplug-sniffer
251 %{_mandir}/man1/*.1.*
252
253

  ViewVC Help
Powered by ViewVC 1.1.30