]> git.pld-linux.org Git - packages/mate-session-manager.git/blame - mate-session-manager.spec
- disabled upower support, doesn't work with upower 0.99.0
[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
a1bac138 38#BuildRequires: 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
a1bac138 61#Requires: 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 \
a1bac138 97 --disable-upower \
16227bc9 98 --with-default-wm=marco \
ceb8a0bb
JB
99 --with-gnu-ld \
100 %{?with_gtk3:--with-gtk=3.0} \
101 %{__with_without systemd} \
16227bc9 102 --with-x
16c4cc02
ER
103
104%{__make}
16227bc9
ER
105
106%install
107rm -rf $RPM_BUILD_ROOT
108%{__make} install \
109 DESTDIR=$RPM_BUILD_ROOT
110
16c4cc02
ER
111# mate < 1.5 did not exist in pld, avoid dependency on mate-conf
112%{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-session.convert
87b82615 113%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn
16c4cc02 114
16227bc9
ER
115desktop-file-install \
116 --remove-category="MATE" \
117 --add-category="X-Mate" \
118 --delete-original \
119 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
ceb8a0bb 120 $RPM_BUILD_ROOT%{_desktopdir}/mate-session-properties.desktop
16227bc9
ER
121
122%find_lang %{name}
123
124%clean
125rm -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)
ceb8a0bb 137%doc AUTHORS ChangeLog MAINTAINERS NEWS README
16227bc9
ER
138%attr(755,root,root) %{_bindir}/mate-session
139%attr(755,root,root) %{_bindir}/mate-session-properties
140%attr(755,root,root) %{_bindir}/mate-session-save
141%attr(755,root,root) %{_bindir}/mate-wm
4c0f736c
ER
142%{_mandir}/man1/mate-session-properties.1*
143%{_mandir}/man1/mate-session-save.1*
144%{_mandir}/man1/mate-session.1*
145%{_mandir}/man1/mate-wm.1*
74d2f6d8 146%{_datadir}/mate-session-manager
16227bc9
ER
147%{_datadir}/glib-2.0/schemas/org.mate.session.gschema.xml
148%{_datadir}/xsessions/mate.desktop
ceb8a0bb
JB
149%{_desktopdir}/mate-session-properties.desktop
150%{_iconsdir}/hicolor/*x*/apps/mate-session-properties.png
151%{_iconsdir}/hicolor/scalable/apps/mate-session-properties.svg
baa3f594
ER
152
153%if %{with apidocs}
154%files apidocs
155%defattr(644,root,root,755)
156%{_gtkdocdir}/%{name}
157%endif
This page took 0.159791 seconds and 4 git commands to generate.