File mate-control-center.spec of Package mate-control-center
#
# spec file for mate-control-center
#
# Copyright (c) 2014 SUSE LINUX Products 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/
Name: mate-control-center
%define _name libmate-window-settings1
%define _slab libslab0
Version: 1.8.3
Release: 0
License: GPL-2.0+
Summary: MATE Desktop control center
Url: http://mate-desktop.org/
Group: System/GUI/Other
Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
%glib2_gsettings_schema_requires
BuildRequires: fdupes
BuildRequires: mate-common
BuildRequires: libxml2-python
BuildRequires: pkgconfig(dconf)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(xft)
BuildRequires: pkgconfig(mate-desktop-2.0) >= 1.8.0
BuildRequires: pkgconfig(libcanberra-gtk)
BuildRequires: pkgconfig(libmate-menu) >= 1.8.0
BuildRequires: pkgconfig(libmarco-private) >= 1.8.0
BuildRequires: pkgconfig(mate-settings-daemon) >= 1.8.0
BuildRequires: pkgconfig(unique-1.0)
BuildRequires: pkgconfig(libmatekbd)
BuildRequires: pkgconfig(libxklavier)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(sm)
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
BuildRequires: xorg-x11-devel
Recommends: %{name}-lang
# libslab
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(librsvg-2.0)
BuildRequires: pkgconfig(pango)
Requires: gsettings-backend-dconf
Requires: gsettings-desktop-schemas
Requires: %{name}-branding = %{version}
%package branding-upstream
Summary: The MATE Control Center -- Upstream Definition of Shell Content
Group: System/GUI/Other
Requires: %{name} = %{version}
Supplements: packageand(%{name}:branding-upstream)
Provides: %{name}-branding = %{version}
Conflicts: otherproviders(%{name}-branding)
BuildArch: noarch
#BRAND: This package contains the definitions of the content appearing
#BRAND: in the shell (/etc/xdg/menus/matecc.menu).
%description branding-upstream
The control center is MATE's main interface for configuration of
various aspects of your desktop.
This package provides the upstream definition of what appears in the
control center.
%description
The control center is MATE's main interface for configuration of various
aspects of your desktop.
%package -n %{_slab}
Summary: MATE Desktop libslab port
Group: System/Libraries
%description -n %{_slab}
This library makes it easy to create tile-based UI for MATE, as seen in
gnome-main-menu.
%package devel
Summary: Header files for MATE Control Center
Group: Development/Libraries/Other
Requires: %{_name} = %{version}
%description devel
The control center is MATE's main interface for configuration of various
aspects of your desktop.
This package provides MATE control center development files.
%package -n libslab-devel
Summary: Header files for libslab
Group: Development/Libraries/Other
Requires: %{_slab} = %{version}
%description -n libslab-devel
This library makes it easy to create tile-based UI for MATE, as seen in
gnome-main-menu.
This package provides libslab development files.
%package -n %{_name}
Summary: Utility library for getting window manager settings
Group: System/Libraries
%description -n %{_name}
This library is used by MATE control center to change preferences
of window managers.
%lang_package
%prep
%setup -q
%build
%configure \
--disable-static \
--disable-scrollkeeper \
--disable-update-mimedb \
--disable-aboutme \
--with-libslab
make %{?_smp_mflags} V=1
%install
%makeinstall
rm -f %{buildroot}%{_datadir}/applications/mimeinfo.cache
find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/mate-settings-mouse.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/mate-network-properties.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/mate-appearance-properties.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/mate-keybinding.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/mate-font-viewer.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/mate-theme-installer.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/mate-default-applications-properties.desktop
if [ -d %{buildroot}%{_datadir}/MateConf ]; then
rm -r %{buildroot}%{_datadir}/MateConf
fi
%fdupes -s %{buildroot}%{_datadir}/help
%post
%desktop_database_post
%mime_database_post
%glib2_gsettings_schema_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%mime_database_postun
%glib2_gsettings_schema_postun
%icon_theme_cache_postun
%post -n %{_name} -p /sbin/ldconfig
%postun -n %{_name} -p /sbin/ldconfig
%post -n %{_slab} -p /sbin/ldconfig
%postun -n %{_slab} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%dir %{_libdir}/window-manager-settings
%{_sbindir}/mate-display-properties-install-systemwide
%{_bindir}/mate-*
%{_datadir}/applications/*.desktop
%{_datadir}/mate-control-center/*
%dir %{_datadir}/mate/
%{_datadir}/mate/cursor-fonts
%{_datadir}/mime/packages/mate-theme-package.xml
%{_datadir}/polkit-1/actions/org.mate.randr.policy
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/help/C/%{name}
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{_datadir}/thumbnailers/
# From upstream branding
%exclude %{_sysconfdir}/xdg/menus/matecc.menu
%dir %{_datadir}/desktop-directories
%{_datadir}/desktop-directories/matecc.directory
%{_libdir}/window-manager-settings/libmarco.so
%{_mandir}/man1/mate-*.1.gz
%files branding-upstream
%defattr (-, root, root)
%dir %{_sysconfdir}/xdg/menus
%config %{_sysconfdir}/xdg/menus/matecc.menu
%files -n %{_slab}
%defattr(-,root,root)
%{_libdir}/libslab.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/mate-default-applications.pc
%{_libdir}/pkgconfig/mate-keybindings.pc
%{_includedir}/mate-window-settings-2.0/
%{_libdir}/libmate-window-settings.so
%{_libdir}/pkgconfig/mate-window-settings-2.0.pc
%files -n libslab-devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/libslab.pc
%{_includedir}/libslab/
%{_libdir}/libslab.so
%files -n %{_name}
%defattr(-,root,root)
%{_libdir}/libmate-window-settings.so.*
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog