]> git.pld-linux.org Git - packages/mate-session-manager.git/blame - mate-session-manager.spec
use 1.6.0 tarball
[packages/mate-session-manager.git] / mate-session-manager.spec
CommitLineData
baa3f594 1#
cb073b84
ER
2# TODO
3# - Terminal=true, depends in mate-terminal, but probably should take preferred terminal application
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
ER
6# Conditional build:
7%bcond_with apidocs # DocBook docs (incomplete)
0af2586e 8%bcond_without systemd # enable systemd support for default (when systemd is not running fallback to ConsoleKit)
baa3f594 9
16227bc9
ER
10Summary: MATE Desktop session manager
11Name: mate-session-manager
7500b0bd 12Version: 1.6.0
16c4cc02 13Release: 1
16227bc9
ER
14License: GPL v2+
15Group: X11/Applications
7500b0bd
ER
16Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
17# Source0-md5: a8e1e83cabbf0ec3ec130c07f9038dcd
4c0f736c
ER
18URL: http://wiki.mate-desktop.org/mate-session-manager
19BuildRequires: dbus-glib-devel
16227bc9 20BuildRequires: desktop-file-utils
4c0f736c 21BuildRequires: glib2-devel >= 1:2.16.0
4c0f736c 22BuildRequires: gtk+2-devel >= 2:2.14.0
4c0f736c 23BuildRequires: intltool >= 0.40.0
16227bc9 24BuildRequires: mate-common
e799e06d 25BuildRequires: pangox-compat-devel
0af2586e 26%{?with_systemd:BuildRequires: systemd-devel >= 183}
16227bc9 27BuildRequires: tar >= 1:1.22
4c0f736c 28BuildRequires: upower-devel >= 0.9.0
baa3f594 29%{?with_apidocs:BuildRequires: xmlto}
4c0f736c 30BuildRequires: xorg-lib-libSM-devel
16227bc9
ER
31BuildRequires: xz
32Requires: glib2 >= 1:2.26.0
33Requires: gsettings-desktop-schemas
34Requires: gtk-update-icon-cache
35Requires: hicolor-icon-theme
afecfdd3 36Requires: mate-desktop >= 1.5
9c5c521b
ER
37# needed to satisfy 'filemanager' component (may be changed if alternatives available)
38Requires: mate-file-manager
39# needed to satisfy 'panel' component (may be changed if alternatives available)
40Requires: mate-panel
41# needed to satisfy 'windowmanager' component (may be changed if alternatives available)
42Requires: mate-window-manager
16227bc9
ER
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
4132989e 46MATE Desktop session manager.
16227bc9 47
baa3f594
ER
48%package apidocs
49Summary: Session Manager D-Bus API Reference
50Summary(pl.UTF-8): Dokumentacja API Session Manager
51Group: Documentation
52
53%description apidocs
54Session Manager D-Bus API Reference.
55
56%description apidocs -l pl.UTF-8
57Dokumentacja API Session Manager.
58
16227bc9
ER
59%prep
60%setup -q
61
62%build
63NOCONFIGURE=1 ./autogen.sh
64%configure \
16c4cc02 65 --disable-silent-rules \
16227bc9 66 --disable-static \
baa3f594
ER
67 %{!?with_apidocs:--disable-docbook-docs} \
68 %{?with_apidocs:--enable-docbook-docs --docdir=%{_gtkdocdir}/%{name}} \
0af2586e 69 %{__enable_disable systemd systemd} \
16227bc9
ER
70 --enable-ipv6 \
71 --with-gtk=2.0 \
72 --with-gnu-ld \
73 --with-default-wm=marco \
74 --with-x
16c4cc02
ER
75
76%{__make}
16227bc9
ER
77
78%install
79rm -rf $RPM_BUILD_ROOT
80%{__make} install \
81 DESTDIR=$RPM_BUILD_ROOT
82
16c4cc02
ER
83# mate < 1.5 did not exist in pld, avoid dependency on mate-conf
84%{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-session.convert
85
16227bc9
ER
86desktop-file-install \
87 --remove-category="MATE" \
88 --add-category="X-Mate" \
89 --delete-original \
90 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
91$RPM_BUILD_ROOT%{_desktopdir}/mate-session-properties.desktop
92
93%find_lang %{name}
94
95%clean
96rm -rf $RPM_BUILD_ROOT
97
98%post
99%update_icon_cache hicolor
100%glib_compile_schemas
101
102%postun
103%update_icon_cache hicolor
104%glib_compile_schemas
105
106%files -f %{name}.lang
107%defattr(644,root,root,755)
108%doc AUTHORS COPYING README
109%attr(755,root,root) %{_bindir}/mate-session
110%attr(755,root,root) %{_bindir}/mate-session-properties
111%attr(755,root,root) %{_bindir}/mate-session-save
112%attr(755,root,root) %{_bindir}/mate-wm
4c0f736c
ER
113%{_mandir}/man1/mate-session-properties.1*
114%{_mandir}/man1/mate-session-save.1*
115%{_mandir}/man1/mate-session.1*
116%{_mandir}/man1/mate-wm.1*
16227bc9
ER
117%{_desktopdir}/mate-session-properties.desktop
118%{_datadir}/mate-session
119%{_iconsdir}/hicolor/*/apps/*.png
120%{_iconsdir}/hicolor/scalable/apps/mate-session-properties.svg
121%{_datadir}/glib-2.0/schemas/org.mate.session.gschema.xml
122%{_datadir}/xsessions/mate.desktop
baa3f594
ER
123
124%if %{with apidocs}
125%files apidocs
126%defattr(644,root,root,755)
127%{_gtkdocdir}/%{name}
128%endif
This page took 0.125369 seconds and 4 git commands to generate.