libxfce4ui/libxfce4ui.spec

155 lines
4.7 KiB
RPMSpec

#
# spec file for package libxfce4ui
#
# 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: libxfce4ui
Version: 4.8.0
Release: 1
License: LGPLv2.1+
Summary: Widgets Library for the Xfce Desktop Environment
Url: http://www.xfce.org/projects/libxfce4/
Group: System/Libraries
Source0: %{name}-%{version}.tar.bz2
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: pkgconfig(gladeui-1.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libstartup-notification-1.0)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(libxfconf-0)
Requires: %{name}-branding >= %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The libxfce4ui library provides a number of widgets commonly used by Xfce
applications.
%package -n glade3-catalog-libxfce4ui
License: LGPLv2.1+
Summary: libxfce4ui Glade Catalog
Group: Development/Tools/GUI Builders
Requires: %{name} = %{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
License: LGPLv2.1+
Summary: Development Files for the libxfce4ui Library
Group: Development/Libraries/C and C++
Requires: libxfce4ui = %{version}
Requires: pkgconfig(gladeui-1.0)
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(gtk+-2.0)
Requires: pkgconfig(libstartup-notification-1.0)
Requires: pkgconfig(libxfce4util-1.0)
Requires: pkgconfig(libxfconf-0)
%description devel
This package provides development files for developing applications based on
the libxfce4ui library.
%package doc
License: LGPLv2.1+
Summary: Documentation for the libxfce4ui Library
Group: Documentation/HTML
Requires: libxfce4ui = %{version}
%description doc
This package provides the documentation for the libxfce4ui library.
%package branding-upstream
Summary: Upstream Branding of libxfce4ui
License: GPLv2+
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(%{name}:branding-upstream)
BuildArch: noarch
%description branding-upstream
This package provides the upstream look and feel for the libxfce4ui library.
%prep
%setup -q
%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
rm -f %{buildroot}%{_libdir}/libglade/2.0/*.la
rm -f %{buildroot}%{_libdir}/glade3/modules/*.la
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%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 README THANKS TODO
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%{_libdir}/lib*.so.*
%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}/lib*.so
%{_libdir}/pkgconfig/*.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 doc
%defattr(-, root, root)
%{_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