File cinnamon-menus.spec of Package cinnamon-menus
#
# spec file for package cinnamon-menus
#
# 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 typelib typelib-1_0-CinnamonMenu-3_0
%define soname libcinnamon-menu-3
%define sover 0
Name: cinnamon-menus
Version: 3.0.2
Release: 0
Summary: A menu system for the Cinnamon Desktop
License: LGPL-2.1+
Group: System/Libraries
Url: https://github.com/linuxmint/cinnamon-menus
Source: https://github.com/linuxmint/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Source1: baselibs.conf
BuildRequires: gnome-common
BuildRequires: intltool
BuildRequires: python3-devel
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
%description
cinnamon-menus is an implementation of the draft "Desktop Menu
Specification" from freedesktop.org. This package also contains
the Cinnamon menu layout configuration files, .directory files and
assorted menu related utility programs, Python bindings, and a
simple menu editor.
%package -n %{soname}-%{sover}
Summary: A menu system for the Cinnamon desktop environment
Group: System/Libraries
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
%description -n %{soname}-%{sover}
cinnamon-menus is an implementation of the draft "Desktop Menu
Specification" from freedesktop.org. This package also contains
the Cinnamon menu layout configuration files, .directory files and
assorted menu related utility programs, Python bindings, and a
simple menu editor.
%package -n %{typelib}
Summary: Libcinnamon-menu API -- Introspection Bindings
Group: System/Libraries
%description -n %{typelib}
cinnamon-menus is an implementation of the draft "Desktop Menu
Specification" from freedesktop.org. This package also contains
the Cinnamon menu layout configuration files, .directory files and
assorted menu related utility programs, Python bindings, and a
simple menu editor.
This package provides the GObject Introspection bindings for
cinnamon-menus.
%package -n %{soname}-devel
Summary: Libraries and development headers for cinnamon-menus
Group: Development/Libraries/Other
BuildRequires: pkgconfig(glib-2.0)
Requires: %{soname}-%{sover} = %{version}
Requires: %{typelib} = %{version}
%description -n %{soname}-devel
This package provides the necessary development libraries for
writing applications that use the Cinnamon menu system.
%prep
%setup -q
%build
NOCONFIGURE=1 gnome-autogen.sh
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{soname}-%{sover} -p /sbin/ldconfig
%postun -n %{soname}-%{sover} -p /sbin/ldconfig
%files -n %{soname}-%{sover}
%defattr(-,root,root)
%doc AUTHORS COPYING* README debian/changelog
%{_libdir}/%{soname}.so.%{sover}*
%files -n %{soname}-devel
%defattr(-,root,root)
%{_includedir}/%{name}-3.0/
%{_libdir}/%{soname}.so
%{_libdir}/pkgconfig/libcinnamon-menu-3.0.pc
%{_datadir}/gir-1.0/CMenu-3.0.gir
%files -n %{typelib}
%defattr(-,root,root)
%{_libdir}/girepository-1.0/CMenu-3.0.typelib
%changelog