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