# Review at https://bugzilla.redhat.com/show_bug.cgi?id=554599 %global xfceversion 4.12 Name: libxfce4ui Version: 4.12.0 Release: 1%{?dist} Summary: Commonly used Xfce widgets Group: System Environment/Libraries License: LGPLv2+ URL: http://xfce.org/ #VCS git:git://git.xfce.org/xfce/libxfce4ui Source0: http://archive.xfce.org/src/xfce/%{name}/%{xfceversion}/%{name}-%{version}.tar.bz2 # https://bugzilla.xfce.org/show_bug.cgi?id=9626 # this patch seems to have been upstreamed # Patch1: libxfce4ui-4.10.0-avoid-double-fork.patch ## Downstream patches # add more keyboard shortcuts to make multimedia keyboards work out of the box # Terminal changed to xfce4-terminal in the patch ## Patch10: libxfce4ui-4.12.0-keyboard-shortcuts.patch BuildRequires: pkgconfig(gobject-2.0) >= 2.24.0 BuildRequires: pkgconfig(gtk+-2.0) >= 2.20.0 BuildRequires: libSM-devel BuildRequires: pkgconfig(libxfce4util-1.0) >= %{xfceversion} BuildRequires: pkgconfig(libxfconf-0) >= %{xfceversion} BuildRequires: pkgconfig(libstartup-notification-1.0) >= 0.4 BuildRequires: gtk-doc BuildRequires: desktop-file-utils BuildRequires: gtk3-devel %if 0%{?fedora} > 20 BuildRequires: glade3-libgladeui-devel >= 3.5.0 %endif BuildRequires: gettext BuildRequires: intltool # FIXME: obsolete libxfcegui4 one day #Provides: libxfcegui4 = %{version} #Obsoletes: libxfcegui4 < %{version} %description Libxfce4ui is used to share commonly used Xfce widgets among the Xfce applications. %package -n xfce4-about Summary: Xfce 4 'About' dialog Group: User Interface/Desktops %description -n xfce4-about This package contains the 'About Xfce' dialog with info on the desktop environment, it's contributors, and it's licensing. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: gtk2-devel Requires: libxfce4util-devel %if 0%{?fedora} > 20 Requires: glade3-libgladeui-devel %endif Requires: pkgconfig # FIXME: obsolete libxfcegui4 one day #Provides: libxfcegui4-devel = %{version} #Obsoletes: libxfcegui4-devel < %{version} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q ## %patch10 -p1 -b .shortcuts %build %configure --enable-gtk-doc --enable-gtk3\ %if 0%{?fedora} < 21 --disable-gladeui \ %endif --disable-static # Remove rpaths sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool # The LD_LIBRARY_PATH hack is needed for --enable-gtk-doc # because lt-libxfce4ui-scan is linked against libxfce4ui export LD_LIBRARY_PATH=$( pwd )/libxfce4ui/.libs make %{?_smp_mflags} V=1 %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} INSTALL='install -p' # fix permissions for installed libraries chmod 755 $RPM_BUILD_ROOT/%{_libdir}/*.so find %{buildroot} -name '*.la' -exec rm -f {} ';' %find_lang %{name} # Move xfce4-about to the 'Documentation' category desktop-file-install \ --delete-original \ --remove-category=X-Xfce-Toplevel \ --add-category=Documentation \ --dir=%{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/xfce4-about.desktop %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README THANKS %config(noreplace) %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml %{_libdir}/*.so.* %files -n xfce4-about %{_bindir}/xfce4-about %{_datadir}/applications/xfce4-about.desktop %{_datadir}/icons/hicolor/48x48/apps/xfce4-logo.png %files devel %defattr(-,root,root,-) %doc TODO %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %doc %{_datadir}/gtk-doc/ %if 0%{?fedora} > 20 %{_libdir}/glade3/modules/lib*.so %{_datadir}/glade3/catalogs/%{name}.xml* %{_datadir}/glade3/pixmaps/hicolor/*/actions/* %endif %changelog * Sat Feb 28 2015 Mukundan Ragavan - 4.12.0-1 - Update to latest stable release 4.12.0 - Remove upstreamed patches - Built with GTK3 enabled - change Terminal to xfce4-terminal in shortcuts patch * Sat Feb 21 2015 Till Maas - 4.10.0-14 - Rebuilt for Fedora 23 Change https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code * Sun Aug 17 2014 Fedora Release Engineering - 4.10.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 4.10.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri May 16 2014 Mukundan Ragavan - 4.10.0-11 - patch to fix bug #1095362 - patch13 - enable-shortcut.patch * Fri May 16 2014 Mukundan Ragavan - 4.10.0-10 - Add patches to fix bug #1095362 - Patch11 - enable-shift-modifier-in-shortcut-dialog.patch - Patch12 - enable-shift-modifier-in-shortcut-grabber.patch * Wed Nov 06 2013 Kevin Fenzi 4.10.0-9 - Add patch to fix double fork issue that prevents some apps from running from the menu. - Fixes bug #879922 * Wed Nov 06 2013 Kevin Fenzi 4.10.0-8 - Conditionalize glade3 stuff so we can keep the same spec over branches. * Wed Nov 06 2013 Lubomir Rintel - 4.10.0-7 - Re-enable glade3 module, it works now * Sat Aug 03 2013 Fedora Release Engineering - 4.10.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 4.10.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Jan 22 2013 Christoph Wickert - 4.10.0-4 - Don't ship xfce4-about in libxfce4ui-devel (#902537) * Sat Oct 13 2012 Christoph Wickert - 4.10.0-3 - Make a separate package for xfce4-about - Add more keyboard shortcuts - Move xfce4-about menu entry to 'Documentation' category * Thu Jul 19 2012 Fedora Release Engineering - 4.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Apr 28 2012 Christoph Wickert - 4.10.0-1 - Update to 4.10.0 final * Sat Apr 14 2012 Kevin Fenzi - 4.9.2-1 - Update to 4.9.2 (Xfce 4.10pre2) * Sun Apr 01 2012 Kevin Fenzi - 4.9.1-1 - Update to 4.9.1 * Fri Jan 13 2012 Fedora Release Engineering - 4.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Dec 23 2011 Christoph Wickert - 4.8.1-1 - Update to 4.8.1 * Sun Dec 18 2011 Christoph Wickert - 4.8.0-6 - Fix Control shortcuts (#768704) - Add review # and VCS key * Tue Dec 06 2011 Adam Jackson - 4.8.0-5 - Rebuild for new libpng * Wed Mar 16 2011 Christoph Wickert - 4.8.0-5 - Remove requirements for libxfcegui4-devel now that glade support was omitted * Tue Feb 22 2011 Rakesh Pandit - 4.8.0-4 - Disable glade as it still uses old API * Tue Feb 22 2011 Rakesh Pandit - 4.8.0-3 - Rebuild for new glade * Tue Feb 08 2011 Fedora Release Engineering - 4.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jan 16 2011 Kevin Fenzi - 4.8.0-1 - Update to 4.8.0 final. * Sun Jan 02 2011 Christoph Wickert - 4.7.6-1 - Update to 4.7.6 * Mon Nov 29 2010 Christoph Wickert - 4.7.5-1 - Update to 4.7.5 * Mon Nov 08 2010 Christoph Wickert - 4.7.4-1 - Update to 4.7.4 * Sun Sep 05 2010 Christoph Wickert - 4.7.3-1 - Update to 4.7.3 - Drop dependency on gtk-doc (#604399) * Tue Jul 27 2010 Christoph Wickert - 4.7.2-2 - Fix file conflict with libxfce4gui (#618719) * Fri May 21 2010 Christoph Wickert - 4.7.2-1 - Update to 4.7.2 * Wed May 19 2010 Kevin Fenzi - 4.7.1-3 - Rebuild for new glade version. * Tue Jan 12 2010 Christoph Wickert - 4.7.1-2 - Fix license tag - Build gtk-doc * Tue Jan 05 2010 Christoph Wickert - 4.7.1-1 - Initial spec file, based on libxfcegui4.spec