File libxfce4util.spec of Package libxfce4util

#
# spec file for package libxfce4util
#
# 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:           libxfce4util
Version:        4.8.1
Release:        2
License:        LGPLv2.1+
Summary:        Utility Library for the Xfce Desktop Environment
Url:            http://www.xfce.org/projects/libxfce4
Group:          System/Libraries
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM bxo#7122 gber@opensuse.org -- Fixes a broken assertion which can cause xfce_strjoin to fail incorrectly (backported from git master)
Patch0:         %{name}-4.8.1-fix-broken-assertion.patch
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  pkgconfig(glib-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
libxfce4util is a general-purpose utility library with core application support
for the Xfce Desktop Environment.

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

%description devel
This package contains the API documentation and development files needed for
developing applications based on libxfce4util.

%prep
%setup -q
%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,ur_PK,tl_PH}
%find_lang %{name}

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS TODO README README.Kiosk
%{_sbindir}/xfce4-kiosk-query
%{_libdir}/*.so.*

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

%changelog
openSUSE Build Service is sponsored by