File libmatekbd.spec of Package libmatekbd
#
# spec file for package libmatekbd
#
# 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 _version 1.10
%define sover 4
Name: libmatekbd
Version: 1.10.0
Release: 0
Summary: MATE Desktop keyboard configuration libraries
License: LGPL-2.1+
Group: System/GUI/Other
Url: https://mate-desktop.org/
Source0: http://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
BuildRequires: mate-common >= 1.9.0
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libxklavier)
%glib2_gsettings_schema_requires
%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 -n %{name}%{sover}
Summary: MATE Desktop keyboard configuration shared libraries
Group: System/Libraries
Requires: matekbd-common
Recommends: %{name}-lang
Provides: %{name} = %{version}
# libmatekbd with a wrong sover is last seen in openSUSE Leap 42.1.
Obsoletes: %{name}1
%description -n %{name}%{sover}
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}%{sover} = %{version}
Requires: matekbd-common = %{version}
%description devel
This package provides libmatekdb, an API to manage the keyboard in
MATE Desktop applications.
%lang_package
%prep
%setup -q
%build
NOCONFIGURE=1 mate-autogen
%configure \
--disable-static
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name} %{?no_lang_C}
find %{buildroot} -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
%postun -n matekbd-common
%glib2_gsettings_schema_postun
%post -n %{name}%{sover} -p /sbin/ldconfig
%postun -n %{name}%{sover} -p /sbin/ldconfig
%files -n %{name}%{sover}
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING
%{_libdir}/*.so.%{sover}*
%files -n matekbd-common
%defattr(-,root,root)
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/libmatekbd/
%files devel
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING
%{_includedir}/%{name}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog