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