]>
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 | 7 | %bcond_without apidocs # DocBook docs |
ceb8a0bb | 8 | %bcond_without systemd # systemd support for default (when systemd is not running fallback to ConsoleKit) |
77bc602c | 9 | %bcond_with upower # UPower suspend/hibernate support (0.9.x only) |
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 |
7a8d3224 | 14 | Version: 1.16.1 |
faa7998e | 15 | Release: 1 |
16227bc9 ER |
16 | License: GPL v2+ |
17 | Group: X11/Applications | |
33c27010 | 18 | Source0: http://pub.mate-desktop.org/releases/1.16/%{name}-%{version}.tar.xz |
7a8d3224 | 19 | # Source0-md5: b993895aa50682336cdf14e01aaa4f49 |
4c0f736c | 20 | URL: http://wiki.mate-desktop.org/mate-session-manager |
ceb8a0bb JB |
21 | BuildRequires: autoconf >= 2.53 |
22 | BuildRequires: automake >= 1:1.9 | |
23 | BuildRequires: dbus-glib-devel >= 0.76 | |
16227bc9 | 24 | BuildRequires: desktop-file-utils |
8cc840db | 25 | BuildRequires: glib2-devel >= 1:2.36.0 |
33c27010 | 26 | BuildRequires: gtk+3-devel >= 3.14.0 |
c02f9c0e | 27 | BuildRequires: intltool >= 0.50.1 |
ceb8a0bb JB |
28 | BuildRequires: libtool >= 1:1.4.3 |
29 | %{?with_apidocs:BuildRequires: libxslt-progs} | |
16227bc9 | 30 | BuildRequires: mate-common |
ceb8a0bb | 31 | BuildRequires: pango-devel |
e799e06d | 32 | BuildRequires: pangox-compat-devel |
ceb8a0bb JB |
33 | BuildRequires: pkgconfig |
34 | %{?with_systemd:BuildRequires: systemd-devel >= 1:183} | |
16227bc9 | 35 | BuildRequires: tar >= 1:1.22 |
77bc602c | 36 | %{?with_upower:BuildRequires: upower-devel >= 0.9.0} |
baa3f594 | 37 | %{?with_apidocs:BuildRequires: xmlto} |
ceb8a0bb | 38 | BuildRequires: xorg-lib-libICE-devel |
4c0f736c | 39 | BuildRequires: xorg-lib-libSM-devel |
c02f9c0e | 40 | BuildRequires: xorg-lib-libX11-devel |
ceb8a0bb JB |
41 | BuildRequires: xorg-lib-libXau-devel |
42 | BuildRequires: xorg-lib-libXext-devel | |
43 | BuildRequires: xorg-lib-libXrender-devel | |
44 | BuildRequires: xorg-lib-libXtst-devel | |
b6efe708 | 45 | BuildRequires: xorg-lib-xtrans-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 |
8cc840db | 50 | Requires: glib2 >= 1:2.36.0 |
16227bc9 | 51 | Requires: gsettings-desktop-schemas |
33c27010 | 52 | Requires: gtk+3 >= 3.14.0 |
16227bc9 ER |
53 | Requires: gtk-update-icon-cache |
54 | Requires: hicolor-icon-theme | |
87b82615 JP |
55 | # needed to satisfy 'windowmanager' component (may be changed if alternatives available) |
56 | Requires: marco | |
9c5c521b ER |
57 | # needed to satisfy 'panel' component (may be changed if alternatives available) |
58 | Requires: mate-panel | |
77bc602c | 59 | %{?with_upower:Requires: upower-libs >= 0.9.0} |
16227bc9 ER |
60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
61 | ||
62 | %description | |
4132989e | 63 | MATE Desktop session manager. |
16227bc9 | 64 | |
ceb8a0bb JB |
65 | %description -l pl.UTF-8 |
66 | Zarządca sesji środowiska MATE Desktop. | |
67 | ||
baa3f594 | 68 | %package apidocs |
ceb8a0bb JB |
69 | Summary: MATE Session Manager D-Bus API Reference |
70 | Summary(pl.UTF-8): Dokumentacja API D-Bus MATE Session Managera | |
baa3f594 | 71 | Group: Documentation |
f587b6ef ER |
72 | %if "%{_rpmversion}" >= "5" |
73 | BuildArch: noarch | |
74 | %endif | |
baa3f594 ER |
75 | |
76 | %description apidocs | |
77 | Session Manager D-Bus API Reference. | |
78 | ||
79 | %description apidocs -l pl.UTF-8 | |
ceb8a0bb | 80 | Dokumentacja API D-Bus MATE Session Managera. |
baa3f594 | 81 | |
16227bc9 ER |
82 | %prep |
83 | %setup -q | |
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 \ | |
77bc602c | 97 | %{!?with_upower:--disable-upower} \ |
16227bc9 | 98 | --with-default-wm=marco \ |
ceb8a0bb | 99 | --with-gnu-ld \ |
ceb8a0bb | 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 | ||
7dc05161 | 110 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,jv} |
16c4cc02 | 111 | |
16227bc9 ER |
112 | desktop-file-install \ |
113 | --remove-category="MATE" \ | |
114 | --add-category="X-Mate" \ | |
115 | --delete-original \ | |
116 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
ceb8a0bb | 117 | $RPM_BUILD_ROOT%{_desktopdir}/mate-session-properties.desktop |
16227bc9 | 118 | |
8fb54160 JP |
119 | # not supported by glibc yet |
120 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pms | |
121 | ||
16227bc9 ER |
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) | |
33c27010 | 137 | %doc AUTHORS ChangeLog NEWS README |
16227bc9 | 138 | %attr(755,root,root) %{_bindir}/mate-session |
8cc840db | 139 | %attr(755,root,root) %{_bindir}/mate-session-inhibit |
16227bc9 ER |
140 | %attr(755,root,root) %{_bindir}/mate-session-properties |
141 | %attr(755,root,root) %{_bindir}/mate-session-save | |
142 | %attr(755,root,root) %{_bindir}/mate-wm | |
8cc840db | 143 | %{_mandir}/man1/mate-session-inhibit.1* |
4c0f736c ER |
144 | %{_mandir}/man1/mate-session-properties.1* |
145 | %{_mandir}/man1/mate-session-save.1* | |
146 | %{_mandir}/man1/mate-session.1* | |
147 | %{_mandir}/man1/mate-wm.1* | |
74d2f6d8 | 148 | %{_datadir}/mate-session-manager |
16227bc9 ER |
149 | %{_datadir}/glib-2.0/schemas/org.mate.session.gschema.xml |
150 | %{_datadir}/xsessions/mate.desktop | |
ceb8a0bb JB |
151 | %{_desktopdir}/mate-session-properties.desktop |
152 | %{_iconsdir}/hicolor/*x*/apps/mate-session-properties.png | |
153 | %{_iconsdir}/hicolor/scalable/apps/mate-session-properties.svg | |
baa3f594 ER |
154 | |
155 | %if %{with apidocs} | |
156 | %files apidocs | |
157 | %defattr(644,root,root,755) | |
158 | %{_gtkdocdir}/%{name} | |
159 | %endif |