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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 615451 - (hide 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 joequant 563792 %global _internal_version 0048c84
2     %define date 20131125
3 joequant 321289
4     Name: cinnamon
5 joequant 563792 Version: 2.0.14
6 joequant 615358 Release: %mkrel 6
7 joequant 476700 Summary: Window management and application launching for Cinnamon
8 joequant 321289
9 joequant 476700 Group: Graphical desktop/Cinnamon
10 joequant 321289 # cinnamon-menu-editor is LGPLv2+
11     License: GPLv2+ and LGPLv2+
12     URL: http://cinnamon.linuxmint.com
13     # To generate tarball
14 joequant 474263
15 joequant 490027 Source0: %{name}-%{version}.tar.gz
16 joequant 490051 #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 joequant 476700 Source1: cinnamon-mageia.gschema.override
21 joequant 564154 Source3: polkit-cinnamon-authentication-agent-1.desktop
22 joequant 321289 Source5: 10cinnamon
23     Source6: 11cinnamon2d
24    
25 joequant 564154 # from fedora
26 joequant 470204 Patch0: background.patch
27 joequant 564154 Patch1: autostart.patch
28 joequant 564206 #Fix translation bug - been reported upstream as pull #2789
29 joequant 564154 Patch2: cinnamon-2.0.14-mga-menu-localization.patch
30 joequant 564206 #Fix icon menu bug
31     Patch3: cinnamon-2.0.14-mga-icon-menu-fix.patch
32 joequant 321289
33     %global clutter_version 1.7.5
34     %global gobject_introspection_version 0.10.1
35 joequant 490027 %global muffin_version 1.9.1
36 joequant 321289 %global eds_version 2.91.6
37     %global json_glib_version 0.13.2
38 joequant 470787 %global polkit_version 0.100
39 joequant 321289
40 joequant 470780 BuildRequires: pkgconfig(clutter-x11-1.0) >= %{clutter_version}
41     BuildRequires: pkgconfig(dbus-glib-1)
42 joequant 321289 BuildRequires: desktop-file-utils
43     BuildRequires: glib2-devel
44 joequant 470780 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 joequant 321289 BuildRequires: pkgconfig(json-glib-1.0) >= %{json_glib_version}
48     BuildRequires: pkgconfig(libnm-glib)
49 joequant 470787 BuildRequires: pkgconfig(libnm-util)
50     BuildRequires: pkgconfig(polkit-agent-1) >= %{polkit_version}
51 joequant 321289 BuildRequires: libgudev-devel
52     # for screencast recorder functionality
53     BuildRequires: pkgconfig(gstreamer-1.0)
54 joequant 470780 BuildRequires: pkgconfig(gtk+-3.0)
55 joequant 321289 BuildRequires: intltool
56 joequant 470780 BuildRequires: pkgconfig(libcanberra)
57 joequant 470787 BuildRequires: pkgconfig(libcroco-0.6) >= 0.6.2
58 joequant 470780 BuildRequires: pkgconfig(gnome-keyring-1)
59     BuildRequires: pkgconfig(libsoup-2.4)
60 joequant 321289 BuildRequires: pkgconfig(libnm-glib-vpn)
61 joequant 470780 BuildRequires: pkgconfig(libstartup-notification-1.0)
62 joequant 321289
63     # for barriers
64 joequant 470780 BuildRequires: pkgconfig(xfixes) >= 5.0
65 joequant 321289 # used in unused BigThemeImage
66     BuildRequires: librsvg2-devel
67 joequant 470780 BuildRequires: pkgconfig(libmuffin) >= %{muffin_version}
68 joequant 321289 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 joequant 470204
74     BuildRequires: pkgconfig(libwacom)
75     BuildRequires: pkgconfig(xorg-wacom)
76     BuildRequires: pkgconfig(xtst)
77 joequant 470780 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 joequant 470783 BuildRequires: pkgconfig(cjs-internals-1.0)
82 joequant 470787 BuildRequires: pkgconfig(gnome-desktop-3.0) >= 2.90.0
83     BuildRequires: pkgconfig(x11)
84 joequant 563792 BuildRequires: pkgconfig(cinnamon-desktop) >= 2.0.4
85 joequant 470204
86 joequant 434268 Requires: gnome-menus >= 3.0.0-2
87 joequant 321289 # wrapper script uses to restart old GNOME session if run --replace
88     # from the command line
89 joequant 434268 Requires: gobject-introspection >= %{gobject_introspection_version}
90 joequant 321289 # needed for loading SVG's via gdk-pixbuf
91     #Requires: librsvg2%{?_isa}
92     # needed as it is now split from Clutter
93 joequant 434268 Requires: json-glib >= %{json_glib_version}
94 joequant 321289 # might be still be needed.
95 joequant 434268 Requires: muffin >= %{muffin_version}
96     Requires: upower
97     Requires: polkit >= 0.100
98 joequant 321289 # needed for session files
99 joequant 470204 # cinnamon-session version fixes location of helper app
100     Requires: cinnamon-session
101 joequant 321289 # needed for schemas
102     Requires: at-spi2-atk
103     # needed for on-screen keyboard
104 joequant 434268 Requires: caribou
105 joequant 321289 # 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 joequant 471493 Requires: python-pam
112     Requires: python-pexpect
113     Requires: python-pillow
114     Requires: cinnamon-control-center
115     Requires: cinnamon-screensaver
116 joequant 474263 Requires: cinnamon-translations
117 joequant 463340 # fix 10916
118     Requires: gnome-themes-standard
119 joequant 468766 # fix cinnamon startup crashes
120     Requires: typelib(fontconfig)
121 joequant 471459 # include cjs introspection
122     Requires: cjs
123 joequant 564154 # Mate polkit
124     Requires: mate-polkit
125 joequant 468766
126 joequant 559926 # 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 joequant 321289 %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 joequant 490051 %setup -q -n Cinnamon-%{version}
142 joequant 433852 %patch0 -p1
143 joequant 564154 %patch1 -p1
144     %patch2 -p1
145 joequant 564206 %patch3 -p1
146 joequant 474263
147 joequant 321289 # remove gschema
148     rm -rf data/org.cinnamon.gschema.xml
149 joequant 615358 # move items to /usr/share
150     mv files/usr/lib/* files%{_datadir}
151     grep -r -l /usr/lib files%{_datadir} files%{_bindir} | \
152 joequant 434438 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 joequant 615358 sed -i -e 's@-OOt@-t@g' files%{_bindir}/cinnamon-menu-editor
155 joequant 321289 rm -rf files/usr/lib
156 joequant 434268
157     # have cinnamon use mageia app system
158 joequant 615358 grep -r -l cinnamon-applications.menu files%{_datadir} files%{_bindir} src | \
159     xargs sed -i -e 's@cinnamon-applications@applications@g'
160 joequant 434268
161 joequant 321289 %{__mkdir_p} files%{_sysconfdir}/X11/wmsession.d
162     install -pm 644 %SOURCE5 %SOURCE6 files%{_sysconfdir}/X11/wmsession.d
163 joequant 434268
164     # files replaced with mageia files
165     rm -rf files%{_sysconfdir}/xdg
166 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
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 joequant 476700 %configure2_5x \
176     --disable-static \
177     --disable-rpath \
178     --enable-compile-warnings=yes \
179     --enable-introspection=yes
180 joequant 321289 %make V=1
181    
182     %install
183 joequant 434268 %makeinstall_std
184 joequant 321289
185     # Remove .la file
186 joequant 434268 rm -rf %{buildroot}/%{_libdir}/cinnamon/libcinnamon.la
187 joequant 321289
188 joequant 564154 install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/glib-2.0/schemas/cinnamon-mageia.gschema.override
189 joequant 476700
190 joequant 564154 # install polkik autostart desktop file
191     install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/
192    
193 joequant 434268 desktop-file-validate %{buildroot}%{_datadir}/applications/cinnamon.desktop
194     desktop-file-validate %{buildroot}%{_datadir}/applications/cinnamon2d.desktop
195 joequant 564154 desktop-file-validate %{buildroot}%{_datadir}/applications/polkit-cinnamon-authentication-agent-1.desktop
196 joequant 321289
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 joequant 434268 --dir=%{buildroot}%{_datadir}/applications \
204     %{buildroot}%{_datadir}/applications/*
205 joequant 321289
206 joequant 496782 # 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 colin 567692 %{buildroot}%{_datadir}/cinnamon-settings/bin/capi.py
210 joequant 496782 %endif
211    
212 colin 567692 # 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 joequant 321289 %find_lang %{name}
219     %files -f %{name}.lang
220     %doc COPYING README
221     %{_bindir}/cinnamon
222 joequant 398310 %{_bindir}/cinnamon-looking-glass
223 joequant 321289 %{_bindir}/cinnamon2d
224 joequant 470204 %{_bindir}/cinnamon-desktop-editor
225     %{_bindir}/cinnamon-settings-users
226     %{_bindir}/cinnamon-session-cinnamon
227     %{_bindir}/cinnamon-session-cinnamon2d
228 joequant 411935 %{_bindir}/cinnamon-launcher
229 joequant 321289 %{_bindir}/cinnamon-menu-editor
230     %{_bindir}/cinnamon-settings
231     %{_bindir}/cinnamon-extension-tool
232 joequant 398310 %{_bindir}/cinnamon-screensaver-lock-dialog
233 joequant 474263 %{_bindir}/cinnamon-json-makepot
234 joequant 321289 %{_sysconfdir}/X11/wmsession.d/*cinnamon*
235     %{_datadir}/desktop-directories/cinnamon-*.directory
236 joequant 476700 %{_datadir}/glib-2.0/schemas/*
237 joequant 321289 %{_datadir}/applications/cinnamon.desktop
238     %{_datadir}/applications/cinnamon2d.desktop
239     %{_datadir}/applications/cinnamon-settings.desktop
240 joequant 470204 %{_datadir}/applications/cinnamon-settings-users.desktop
241 joequant 321289 %{_datadir}/applications/cinnamon-add-panel-launcher.desktop
242     %{_datadir}/applications/cinnamon-menu-editor.desktop
243 joequant 564154 %{_datadir}/applications/polkit-cinnamon-authentication-agent-1.desktop
244 joequant 470204 %{_datadir}/cinnamon-session/sessions/cinnamon*.session
245 joequant 321289 %{_datadir}/cinnamon/
246 joequant 615358 %{_datadir}/cinnamon-*/
247 joequant 321289 %{_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