]> git.pld-linux.org Git - packages/mate-session-manager.git/blob - mate-session-manager.spec
BR: pangox-compat-devel, cleanup deps by cleanbuild
[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:  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-static \
60         %{!?with_apidocs:--disable-docbook-docs} \
61         %{?with_apidocs:--enable-docbook-docs --docdir=%{_gtkdocdir}/%{name}} \
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
70 rm -rf $RPM_BUILD_ROOT
71 %{__make} install \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 desktop-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
84 rm -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
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*
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
111
112 %if %{with apidocs}
113 %files apidocs
114 %defattr(644,root,root,755)
115 %{_gtkdocdir}/%{name}
116 %endif
This page took 0.058965 seconds and 4 git commands to generate.