File cinnamon-desktop.spec of Package cinnamon-desktop
#
# spec file for package cinnamon-desktop
#
# Copyright (c) 2016 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 soname libcinnamon-desktop
%define sover 4
%define soname_cvc libcvc
%define sover_cvc 0
%define typelib typelib-1_0-CinnamonDesktop-3_0
%define typelib_cvc typelib-1_0-Cvc-1_0
Name: cinnamon-desktop
Version: 3.0.2
Release: 0
Summary: Libcinnamon-desktop API
License: GPL-2.0+ and MIT
Group: System/GUI/Other
Url: https://github.com/linuxmint/cinnamon-desktop
Source: https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: baselibs.conf
# PATCH-FIX-OPENSUSE cinnamon-desktop-correct-background-path.patch sor.alexi@meowr.ru -- Fix path to Adwaita background.
Patch0: %{name}-correct-background-path.patch
BuildRequires: gnome-common
BuildRequires: pkg-config
BuildRequires: python-devel
BuildRequires: yelp-tools
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.22.0
BuildRequires: pkgconfig(gio-2.0) >= 2.37.3
BuildRequires: pkgconfig(glib-2.0) >= 2.37.3
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.9.7
BuildRequires: pkgconfig(gtk+-3.0) >= 3.3.16
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libpulse-mainloop-glib)
BuildRequires: pkgconfig(xext) >= 1.1
BuildRequires: pkgconfig(xkbfile)
BuildRequires: pkgconfig(xkeyboard-config)
BuildRequires: pkgconfig(xrandr) >= 1.3
%description
cinnamon-desktop contains the libcinnamon-desktop library, the
cinnamon-about program as well as some desktop-wide documents.
The libcinnamon-desktop library provides API shared by several
applications on the desktop, but that cannot live in the platform
for various reasons. There is no API or ABI guarantee, although we
are doing our best to provide stability. Documentation for the API
is available with gtk-doc.
%package -n %{soname}%{sover}
Summary: Libcinnamon-desktop API
Group: System/Libraries
Requires: %{soname}-data >= %{version}
Provides: %{name} = %{version}
Provides: %{soname} = %{version}
Obsoletes: %{name} < %{version}
%description -n %{soname}%{sover}
cinnamon-desktop contains the libcinnamon-desktop library, the
cinnamon-about program as well as some desktop-wide documents.
The libcinnamon-desktop library provides API shared by several
applications on the desktop, but that cannot live in the platform
for various reasons. There is no API or ABI guarantee, although we
are doing our best to provide stability. Documentation for the API
is available with gtk-doc.
%lang_package -n %{soname}
%package -n %{soname}-data
Summary: Libcinnamon-desktop API -- Common Files
Group: System/GUI/Other
Requires: python-gobject
Recommends: %{soname}-lang
Provides: %{name}-data = %{version}
Provides: %{name}-lang = %{version}
Obsoletes: %{name}-lang < %{version}
%glib2_gsettings_schema_requires
%if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120200
Requires: python-gobject-Gdk
%endif
%description -n %{soname}-data
cinnamon-desktop contains the libcinnamon-desktop library, the
cinnamon-about program as well as some desktop-wide documents.
This package includes files that are shared between several
Cinnamon applications (configuration schemas).
%package -n %{typelib}
Summary: Libcinnamon-desktop API -- Introspection bindings
Group: System/Libraries
%description -n %{typelib}
cinnamon-desktop contains the libcinnamon-desktop library, the
cinnamon-about program as well as some desktop-wide documents.
This package provides the GObject Introspection bindings for
libcinnamon-desktop.
%package -n %{soname}-devel
Summary: Libcinnamon-desktop API -- Development Files
Group: Development/Libraries/C and C++
Requires: %{soname}%{sover} = %{version}
Requires: %{typelib} = %{version}
Requires: pkg-config
Requires: pkgconfig(gtk+-3.0) >= 3.3.16
Requires: pkgconfig(xkbfile)
Provides: %{name}-devel = %{version}
Obsoletes: %{name}-devel < %{version}
%description -n %{soname}-devel
cinnamon-desktop contains the libcinnamon-desktop library, the
cinnamon-about program as well as some desktop-wide documents.
This package contains development files for libcinnamon-desktop.
%package -n %{soname_cvc}%{sover_cvc}
Summary: LibCVC API
Group: System/Libraries
%description -n %{soname_cvc}%{sover_cvc}
Utility library for volume control of pulseaudio from gobject-based
Cinnamon modules/applications.
%package -n %{typelib_cvc}
Summary: LibCVC API -- Introspection bindings
Group: System/Libraries
%description -n %{typelib_cvc}
Utility library for volume control of pulseaudio from gobject-based
Cinnamon modules/applications.
This package provides the GObject Introspection bindings for libcvc.
%package -n %{soname_cvc}-devel
Summary: LibCVC API -- Development Files
Group: Development/Libraries/C and C++
Requires: %{soname_cvc}%{sover_cvc} = %{version}
Requires: %{typelib_cvc} = %{version}
Requires: pkg-config
Requires: pkgconfig(libpulse)
Requires: pkgconfig(libpulse-mainloop-glib)
%description -n %{soname_cvc}-devel
Utility library for volume control of pulseaudio from gobject-based
Cinnamon modules/applications.
This package contains development files for libcvc.
%prep
%setup -q
%patch0 -p1
%build
NOCONFIGURE=1 gnome-autogen.sh
%configure
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name} %{?no_lang_C}
%post -n %{soname}-data
%glib2_gsettings_schema_post
%postun -n %{soname}-data
%glib2_gsettings_schema_postun
%post -n %{soname}%{sover} -p /sbin/ldconfig
%postun -n %{soname}%{sover} -p /sbin/ldconfig
%post -n %{soname_cvc}%{sover_cvc} -p /sbin/ldconfig
%postun -n %{soname_cvc}%{sover_cvc} -p /sbin/ldconfig
%files -n %{soname}%{sover}
%defattr(-,root,root)
%doc AUTHORS COPYING* README debian/changelog
%{_libdir}/%{soname}.so.%{sover}*
%files -n %{soname}-lang -f %{name}.lang
%defattr(-,root,root)
%files -n %{soname}-data
%defattr(-,root,root)
%doc AUTHORS COPYING* README debian/changelog
%{_bindir}/cinnamon-desktop-migrate-mediakeys
%{_libexecdir}/cinnamon-rr-debug
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/%{soname}/
%files -n %{typelib}
%defattr(-,root,root)
%{_libdir}/girepository-1.0/CinnamonDesktop-3.0.typelib
%{_libdir}/girepository-1.0/CDesktopEnums-3.0.typelib
%files -n %{soname}-devel
%defattr(-,root,root)
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/%{soname}.so
%{_datadir}/gir-1.0/CinnamonDesktop-3.0.gir
%{_datadir}/gir-1.0/CDesktopEnums-3.0.gir
%files -n %{soname_cvc}%{sover_cvc}
%defattr(-,root,root)
%doc AUTHORS COPYING* README debian/changelog
%{_libdir}/%{soname_cvc}.so.%{sover_cvc}*
%files -n %{typelib_cvc}
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Cvc-1.0.typelib
%files -n %{soname_cvc}-devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/cvc.pc
%{_libdir}/%{soname_cvc}.so
%{_datadir}/gir-1.0/Cvc-1.0.gir
%changelog