File mate-desktop.spec of Package mate-desktop
#
# spec file for mate-desktop
#
# 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-desktop
%define _name libmate-desktop-2-17
Version: 1.8.1
Release: 0
License: GPL-2.0+ and LGPL-2.1+ and MIT
Summary: Library with common API for various MATE modules
Url: http://mate-desktop.org/
Group: System/GUI/Other
Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
Source1: user-dirs-update-mate.desktop
Requires: xdg-user-dirs-gtk
Recommends: %{name}-lang
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxml2-python
BuildRequires: mate-common
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(unique-1.0)
BuildRequires: pkgconfig(xrandr)
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
%description
This package contain the library with common API for various MATE modules.
%package -n %{_name}
Summary: Library with common API for various MATE modules
Group: System/Libraries
Requires: %{name}-gsettings-schemas = %{version}
%description -n %{_name}
This package contain the library with common API for various MATE modules.
# needed to get mate desktop applications usable standalone as it
# contains shared schemas
%package gsettings-schemas
Summary: Mate Desktop schemas
License: LGPL-2.0+
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: %{_name} = %{version}-%{release}
%description devel
This package contain the library with common API for various MATE modules.
%lang_package
%prep
%setup -q
%build
%configure \
--disable-static
make %{?_smp_mflags}
%install
%makeinstall
%find_lang %{name}
find %{buildroot}%{_libdir} -type f -name "*.la" -print -delete
install -D -m 0644 %{S:1} \
%{buildroot}%{_sysconfdir}/xdg/autostart/user-dirs-update-mate.desktop
%suse_update_desktop_file mate-about
%suse_update_desktop_file mate-user-guide
if [ -d %{buildroot}%{_datadir}/MateConf ]; then
rm -rf %{buildroot}%{_datadir}/MateConf
fi
# remove conflicting files with gnome
rm -fr %{buildroot}%{_datadir}/help/*/fdl
rm -fr %{buildroot}%{_datadir}/help/*/gpl
rm -fr %{buildroot}%{_datadir}/help/*/lgpl
%post
%desktop_database_post
%post gsettings-schemas
%glib2_gsettings_schema_post
%post -n %{_name} -p /sbin/ldconfig
%postun
%desktop_database_postun
%postun gsettings-schemas
%glib2_gsettings_schema_postun
%postun -n %{_name} -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-gsettings-toggle
%{_datadir}/applications/mate-about.desktop
%{_datadir}/applications/mate-user-guide.desktop
%{_datadir}/lib%{name}/
%{_datadir}/mate-about/mate-version.xml
%{_datadir}/help/C/
%{_mandir}/man1/mate-about.1.gz
%{_mandir}/man1/mate-gsettings-toggle.1.gz
%{?with_gnucat: %{_datadir}/pixmaps/gnu-cat*}
%files -n %{_name}
%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,-)
%{_datadir}/help/
%exclude %{_datadir}/help/C/
%changelog