2010-02-11 18:34:33 +00:00
#
2011-01-14 12:56:04 +00:00
# spec file for package libxfce4ui
2010-12-07 17:18:21 +00:00
#
2021-03-07 21:31:29 +00:00
# Copyright (c) 2021 SUSE LLC
2010-12-07 17:18:21 +00:00
#
# 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.
2019-08-15 01:10:51 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2010-02-11 18:34:33 +00:00
#
2012-03-31 09:35:11 +00:00
2019-08-15 01:10:51 +00:00
%bcond_with git
2015-03-01 21:00:36 +00:00
%define libname_gtk3 libxfce4ui-2-0
2012-03-31 09:35:11 +00:00
2010-02-11 18:34:33 +00:00
Name : libxfce4ui
2021-01-06 18:39:06 +00:00
Version : 4.16.0
2011-12-23 19:44:54 +00:00
Release : 0
2011-01-17 11:12:13 +00:00
Summary : Widgets Library for the Xfce Desktop Environment
2019-08-15 01:10:51 +00:00
License : LGPL-2.1-or-later
2010-12-24 12:50:30 +00:00
Group : System/Libraries
2019-08-15 01:10:51 +00:00
URL : https://www.xfce.org/
2021-01-06 18:39:06 +00:00
Source0 : https://archive.xfce.org/src/xfce/libxfce4ui/4.16/%{name} -%{version} .tar.bz2
2012-05-07 12:25:17 +00:00
# needed until all applications have been ported to xfce_dialog_show_help() or
# an alternative mechanism
Source1 : xfhelp4.sh
2021-01-06 18:39:06 +00:00
# PATCH-FEATURE-OPENSUSE xfdesktop-backgrounds-path.patch mauriziogalli@opensuse.org -- Workaround to remove subtitles area in Xfce applications headerbar
Patch0 : headerbar_subtitle.patch
2015-03-01 21:00:36 +00:00
BuildRequires : fdupes
2010-12-03 01:57:06 +00:00
BuildRequires : intltool
2019-08-15 01:10:51 +00:00
BuildRequires : pkgconfig
2021-01-06 18:39:06 +00:00
BuildRequires : update-desktop-files
2017-12-18 16:26:11 +00:00
BuildRequires : pkgconfig(atk)
BuildRequires : pkgconfig(cairo)
2021-03-07 21:31:29 +00:00
BuildRequires : pkgconfig(gladeui-2.0)
2012-03-31 09:35:11 +00:00
BuildRequires : pkgconfig(gobject-2.0)
2021-01-06 18:39:06 +00:00
BuildRequires : pkgconfig(gobject-introspection-1.0)
2015-03-01 21:00:36 +00:00
BuildRequires : pkgconfig(gtk+-3.0)
2017-12-18 16:26:11 +00:00
BuildRequires : pkgconfig(ice)
2021-01-06 18:39:06 +00:00
BuildRequires : pkgconfig(libgtop-2.0) >= 2.24.0
2010-12-03 01:57:06 +00:00
BuildRequires : pkgconfig(libstartup-notification-1.0)
2021-01-06 18:39:06 +00:00
BuildRequires : pkgconfig(libxfce4util-1.0) >= 4.15.6
BuildRequires : pkgconfig(libxfconf-0) >= 4.14
2017-12-18 16:26:11 +00:00
BuildRequires : pkgconfig(pango)
2012-03-31 09:35:11 +00:00
BuildRequires : pkgconfig(sm)
2021-01-06 18:39:06 +00:00
BuildRequires : pkgconfig(vapigen)
2017-12-18 16:26:11 +00:00
BuildRequires : pkgconfig(x11)
2019-08-15 01:10:51 +00:00
%if %{with git}
2021-01-06 18:39:06 +00:00
BuildRequires : gtk-doc
2019-08-15 01:10:51 +00:00
BuildRequires : xfce4-dev-tools
%endif
2010-02-11 18:34:33 +00:00
%description
2010-12-24 12:50:30 +00:00
The libxfce4ui library provides a number of widgets commonly used by Xfce
applications.
2010-02-11 18:34:33 +00:00
2015-03-01 21:00:36 +00:00
%package -n %{libname_gtk3}
Summary : Widgets Library for the Xfce Desktop Environment
2016-12-26 12:56:06 +00:00
# uses exo-open
2019-08-15 01:10:51 +00:00
License : GPL-2.0-or-later
2015-03-01 21:00:36 +00:00
Group : System/Libraries
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}
2012-03-31 09:35:11 +00:00
Recommends: %{name} -lang = %{version}
2015-03-01 21:00:36 +00:00
%description -n %{libname_gtk3}
2012-03-31 09:35:11 +00:00
The libxfce4ui library provides a number of widgets commonly used by Xfce
2015-03-01 21:00:36 +00:00
applications. This package provides the GTK 3 variant of libxfce4ui.
2012-03-31 09:35:11 +00:00
2012-04-26 09:12:14 +00:00
%package tools
Summary : Tools from libxfce4ui
2019-08-15 01:10:51 +00:00
License : GPL-2.0-or-later
2012-04-26 09:12:14 +00:00
Group : System/GUI/XFCE
%description tools
This package provides tools from libxfce4ui.
2010-02-11 18:34:33 +00:00
%package devel
2011-01-30 22:18:04 +00:00
Summary : Development Files for the libxfce4ui Library
2019-08-15 01:10:51 +00:00
License : LGPL-2.1-or-later
2010-02-11 18:34:33 +00:00
Group : Development/Libraries/C and C++
2015-03-01 21:00:36 +00:00
Requires : %{libname_gtk3} = %{version}
2011-10-14 16:00:18 +00:00
Recommends: %{name} -doc = %{version}
2010-02-11 18:34:33 +00:00
%description devel
2010-12-24 12:50:30 +00:00
This package provides development files for developing applications based on
the libxfce4ui library.
2010-02-11 18:34:33 +00:00
%package doc
2011-01-30 22:18:04 +00:00
Summary : Documentation for the libxfce4ui Library
2019-08-15 01:10:51 +00:00
License : LGPL-2.1-or-later
2010-12-03 01:57:06 +00:00
Group : Documentation/HTML
2012-03-31 09:35:11 +00:00
BuildArch : noarch
2010-02-11 18:34:33 +00:00
%description doc
2010-12-24 12:50:30 +00:00
This package provides the documentation for the libxfce4ui library.
2010-02-11 18:34:33 +00:00
2011-01-05 18:08:47 +00:00
%package branding-upstream
2011-01-30 22:18:04 +00:00
Summary : Upstream Branding of libxfce4ui
2019-08-15 01:10:51 +00:00
License : GPL-2.0-or-later
2011-01-05 18:08:47 +00:00
Group : System/GUI/XFCE
2015-03-01 21:00:36 +00:00
Supplements: packageand(%{libname_gtk3} :branding-upstream)
2011-01-05 18:08:47 +00:00
# BRAND: xfce4-keyboard-shortcuts.xml: Controls the global keyboard shortcuts
# BRAND: for the Xfce desktop.
Conflicts : otherproviders(%{name} -branding)
Provides : %{name} -branding = %{version}
BuildArch : noarch
%description branding-upstream
2012-03-31 09:35:11 +00:00
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}
2019-08-15 01:10:51 +00:00
License : LGPL-2.1-or-later
2012-03-31 09:35:11 +00:00
Group : System/Localization
2015-03-01 21:00:36 +00:00
Requires : %{libname_gtk3} = %{version}
2012-03-31 09:35:11 +00:00
Provides : %{name} -lang-all = %{version}
2015-03-01 21:00:36 +00:00
Supplements: packageand(bundle-lang-other:%{libname_gtk3} )
2012-03-31 09:35:11 +00:00
BuildArch : noarch
%description lang
Provides translations to the package %{name}
2011-01-05 18:08:47 +00:00
2021-01-06 18:39:06 +00:00
%package -n typelib-1_0-Libxfce4ui-2_0
Summary : UI Library for the Xfce Desktop Environment
License : LGPL-2.1-or-later
Group : System/Libraries
Provides : typelib-1_0-libxfce4ui-2_0 = %{version}
Obsoletes : typelib-1_0-libxfce4ui-2_0 < %{version}
%description -n typelib-1_0-Libxfce4ui-2_0
The libxfce4ui library provides a number of widgets commonly used by Xfce
applications.
2010-02-11 18:34:33 +00:00
%prep
2021-01-06 18:39:06 +00:00
%autosetup -p1
2010-02-11 18:34:33 +00:00
%build
2010-12-03 01:57:06 +00:00
export CFLAGS=" %{optflags} - f n o - s t r i c t - a l i a s i n g "
2019-08-15 01:10:51 +00:00
%if %{with git}
NOCONFIGURE=1 ./autogen.sh
2010-02-11 18:34:33 +00:00
%configure \
2019-08-15 01:10:51 +00:00
--enable-maintainer-mode \
2010-02-11 18:34:33 +00:00
--enable-startup-notification \
2012-04-26 09:12:14 +00:00
--with-vendor-info=openSUSE \
2021-01-06 18:39:06 +00:00
--disable-static \
2021-03-07 21:31:29 +00:00
--enable-vala=yes \
--enable-gladeui2
2019-08-15 01:10:51 +00:00
%else
%configure \
--enable-startup-notification \
--with-vendor-info=openSUSE \
2021-01-06 18:39:06 +00:00
--disable-static \
2021-03-07 21:31:29 +00:00
--enable-vala=yes \
--enable-gladeui2
2019-08-15 01:10:51 +00:00
%endif
%make_build
2010-02-11 18:34:33 +00:00
%install
2010-12-03 01:57:06 +00:00
%make_install
2012-03-31 09:35:11 +00:00
2012-05-07 12:25:17 +00:00
install -D -p -m 755 %{SOURCE1} %{buildroot} %{_bindir} /xfhelp4
2015-03-01 21:00:36 +00:00
find %{buildroot} -type f -name " * . l a " -delete -print
2012-03-31 09:35:11 +00:00
2012-04-26 09:12:14 +00:00
%suse_update_desktop_file xfce4-about -r X-XFCE X-Xfce-Toplevel
2012-03-31 09:35:11 +00:00
# remove unsupported locales
2010-12-24 12:50:30 +00:00
rm -rf %{buildroot} %{_datadir} /locale/{ast,kk,tl_PH,ur_PK}
2012-03-31 09:35:11 +00:00
%find_lang %{name} %{?no_lang_C}
2010-02-11 18:34:33 +00:00
2015-03-01 21:00:36 +00:00
%fdupes %{buildroot} %{_includedir}
%post -n %{libname_gtk3} -p /sbin/ldconfig
2010-02-11 18:34:33 +00:00
2015-03-01 21:00:36 +00:00
%postun -n %{libname_gtk3} -p /sbin/ldconfig
2010-02-11 18:34:33 +00:00
2015-03-01 21:00:36 +00:00
%files -n %{libname_gtk3}
2019-08-15 01:10:51 +00:00
%license COPYING
2021-01-06 18:39:06 +00:00
%doc AUTHORS NEWS THANKS TODO
2015-03-01 21:00:36 +00:00
%{_libdir} /libxfce4ui-2.so.*
%{_libdir} /libxfce4kbd-private-3.so.*
2012-03-31 09:35:11 +00:00
%files lang -f %{name}.lang
2010-02-11 18:34:33 +00:00
%files devel
2012-03-31 09:35:11 +00:00
%{_libdir} /libxfce4ui-*.so
%{_libdir} /libxfce4kbd-private-*.so
%{_libdir} /pkgconfig/libxfce4ui-*.pc
%{_libdir} /pkgconfig/libxfce4kbd-private-*.pc
2021-03-07 21:31:29 +00:00
%{_libdir} /glade/*
2015-03-01 21:00:36 +00:00
%{_includedir} /xfce4/libxfce4ui-2/
%{_includedir} /xfce4/libxfce4kbd-private-3/
2021-01-06 18:39:06 +00:00
%{_datadir} /vala/vapi/
%{_datadir} /gir-1.0/Libxfce4ui-2.0.gir
2021-03-07 21:31:29 +00:00
%{_datadir} /glade/*
2010-02-11 18:34:33 +00:00
2012-04-26 09:12:14 +00:00
%files tools
2012-05-07 12:25:17 +00:00
%{_bindir} /xfhelp4
2012-04-26 09:12:14 +00:00
%{_bindir} /xfce4-about
%{_datadir} /applications/xfce4-about.desktop
2021-01-06 18:39:06 +00:00
%{_datadir} /icons/hicolor/*/apps/{org.xfce.about.*,xfce4-logo.*}
2012-04-26 09:12:14 +00:00
2010-02-11 18:34:33 +00:00
%files doc
2012-03-31 09:35:11 +00:00
%doc %{_datadir} /gtk-doc/html/libxfce4ui/
2010-02-11 18:34:33 +00:00
2011-01-05 18:08:47 +00:00
%files branding-upstream
%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
2021-01-06 18:39:06 +00:00
%files -n typelib-1_0-Libxfce4ui-2_0
%{_libdir} /girepository-1.0/Libxfce4ui-2.0.typelib
2010-02-11 18:34:33 +00:00
%changelog