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