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