File mate-desktop.spec of Package mate-desktop
#
# spec file for package mate-desktop
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define lname libmate-desktop-2-17
%define _version 1.10
Name: mate-desktop
Version: 1.10.2
Release: 0
Summary: Library with common API for various MATE modules
License: GPL-2.0+ and LGPL-2.1+ and MIT
Group: System/GUI/Other
Url: http://mate-desktop.org/
Source: http://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
Source1: user-dirs-update-mate.desktop
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxml2-python
BuildRequires: mate-common >= 1.9.0
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
BuildRequires: pkgconfig(dconf)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libstartup-notification-1.0)
BuildRequires: pkgconfig(python)
BuildRequires: pkgconfig(xrandr)
Requires: xdg-user-dirs-gtk
Recommends: mate-user-guide
Recommends: %{name}-lang
%description
This package contains the library with common API for various MATE modules.
%lang_package
%package -n mate-user-guide
Summary: User guide for the MATE desktop
Group: Documentation/Other
Requires: yelp
Recommends: mate-user-guide-lang
BuildArch: noarch
%description -n mate-user-guide
This package contains documentation targeted for end-users of
MATE Desktop Environment with general MATE applicability.
%lang_package -n mate-user-guide
%package -n %{lname}
Summary: Library with common API for various MATE modules
Group: System/Libraries
Requires: %{name}-gsettings-schemas = %{version}
%description -n %{lname}
This package contains the library with common API for various MATE modules.
# Separate shared schemas to make MATE desktop applications usable standalone.
%package gsettings-schemas
Summary: Mate Desktop schemas
Group: System/Libraries
%glib2_gsettings_schema_requires
%description gsettings-schemas
This package provides the gsettings schemas for MATE Desktop Environment.
%package devel
Summary: MATE module API library development files
Group: Development/Libraries/Other
Requires: %{lname} = %{version}
%description devel
This package contains the library with common API for various MATE modules.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name} %{?no_lang_C}
%find_lang mate-user-guide %{?no_lang_C}
find %{buildroot} -type f -name "*.la" -delete -print
install -Dm 0644 %{SOURCE1} \
%{buildroot}%{_sysconfdir}/xdg/autostart/user-dirs-update-mate.desktop
%suse_update_desktop_file mate-about
%suse_update_desktop_file mate-color-select
if [ -d %{buildroot}%{_datadir}/MateConf/ ]; then
rm -rf %{buildroot}%{_datadir}/MateConf/
fi
# Remove conflicting with GNOME files.
rm -rf %{buildroot}%{_datadir}/help/*/fdl
rm -rf %{buildroot}%{_datadir}/help/*/gpl
rm -rf %{buildroot}%{_datadir}/help/*/lgpl
%post
%desktop_database_post
%post gsettings-schemas
%glib2_gsettings_schema_post
%post -n %{lname} -p /sbin/ldconfig
%postun
%desktop_database_postun
%postun gsettings-schemas
%glib2_gsettings_schema_postun
%postun -n %{lname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING
%dir %{_datadir}/mate-about
%{_sysconfdir}/xdg/autostart/user-dirs-update-mate.desktop
%{_bindir}/mate-about
%{_bindir}/mate-color-select
%{_datadir}/applications/mate-about.desktop
%{_datadir}/applications/mate-color-select.desktop
%{_datadir}/lib%{name}/
%{_datadir}/mate-about/mate-version.xml
%{_mandir}/man?/*.?%{?ext_man}
%{?with_gnucat: %{_datadir}/pixmaps/gnu-cat*}
%files -n mate-user-guide
%defattr(-,root,root)
%{_datadir}/applications/mate-user-guide.desktop
%doc %{_datadir}/help/C/mate-user-guide/
%files -n mate-user-guide-lang -f mate-user-guide.lang
%defattr(-,root,root)
%files -n %{lname}
%defattr(-,root,root)
%{_libdir}/*.so.*
%files gsettings-schemas
%defattr(-,root,root)
%{_datadir}/glib-2.0/schemas/*.xml
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}-2.0/
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}-2.0.pc
%{_datadir}/gtk-doc/html/%{name}/
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog