File libxfce4menu.spec of Package libxfce4menu

#
# spec file for package libxfce4menu
#
# 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:           libxfce4menu
Version:        4.6.2
Release:        4
License:        LGPLv2.1+
%define fullname %{name}-0.1
%define libname  %{name}-0_1-0
Summary:        Xfce Library Implementing the freedesktop.org Desktop Menu Specification
Url:            http://www.xfce.org/
Group:          System/Libraries
Source:         %{name}-%{version}.tar.bz2
Patch0:         %{name}-no-yast-desktop-files.patch
# PATCH-FEATURE-UPSTREAM libxfce4menu-4.6.2-add-enum-types.patch gber@opensuse.org -- Generates enum types (backported from upstream git)
Patch1:         libxfce4menu-4.6.2-add-enum-types.patch
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  xfce4-dev-tools
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libxfce4util-1.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The libxfce4menu library implements the freedesktop.org Desktop Menu
Specification. It has been obsoleted by garcon.

%package -n libxfce4menu-0_1-0
License:        LGPLv2.1+
Summary:        Xfce Library Implementing the freedesktop.org Desktop Menu Specification
Group:          System/Libraries

%description -n libxfce4menu-0_1-0
The libxfce4menu library implements the freedesktop.org Desktop Menu
Specification. It has been superseded by garcon.

%package devel
License:        LGPLv2.1+
Summary:        Development Files for libxfce4menu
Group:          Development/Libraries/C and C++
Requires:       pkgconfig(glib-2.0)
Requires:       pkgconfig(gtk+-2.0)
Requires:       pkgconfig(libxfce4util-1.0)
Requires:       %{libname} = %{version}

%description devel
This package contains the API documentation and development files needed to
develop applications based on libxfce4menu.

%prep
%setup -q
%patch0
%patch1 -p1

%build
xdt-autogen
%configure \
    --enable-gtk-doc \
    --disable-static \
    --enable-maintainer-mode
make %{?_smp_mflags}

%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{fullname}

%clean
rm -rf %{buildroot}

%post -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig

%files -n %{libname} -f %{fullname}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog HACKING README STATUS TODO
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

%changelog