3 %bcond_without apidocs # disable gtk-doc
5 Summary: Shared code for mate-panel, mate-session, mate-file-manager, etc
9 License: GPL v2+ and LGPL v2+ and MIT
10 Group: X11/Applications
11 Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
12 # Source0-md5: c3b13f8d9125578c98cdf4c8ef940bfb
13 URL: http://wiki.mate-desktop.org/mate-desktop
14 BuildRequires: desktop-file-utils
15 BuildRequires: docbook-dtd412-xml
16 BuildRequires: gettext-devel
17 BuildRequires: intltool >= 0.40.0
18 BuildRequires: libunique-devel
19 BuildRequires: mate-common
20 %{?with_apidocs:BuildRequires: mate-doc-utils >= 1.1.0}
21 BuildRequires: rpmbuild(find_lang) >= 1.36
22 BuildRequires: startup-notification-devel
23 BuildRequires: tar >= 1:1.22
25 Requires: %{name}-libs = %{version}-%{release}
26 Requires: glib2 >= 1:2.26.0
27 # for identifying monitors from pnp.ids (libmate-desktop/display-name.c)
28 Requires: hwdata >= 0.243-6
29 Requires: xdg-user-dirs-gtk >= 0.10-2
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 The mate-desktop package contains an internal library (libmatedesktop)
34 used to implement some portions of the MATE desktop, and also some
35 data files and other shared components of the MATE user environment.
38 Summary: Shared libraries for libmate-desktop
43 Shared libraries for libmate-desktop
46 Summary: Libraries and headers for libmate-desktop
48 Group: Development/Libraries
49 Requires: %{name}-libs = %{version}-%{release}
52 Libraries and header files for the MATE-internal private library
56 Summary: mate-desktop API documentation
57 Summary(pl.UTF-8): Dokumentacja API mate-desktop
59 Requires: gtk-doc-common
62 mate-desktop API documentation.
64 %description apidocs -l pl.UTF-8
65 Dokumentacja API mate-desktop.
71 NOCONFIGURE=1 ./autogen.sh
73 --disable-silent-rules \
75 --disable-scrollkeeper \
77 --disable-schemas-compile \
78 --with-pnp-ids-path=/lib/hwdata/pnp.ids \
80 %{?with_apidocs:--enable-gtk-doc --with-html-dir=%{_gtkdocdir}} \
81 --with-omf-dir=%{_datadir}/omf/%{name}
86 rm -rf $RPM_BUILD_ROOT
88 DESTDIR=$RPM_BUILD_ROOT
90 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmate-desktop-2.la
92 # mate < 1.5 did not exist in pld, avoid dependency on mate-conf
93 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-desktop.convert
95 desktop-file-install \
96 --remove-category="MATE" \
97 --add-category="X-Mate" \
99 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
100 $RPM_BUILD_ROOT%{_desktopdir}/mate-about.desktop
102 %find_lang %{name} --with-mate --with-omf --all-name
104 %post libs -p /sbin/ldconfig
105 %postun libs -p /sbin/ldconfig
108 %glib_compile_schemas
111 %glib_compile_schemas
114 rm -rf $RPM_BUILD_ROOT
116 %files -f %{name}.lang
117 %defattr(644,root,root,755)
118 %doc AUTHORS COPYING COPYING.LIB NEWS README
119 %attr(755,root,root) %{_bindir}/mate-about
120 %{_mandir}/man1/mate-about.1*
121 %{_pixmapsdir}/gnu-cat*
122 %{_desktopdir}/mate-about.desktop
123 %dir %{_datadir}/omf/%{name}/fdl
124 %dir %{_datadir}/omf/%{name}/gpl
125 %dir %{_datadir}/omf/%{name}/lgpl
126 %{_datadir}/mate-about
127 %{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libmate-desktop-2.so.*.*.*
132 %ghost %{_libdir}/libmate-desktop-2.so.17
135 %defattr(644,root,root,755)
136 %{_libdir}/libmate-desktop-2.so
137 %{_pkgconfigdir}/mate-desktop-2.0.pc
138 %{_includedir}/mate-desktop-2.0
142 %defattr(644,root,root,755)
143 %{_gtkdocdir}/mate-desktop