]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO | |
3 | # - Terminal=true, depends on mate-terminal, but probably should take preferred terminal application | |
4 | # mate-session[4970]: WARNING: Could not launch application 'nvidia-settings.desktop': Unable to start application: Failed to execute child process "xdg-terminal" (No such file or directory) | |
5 | ||
6 | # Conditional build: | |
7 | %bcond_without apidocs # DocBook docs | |
8 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x | |
9 | %bcond_without systemd # systemd support for default (when systemd is not running fallback to ConsoleKit) | |
10 | ||
11 | Summary: MATE Desktop session manager | |
12 | Summary(pl.UTF-8): Zarządca sesji środowiska MATE Desktop | |
13 | Name: mate-session-manager | |
14 | Version: 1.8.1 | |
15 | Release: 1 | |
16 | License: GPL v2+ | |
17 | Group: X11/Applications | |
18 | Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz | |
19 | # Source0-md5: b19b9e585f7343e34bff9b58c4f1d963 | |
20 | Patch0: %{name}-en_us_suspend_hotkey.patch | |
21 | URL: http://wiki.mate-desktop.org/mate-session-manager | |
22 | BuildRequires: autoconf >= 2.53 | |
23 | BuildRequires: automake >= 1:1.9 | |
24 | BuildRequires: dbus-glib-devel >= 0.76 | |
25 | BuildRequires: desktop-file-utils | |
26 | BuildRequires: glib2-devel >= 1:2.26.0 | |
27 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.14.0} | |
28 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} | |
29 | BuildRequires: intltool >= 0.40.0 | |
30 | BuildRequires: libtool >= 1:1.4.3 | |
31 | %{?with_apidocs:BuildRequires: libxslt-progs} | |
32 | BuildRequires: mate-common | |
33 | BuildRequires: pango-devel | |
34 | BuildRequires: pangox-compat-devel | |
35 | BuildRequires: pkgconfig | |
36 | %{?with_systemd:BuildRequires: systemd-devel >= 1:183} | |
37 | BuildRequires: tar >= 1:1.22 | |
38 | #BuildRequires: upower-devel >= 0.9.0 | |
39 | %{?with_apidocs:BuildRequires: xmlto} | |
40 | BuildRequires: xorg-lib-libICE-devel | |
41 | BuildRequires: xorg-lib-libSM-devel | |
42 | BuildRequires: xorg-lib-libXau-devel | |
43 | BuildRequires: xorg-lib-libXext-devel | |
44 | BuildRequires: xorg-lib-libXrender-devel | |
45 | BuildRequires: xorg-lib-libXtst-devel | |
46 | BuildRequires: xz | |
47 | # needed to satisfy 'filemanager' component (may be changed if alternatives available) | |
48 | Requires: caja | |
49 | Requires: dbus-glib >= 0.76 | |
50 | Requires: glib2 >= 1:2.26.0 | |
51 | Requires: gsettings-desktop-schemas | |
52 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.14.0} | |
53 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
54 | Requires: gtk-update-icon-cache | |
55 | Requires: hicolor-icon-theme | |
56 | # needed to satisfy 'windowmanager' component (may be changed if alternatives available) | |
57 | Requires: marco | |
58 | Requires: mate-desktop >= 1.5 | |
59 | # needed to satisfy 'panel' component (may be changed if alternatives available) | |
60 | Requires: mate-panel | |
61 | #Requires: upower-libs >= 0.9.0 | |
62 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
63 | ||
64 | %description | |
65 | MATE Desktop session manager. | |
66 | ||
67 | %description -l pl.UTF-8 | |
68 | Zarządca sesji środowiska MATE Desktop. | |
69 | ||
70 | %package apidocs | |
71 | Summary: MATE Session Manager D-Bus API Reference | |
72 | Summary(pl.UTF-8): Dokumentacja API D-Bus MATE Session Managera | |
73 | Group: Documentation | |
74 | ||
75 | %description apidocs | |
76 | Session Manager D-Bus API Reference. | |
77 | ||
78 | %description apidocs -l pl.UTF-8 | |
79 | Dokumentacja API D-Bus MATE Session Managera. | |
80 | ||
81 | %prep | |
82 | %setup -q | |
83 | %patch0 -p1 | |
84 | ||
85 | %build | |
86 | %{__intltoolize} | |
87 | %{__aclocal} | |
88 | %{__autoheader} | |
89 | %{__autoconf} | |
90 | %{__automake} | |
91 | %configure \ | |
92 | %{!?with_apidocs:--disable-docbook-docs} \ | |
93 | %{?with_apidocs:--enable-docbook-docs --docdir=%{_gtkdocdir}/%{name}} \ | |
94 | --enable-ipv6 \ | |
95 | --disable-silent-rules \ | |
96 | --disable-static \ | |
97 | --disable-upower \ | |
98 | --with-default-wm=marco \ | |
99 | --with-gnu-ld \ | |
100 | %{?with_gtk3:--with-gtk=3.0} \ | |
101 | %{__with_without systemd} \ | |
102 | --with-x | |
103 | ||
104 | %{__make} | |
105 | ||
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | %{__make} install \ | |
109 | DESTDIR=$RPM_BUILD_ROOT | |
110 | ||
111 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf | |
112 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-session.convert | |
113 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn | |
114 | ||
115 | desktop-file-install \ | |
116 | --remove-category="MATE" \ | |
117 | --add-category="X-Mate" \ | |
118 | --delete-original \ | |
119 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
120 | $RPM_BUILD_ROOT%{_desktopdir}/mate-session-properties.desktop | |
121 | ||
122 | %find_lang %{name} | |
123 | ||
124 | %clean | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %post | |
128 | %update_icon_cache hicolor | |
129 | %glib_compile_schemas | |
130 | ||
131 | %postun | |
132 | %update_icon_cache hicolor | |
133 | %glib_compile_schemas | |
134 | ||
135 | %files -f %{name}.lang | |
136 | %defattr(644,root,root,755) | |
137 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README | |
138 | %attr(755,root,root) %{_bindir}/mate-session | |
139 | %attr(755,root,root) %{_bindir}/mate-session-properties | |
140 | %attr(755,root,root) %{_bindir}/mate-session-save | |
141 | %attr(755,root,root) %{_bindir}/mate-wm | |
142 | %{_mandir}/man1/mate-session-properties.1* | |
143 | %{_mandir}/man1/mate-session-save.1* | |
144 | %{_mandir}/man1/mate-session.1* | |
145 | %{_mandir}/man1/mate-wm.1* | |
146 | %{_datadir}/mate-session-manager | |
147 | %{_datadir}/glib-2.0/schemas/org.mate.session.gschema.xml | |
148 | %{_datadir}/xsessions/mate.desktop | |
149 | %{_desktopdir}/mate-session-properties.desktop | |
150 | %{_iconsdir}/hicolor/*x*/apps/mate-session-properties.png | |
151 | %{_iconsdir}/hicolor/scalable/apps/mate-session-properties.svg | |
152 | ||
153 | %if %{with apidocs} | |
154 | %files apidocs | |
155 | %defattr(644,root,root,755) | |
156 | %{_gtkdocdir}/%{name} | |
157 | %endif |