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