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