File libmatekbd.spec of Package libmatekbd
#
# spec file for libmatekbd
#
# 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: libmatekbd
%define _name libmatekbd1
Version: 1.8.0
Release: 0
License: LGPL-2.1+
Summary: MATE Desktop keyboard configuration libraries
Url: https://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: mate-common
BuildRequires: pkgconfig(gdk-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libxklavier)
BuildRequires: update-desktop-files
%description
This package provides libmatekdb, an API to manage the keyboard in MATE
Desktop applications.
%package -n matekbd-common
Summary: MATE Desktop keyboard configuration common files
Group: System/GUI/Other
%description -n matekbd-common
This package provides libmatekdb, an API to manage the keyboard in MATE
Desktop applications.
%package devel
Summary: MATE Desktop keyboard configuration development files
Group: Development/Libraries/Other
Requires: %{_name} = %{version}
Requires: matekbd-common = %{version}
%description devel
This package provides libmatekdb, an API to manage the keyboard in MATE
Desktop applications.
%package -n %{_name}
Summary: MATE Desktop keyboard configuration shared libraries
Group: System/Libraries
Provides: %{name} = %{version}
Requires: matekbd-common
Recommends: %{name}-lang
%description -n %{_name}
This package provides libmatekdb, an API to manage the keyboard in MATE
Desktop applications.
%lang_package
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
if [ -d %{buildroot}%{_datadir}/MateConf ]; then
rm -rf %{buildroot}%{_datadir}/MateConf
fi
%post -n matekbd-common
%glib2_gsettings_schema_post
%post -n %{_name} -p /sbin/ldconfig
%postun -n matekbd-common
%glib2_gsettings_schema_postun
%postun -n %{_name} -p /sbin/ldconfig
%files -n %{_name}
%defattr(-,root,root,-)
%doc AUTHORS COPYING
%{_libdir}/*.so.*
%files -n matekbd-common
%defattr(-,root,root,-)
%dir %{_datadir}/libmatekbd
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/libmatekbd/ui/
%files devel
%defattr(-,root,root,-)
%doc ChangeLog
%{_includedir}/%{name}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%changelog