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