libxfce4ui/libxfce4ui.spec

213 lines
6.3 KiB
RPMSpec

#
# spec file for package libxfce4ui
#
# 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 libxfce4ui-1-0
Name: libxfce4ui
Version: 4.10.0
Release: 0
Summary: Widgets 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/libxfce4ui/4.10/%{name}-%{version}.tar.bz2
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gladeui-1.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libstartup-notification-1.0)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(libxfconf-0)
BuildRequires: pkgconfig(sm)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The libxfce4ui library provides a number of widgets commonly used by Xfce
applications.
%package -n %{libname}
Summary: Widgets Library for the Xfce Desktop Environment
License: LGPL-2.1+
Group: System/Libraries
# uses exo-open
Requires: exo-tools
# -branding only contains keyboard shortcuts for some libxfce4ui consumers so
# it is not really a dependency but it must be dragged in at a low level
Recommends: %{name}-branding = %{version}
Provides: libxfce4ui = %{version}
Obsoletes: libxfce4ui <= 4.8.1
Recommends: %{name}-lang = %{version}
%description -n %{libname}
The libxfce4ui library provides a number of widgets commonly used by Xfce
applications.
%package tools
Summary: Tools from libxfce4ui
License: GPL-2.0+
Group: System/GUI/XFCE
%description tools
This package provides tools from libxfce4ui.
%package -n glade3-catalog-libxfce4ui
Summary: Glade Catalog for libxfce4ui
License: LGPL-2.1+
Group: Development/Tools/GUI Builders
Requires: %{libname} = %{version}
Requires: glade3
Supplements: packageand(glade3:%{name}-devel)
%description -n glade3-catalog-libxfce4ui
This package provides a catalog for Glade which allows the use of the provided
Xfce widgets in Glade.
%package devel
Summary: Development Files for the libxfce4ui Library
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Recommends: %{name}-doc = %{version}
%description devel
This package provides development files for developing applications based on
the libxfce4ui library.
%package doc
Summary: Documentation for the libxfce4ui Library
License: LGPL-2.1+
Group: Documentation/HTML
BuildArch: noarch
%description doc
This package provides the documentation for the libxfce4ui library.
%package branding-upstream
Summary: Upstream Branding of libxfce4ui
License: GPL-2.0+
Group: System/GUI/XFCE
# BRAND: xfce4-keyboard-shortcuts.xml: Controls the global keyboard shortcuts
# BRAND: for the Xfce desktop.
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 libxfce4ui.
# this should be replaced by %%lang_package once bnc#513786 is resolved
%package lang
Summary: Languages for package %{name}
License: LGPL-2.1+
Group: System/Localization
Requires: %{libname} = %{version}
Provides: %{name}-lang-all = %{version}
Supplements: packageand(bundle-lang-other:%{libname})
BuildArch: noarch
%description lang
Provides translations to the package %{name}
%prep
%setup -q
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure \
--enable-startup-notification \
--with-vendor-info=openSUSE \
--enable-gtk-doc \
--disable-static
make %{?_smp_mflags} V=1
%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%{_libdir}/libglade/2.0/*.la
rm -f %{buildroot}%{_libdir}/glade3/modules/*.la
%suse_update_desktop_file xfce4-about -r X-XFCE X-Xfce-Toplevel
# remove unsupported locales
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 tools
%desktop_database_post
%icon_theme_cache_post
%postun tools
%desktop_database_postun
%icon_theme_cache_postun
%files -n %{libname}
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%{_libdir}/libxfce4ui-*.so.*
%{_libdir}/libxfce4kbd-private-*.so.*
%files lang -f %{name}.lang
%files -n glade3-catalog-libxfce4ui
%defattr(-, root, root)
%{_libdir}/glade3/modules/libxfce4uiglade.so
%{_datadir}/glade3/catalogs/libxfce4ui.xml*
%{_datadir}/glade3/pixmaps/hicolor/*/actions/*.png
%files devel
%defattr(-, root, root)
%{_libdir}/libxfce4ui-*.so
%{_libdir}/libxfce4kbd-private-*.so
%{_libdir}/pkgconfig/libxfce4ui-*.pc
%{_libdir}/pkgconfig/libxfce4kbd-private-*.pc
%dir %{_includedir}/xfce4/libxfce4ui-1
%{_includedir}/xfce4/libxfce4ui-1/libxfce4ui/
%dir %{_includedir}/xfce4/libxfce4kbd-private-2
%{_includedir}/xfce4/libxfce4kbd-private-2/libxfce4kbd-private/
%files tools
%defattr(-, root, root)
%{_bindir}/xfce4-about
%{_datadir}/applications/xfce4-about.desktop
%{_datadir}/icons/hicolor/48x48/apps/xfce4-logo.png
%files doc
%defattr(-, root, root)
%doc %{_datadir}/gtk-doc/html/libxfce4ui/
%files branding-upstream
%defattr(-, root, root)
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
%changelog