File libxfcegui4.spec of Package libxfcegui4
#
# spec file for package libxfcegui4
#
# Copyright (c) 2012 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/
#
%define libname libxfcegui4-4
Name: libxfcegui4
Version: 4.10.0
Release: 0
Summary: Widget Library for the Xfce Desktop Environment
License: LGPL-2.1+
Group: System/Libraries
Url: http://www.xfce.org/
Source0: http://archive.xfce.org/src/xfce/libxfcegui4/4.10/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM libxfcegui4-fix-menu-icon-name-handling.patch bxo#3614 gber@opensuse.org -- Allow icons with dots in their name
Patch1: libxfcegui4-fix-menu-icon-name-handling.patch
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gladeui-1.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libglade-2.0)
BuildRequires: pkgconfig(libstartup-notification-1.0)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(sm)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The libxfcegui4 library provides a number of widgets commonly used by Xfce
applications. It has been superseded by the libxfce4ui library.
%package -n libxfcegui4-4
Summary: Widget Library for the Xfce Desktop Environment
Group: System/Libraries
Provides: libxfcegui4 = %{version}
Obsoletes: libxfcegui4 <= 4.8.1
# -data provides some icons which are used in the library
Requires: %{name}-data
# uses exo-open
Requires: exo-tools
Recommends: %{name}-lang = %{version}
%description -n libxfcegui4-4
The libxfcegui4 library provides a number of widgets commonly used by Xfce
applications. It has been superseded by the libxfce4ui library.
%package data
Summary: Data Files for the libxfcegui4 Library
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
BuildArch: noarch
%description data
This package provides data files needed by the libxfcegui4 library.
%package devel
Summary: Development Files for the libxfcegui4 Library
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: glade3-catalog-libxfcegui4 = %{version}
%description devel
This package provides development files for developing applications based on
the libxfcegui4 library.
%package -n glade3-catalog-libxfcegui4
Summary: Glade3 Support for the libxfcegui4 Library
Group: Development/Libraries/C and C++
Provides: %{name}-gladeui = %{version}
Obsoletes: %{name}-gladeui <= 4.8.1
Supplements: packageand(glade3:%{name}-devel)
%description -n glade3-catalog-libxfcegui4
This package provides a catalog for Glade, to allow the use the Xfce widgets in
Glade.
%lang_package
%prep
%setup -q
%patch1 -p1
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure \
--enable-startup-notification \
--enable-gtk-doc \
--disable-static
make %{?_smp_mflags} V=1
%install
%make_install
rm -f %{buildroot}/%{_libdir}/*.la \
%{buildroot}/%{_libdir}/libglade/2.0/*.la \
%{buildroot}/%{_libdir}/glade3/modules/*.la
rm -f %{buildroot}/%{_datadir}/glade3/catalogs/xfce4.xml.in
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name} %{?no_lang_C}
%clean
rm -rf %{buildroot}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%post data
%icon_theme_cache_post
%postun data
%icon_theme_cache_postun
%files -n %{libname}
%defattr(-,root,root)
%doc AUTHORS COPYING README ChangeLog NEWS
%{_libdir}/libxfcegui4.so.*
%{_libdir}/libglade/*/libxfce4.so
%files data
%defattr(-,root,root)
%{_datadir}/icons/hicolor/*/*/*
%files lang -f %{name}.lang
%files devel
%defattr(-, root, root)
%doc %{_datadir}/gtk-doc/html/libxfcegui4
%dir %{_includedir}/xfce4
%{_includedir}/xfce4/libxfcegui4/
%{_libdir}/libxfcegui4.so
%{_libdir}/pkgconfig/libxfcegui4-1.0.pc
%files -n glade3-catalog-libxfcegui4
%defattr(-,root,root)
%{_libdir}/glade3/modules/libgladexfce4.so
%{_datadir}/glade3/*
%changelog