]> git.pld-linux.org Git - packages/mate-session-manager.git/blame - mate-session-manager.spec
up to 1.8.1
[packages/mate-session-manager.git] / mate-session-manager.spec
CommitLineData
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 11Summary: MATE Desktop session manager
ceb8a0bb 12Summary(pl.UTF-8): Zarządca sesji środowiska MATE Desktop
16227bc9 13Name: mate-session-manager
8d1e2ec5 14Version: 1.8.1
16c4cc02 15Release: 1
16227bc9
ER
16License: GPL v2+
17Group: X11/Applications
87b82615 18Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
8d1e2ec5 19# Source0-md5: b19b9e585f7343e34bff9b58c4f1d963
60ee2bdc 20Patch0: %{name}-en_us_suspend_hotkey.patch
4c0f736c 21URL: http://wiki.mate-desktop.org/mate-session-manager
ceb8a0bb
JB
22BuildRequires: autoconf >= 2.53
23BuildRequires: automake >= 1:1.9
24BuildRequires: dbus-glib-devel >= 0.76
16227bc9 25BuildRequires: desktop-file-utils
ceb8a0bb
JB
26BuildRequires: 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 29BuildRequires: intltool >= 0.40.0
ceb8a0bb
JB
30BuildRequires: libtool >= 1:1.4.3
31%{?with_apidocs:BuildRequires: libxslt-progs}
16227bc9 32BuildRequires: mate-common
ceb8a0bb 33BuildRequires: pango-devel
e799e06d 34BuildRequires: pangox-compat-devel
ceb8a0bb
JB
35BuildRequires: pkgconfig
36%{?with_systemd:BuildRequires: systemd-devel >= 1:183}
16227bc9 37BuildRequires: tar >= 1:1.22
4c0f736c 38BuildRequires: upower-devel >= 0.9.0
baa3f594 39%{?with_apidocs:BuildRequires: xmlto}
ceb8a0bb 40BuildRequires: xorg-lib-libICE-devel
4c0f736c 41BuildRequires: xorg-lib-libSM-devel
ceb8a0bb
JB
42BuildRequires: xorg-lib-libXau-devel
43BuildRequires: xorg-lib-libXext-devel
44BuildRequires: xorg-lib-libXrender-devel
45BuildRequires: xorg-lib-libXtst-devel
16227bc9 46BuildRequires: xz
87b82615
JP
47# needed to satisfy 'filemanager' component (may be changed if alternatives available)
48Requires: caja
ceb8a0bb 49Requires: dbus-glib >= 0.76
16227bc9
ER
50Requires: glib2 >= 1:2.26.0
51Requires: 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
54Requires: gtk-update-icon-cache
55Requires: hicolor-icon-theme
87b82615
JP
56# needed to satisfy 'windowmanager' component (may be changed if alternatives available)
57Requires: marco
afecfdd3 58Requires: mate-desktop >= 1.5
9c5c521b
ER
59# needed to satisfy 'panel' component (may be changed if alternatives available)
60Requires: mate-panel
ceb8a0bb 61Requires: upower-libs >= 0.9.0
16227bc9
ER
62BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63
64%description
4132989e 65MATE Desktop session manager.
16227bc9 66
ceb8a0bb
JB
67%description -l pl.UTF-8
68Zarządca sesji środowiska MATE Desktop.
69
baa3f594 70%package apidocs
ceb8a0bb
JB
71Summary: MATE Session Manager D-Bus API Reference
72Summary(pl.UTF-8): Dokumentacja API D-Bus MATE Session Managera
baa3f594
ER
73Group: Documentation
74
75%description apidocs
76Session Manager D-Bus API Reference.
77
78%description apidocs -l pl.UTF-8
ceb8a0bb 79Dokumentacja 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
106rm -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
114desktop-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
124rm -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
This page took 0.102434 seconds and 4 git commands to generate.