File libgarcon.spec of Package libgarcon
#
# spec file for package libgarcon
#
# Copyright (c) 2011 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: libgarcon
Version: 0.1.9
Release: 1
License: GPLv2+
Summary: Library Implementing the freedesktop.org Desktop Menu Specification
Url: http://wiki.xfce.org/dev/garcon
Group: System/Libraries
Source: http://archive.xfce.org/src/libs/garcon/0.1/garcon-%{version}.tar.bz2
# PATCH-FEATURE-OPENSUSE libgarcon-x-suse-unimportant-support.patch gber@opensuse.org -- Hide desktop files marked with X-SuSE-Unimportant
Patch0: libgarcon-x-suse-unimportant-support.patch
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define libname libgarcon-1-0
%description
Garcon is a library based on GLib and GIO which implements the freedesktop.org
Desktop Menu Specification. It is the sucessor to libxfce4menu and covers
almost every part of the menu specification except for legacy menus and a few
XML attributes. It is capable of loading menus modified with menu editors such
as Alacarte and also supports merging.
%package -n %{libname}
Summary: Library Implementing the freedesktop.org Desktop Menu Specification
Group: System/Libraries
Requires: %{name}-branding >= %{version}
%description -n %{libname}
Garcon is a library based on GLib and GIO which implements the freedesktop.org
Desktop Menu Specification. It is the sucessor to libxfce4menu and covers
almost every part of the menu specification except for legacy menus and a few
XML attributes. It is capable of loading menus modified with menu editors such
as Alacarte and also supports merging.
%package devel
License: GPLv2+
Summary: Development files for garcon
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(gtk+-2.0)
Recommends: %{name}-doc = %{version}
%description devel
This package contains the files needed for developing applications based on
Garcon.
%package doc
License: GPLv2+
Summary: Documentation for garcon
Group: Documentation/HTML
Requires: %{libname} = %{version}
BuildArch: noarch
%description doc
This package include the documentation for Garcon.
%package branding-upstream
License: GPLv2+
Summary: Upstream Branding of %{libname}
Group: System/GUI/XFCE
# BRAND: xfce-applications.menu: Provides the Xfce applications menu.
Conflicts: otherproviders(%{name}-branding)
Provides: %{name}-branding = %{version}
Supplements: packageand(%{libname}:branding-upstream)
BuildArch: noarch
%description branding-upstream
This package provides the upstream look and feel for Garcon.
%prep
%setup -q -n garcon-%{version}
%patch0 -p1
%build
%configure \
--disable-static \
--enable-gtk-doc
make %{?_smp_mflags} V=1
%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang garcon
%clean
rm -rf %{buildroot}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname} -f garcon.lang
%defattr(-,root,root)
%doc AUTHORS COPYING HACKING NEWS README STATUS TODO
%{_libdir}/*.so.*
%dir %{_datadir}/desktop-directories
%{_datadir}/desktop-directories/*.directory
%files devel
%defattr(-,root,root)
%dir %{_includedir}/garcon-1
%{_includedir}/garcon-1/garcon/
%{_libdir}/pkgconfig/garcon-1.pc
%{_libdir}/*.so
%files doc
%defattr(-,root,root)
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/garcon/
%files branding-upstream
%defattr(-,root,root)
%dir %{_sysconfdir}/xdg/menus
%{_sysconfdir}/xdg/menus/xfce-applications.menu
%changelog