a54bed4
# Review at https://bugzilla.redhat.com/show_bug.cgi?id=554599
a54bed4
10bf467
%global xfceversion 4.12
d05eace
ed26f79
Name:		libxfce4ui
9f5b708
Version:        4.12.1
439d4ab
Release:        8%{?dist}
d05eace
Summary:        Commonly used Xfce widgets
d05eace
d05eace
Group:          System Environment/Libraries
d05eace
License:        LGPLv2+
d05eace
URL:            http://xfce.org/
a54bed4
#VCS git:git://git.xfce.org/xfce/libxfce4ui
d05eace
Source0:        http://archive.xfce.org/src/xfce/%{name}/%{xfceversion}/%{name}-%{version}.tar.bz2
5cb159a
# https://bugzilla.xfce.org/show_bug.cgi?id=9626
235c8ec
# this patch seems to have been upstreamed
235c8ec
# Patch1:         libxfce4ui-4.10.0-avoid-double-fork.patch
749c607
## Downstream patches
749c607
# add more keyboard shortcuts to make multimedia keyboards work out of the box
10bf467
# Terminal changed to xfce4-terminal in the patch
0ff66ee
Patch10:        libxfce4ui-4.12.1-keyboard-shortcuts.patch
d05eace
cf9dbc6
BuildRequires:  pkgconfig(gobject-2.0) >= 2.24.0
cf9dbc6
BuildRequires:  pkgconfig(gtk+-2.0) >= 2.20.0
d05eace
BuildRequires:  libSM-devel
cf9dbc6
BuildRequires:  pkgconfig(libxfce4util-1.0) >= %{xfceversion}
cf9dbc6
BuildRequires:  pkgconfig(libxfconf-0) >= %{xfceversion}
cf9dbc6
BuildRequires:  pkgconfig(libstartup-notification-1.0) >= 0.4
7793c95
BuildRequires:  gtk-doc
27d1f05
BuildRequires:  desktop-file-utils
10bf467
BuildRequires:	gtk3-devel
41d5633
%if 0%{?fedora} > 20
128b403
BuildRequires:  glade3-libgladeui-devel >= 3.5.0
41d5633
%endif
d05eace
BuildRequires:  gettext
d05eace
BuildRequires:  intltool
0ff66ee
0ff66ee
#
0ff66ee
# libxfcegui4 was depreciated in the Xfce 4.8 days.
0ff66ee
# Finally obsolete it now in 4.12
0ff66ee
#
0ff66ee
Obsoletes:      libxfcegui4 < 4.10.0-9
d05eace
d05eace
%description
d05eace
Libxfce4ui is used to share commonly used Xfce widgets among the Xfce
d05eace
applications.
d05eace
749c607
749c607
%package -n     xfce4-about
749c607
Summary:        Xfce 4 'About' dialog
749c607
Group:          User Interface/Desktops
749c607
749c607
%description -n xfce4-about
749c607
This package contains the 'About Xfce' dialog with info on the desktop
749c607
environment, it's contributors, and it's licensing.
749c607
749c607
d05eace
%package        devel
d05eace
Summary:        Development files for %{name}
d05eace
Group:          Development/Libraries
d05eace
Requires:       %{name} = %{version}-%{release}
d05eace
Requires:       gtk2-devel
d05eace
Requires:       libxfce4util-devel
41d5633
%if 0%{?fedora} > 20
128b403
Requires:       glade3-libgladeui-devel
41d5633
%endif
d05eace
Requires:       pkgconfig
0ff66ee
Obsoletes:      libxfcegui4-devel < 4.10.0-9
d05eace
d05eace
%description    devel
d05eace
The %{name}-devel package contains libraries and header files for
d05eace
developing applications that use %{name}.
d05eace
d05eace
d05eace
%prep
d05eace
%setup -q
0ff66ee
%patch10 -p1
6e20081
d05eace
%build
10bf467
%configure --enable-gtk-doc --enable-gtk3\
41d5633
%if 0%{?fedora} < 21
41d5633
           --disable-gladeui \
41d5633
%endif
41d5633
           --disable-static
41d5633
bb60266
# Remove rpaths
d05eace
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
d05eace
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
d05eace
bb60266
# The LD_LIBRARY_PATH hack is needed for --enable-gtk-doc
bb60266
# because lt-libxfce4ui-scan is linked against libxfce4ui
bb60266
export LD_LIBRARY_PATH=$( pwd )/libxfce4ui/.libs
bb60266
d05eace
make %{?_smp_mflags} V=1
d05eace
d05eace
d05eace
%install
749c607
rm -rf %{buildroot}
749c607
make install DESTDIR=%{buildroot} INSTALL='install -p'
10bf467
10bf467
# fix permissions for installed libraries
10bf467
chmod 755 $RPM_BUILD_ROOT/%{_libdir}/*.so
10bf467
749c607
find %{buildroot} -name '*.la' -exec rm -f {} ';'
d05eace
%find_lang %{name}
749c607
749c607
# Move xfce4-about to the 'Documentation' category
749c607
desktop-file-install \
749c607
  --delete-original \
749c607
  --remove-category=X-Xfce-Toplevel \
749c607
  --add-category=Documentation \
749c607
  --dir=%{buildroot}%{_datadir}/applications \
749c607
  %{buildroot}%{_datadir}/applications/xfce4-about.desktop
749c607
d05eace
d05eace
%clean
749c607
rm -rf %{buildroot}
d05eace
d05eace
d05eace
%post -p /sbin/ldconfig
d05eace
d05eace
%postun -p /sbin/ldconfig
d05eace
d05eace
d05eace
%files -f %{name}.lang
d05eace
%defattr(-,root,root,-)
d05eace
%doc AUTHORS COPYING NEWS README THANKS
3cbccc0
%config(noreplace) %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
d05eace
%{_libdir}/*.so.*
d05eace
749c607
%files -n xfce4-about
749c607
%{_bindir}/xfce4-about
749c607
%{_datadir}/applications/xfce4-about.desktop
749c607
%{_datadir}/icons/hicolor/48x48/apps/xfce4-logo.png
a54bed4
d05eace
%files devel
d05eace
%defattr(-,root,root,-)
d05eace
%doc TODO
d05eace
%{_includedir}/*
d05eace
%{_libdir}/*.so
d05eace
%{_libdir}/pkgconfig/*.pc
7363ee9
%doc %{_datadir}/gtk-doc/
41d5633
%if 0%{?fedora} > 20
41d5633
%{_libdir}/glade3/modules/lib*.so
128b403
%{_datadir}/glade3/catalogs/%{name}.xml*
128b403
%{_datadir}/glade3/pixmaps/hicolor/*/actions/*
41d5633
%endif
a54bed4
d05eace
%changelog
439d4ab
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.12.1-8
439d4ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
439d4ab
b21ca2b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.12.1-7
b21ca2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b21ca2b
911fd42
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.12.1-6
911fd42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
911fd42
2fccf11
* Sat Jul 23 2016 Kevin Fenzi <kevin@scrye.com> - 4.12.1-5
2fccf11
- Drop control-alt-del for logout shortcut. Fixes bug #1229218
2fccf11
5d8ebc5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.12.1-4
5d8ebc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5d8ebc5
c3f2b1b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.12.1-3
c3f2b1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c3f2b1b
0ff66ee
* Wed Apr 22 2015 Kevin Fenzi <kevin@scrye.com> 4.12.1-2
0ff66ee
- Obsolete libxfcegui4.
0ff66ee
- Drop amixer for volume buttons should be handled by xfce4-pulseaudio-plugin now.
0ff66ee
- Fixes bug #1211313
0ff66ee
9f5b708
* Sun Mar 15 2015 Kevin Fenzi <kevin@scrye.com> 4.12.1-1
9f5b708
- Update to 4.12.1 with various bugfixes.
9f5b708
3dae6cf
* Sun Mar 1 2015 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 4.12.0-2
3dae6cf
- Add shortcuts patch
3dae6cf
10bf467
* Sat Feb 28 2015 Mukundan Ragavan <noamedotc@fedoraproject.org> - 4.12.0-1
10bf467
- Update to latest stable release 4.12.0
10bf467
- Remove upstreamed patches
10bf467
- Built with GTK3 enabled
10bf467
- change Terminal to xfce4-terminal in shortcuts patch
10bf467
4281993
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 4.10.0-14
4281993
- Rebuilt for Fedora 23 Change
4281993
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
4281993
29f349b
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.10.0-13
29f349b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
29f349b
1d89339
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.10.0-12
1d89339
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1d89339
ed26f79
* Fri May 16 2014 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 4.10.0-11
ed26f79
- patch to fix bug #1095362
ed26f79
- patch13 - enable-shortcut.patch
ed26f79
ed26f79
* Fri May 16 2014 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 4.10.0-10
ed26f79
- Add patches to fix bug #1095362
ed26f79
- Patch11 - enable-shift-modifier-in-shortcut-dialog.patch
ed26f79
- Patch12 - enable-shift-modifier-in-shortcut-grabber.patch
ed26f79
5cb159a
* Wed Nov 06 2013 Kevin Fenzi <kevin@scrye.com> 4.10.0-9
5cb159a
- Add patch to fix double fork issue that prevents some apps from running from the menu. 
5cb159a
- Fixes bug #879922
5cb159a
41d5633
* Wed Nov 06 2013 Kevin Fenzi <kevin@scrye.com> 4.10.0-8
41d5633
- Conditionalize glade3 stuff so we can keep the same spec over branches. 
41d5633
128b403
* Wed Nov 06 2013 Lubomir Rintel <lkundrak@v3.sk> - 4.10.0-7
128b403
- Re-enable glade3 module, it works now
128b403
0cc1452
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.10.0-6
0cc1452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0cc1452
a77f5f0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.10.0-5
a77f5f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a77f5f0
e018d83
* Tue Jan 22 2013 Christoph Wickert <cwickert@fedoraproject.org> - 4.10.0-4
6674e7a
- Don't ship xfce4-about in libxfce4ui-devel (#902537)
6674e7a
749c607
* Sat Oct 13 2012 Christoph Wickert <cwickert@fedoraproject.org> - 4.10.0-3
749c607
- Make a separate package for xfce4-about
749c607
- Add more keyboard shortcuts
749c607
- Move xfce4-about menu entry to 'Documentation' category
749c607
0b9b267
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.10.0-2
0b9b267
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0b9b267
cf9dbc6
* Sat Apr 28 2012 Christoph Wickert <cwickert@fedoraproject.org> - 4.10.0-1
cf9dbc6
- Update to 4.10.0 final
cf9dbc6
f56e2a5
* Sat Apr 14 2012 Kevin Fenzi <kevin@scrye.com> - 4.9.2-1
f56e2a5
- Update to 4.9.2 (Xfce 4.10pre2)
f56e2a5
27d1f05
* Sun Apr 01 2012 Kevin Fenzi <kevin@scrye.com> - 4.9.1-1
27d1f05
- Update to 4.9.1
27d1f05
b573ef9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.8.1-2
b573ef9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b573ef9
3b3b319
* Fri Dec 23 2011 Christoph Wickert <cwickert@fedoraproject.org> - 4.8.1-1
3b3b319
- Update to 4.8.1
3b3b319
a54bed4
* Sun Dec 18 2011 Christoph Wickert <cwickert@fedoraproject.org> - 4.8.0-6
a54bed4
- Fix Control shortcuts (#768704)
a54bed4
- Add review # and VCS key
a54bed4
be49c43
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 4.8.0-5
be49c43
- Rebuild for new libpng
be49c43
6e20081
* Wed Mar 16 2011 Christoph Wickert <cwickert@fedoraproject.org> - 4.8.0-5
6e20081
- Remove requirements for libxfcegui4-devel now that glade support was omitted
6e20081
a0e5795
* Tue Feb 22 2011 Rakesh Pandit <rakesh@fedoraproject.org> - 4.8.0-4
a0e5795
- Disable glade as it still uses old API
a0e5795
0f7b449
* Tue Feb 22 2011 Rakesh Pandit <rakesh@fedoraproject.org> - 4.8.0-3
0f7b449
- Rebuild for new glade
0f7b449
2dabd35
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.8.0-2
2dabd35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2dabd35
Kevin Fenzi 6712cdd
* Sun Jan 16 2011 Kevin Fenzi <kevin@tummy.com> - 4.8.0-1
Kevin Fenzi 6712cdd
- Update to 4.8.0 final. 
Kevin Fenzi 6712cdd
bbff641
* Sun Jan 02 2011 Christoph Wickert <cwickert@fedoraproject.org> - 4.7.6-1
bbff641
- Update to 4.7.6
bbff641
bbff641
* Mon Nov 29 2010 Christoph Wickert <cwickert@fedoraproject.org> - 4.7.5-1
bbff641
- Update to 4.7.5
bbff641
bbff641
* Mon Nov 08 2010 Christoph Wickert <cwickert@fedoraproject.org> - 4.7.4-1
bbff641
- Update to 4.7.4
bbff641
7363ee9
* Sun Sep 05 2010 Christoph Wickert <cwickert@fedoraproject.org> - 4.7.3-1
7363ee9
- Update to 4.7.3
7363ee9
- Drop dependency on gtk-doc (#604399)
7363ee9
994b0c0
* Tue Jul 27 2010 Christoph Wickert <cwickert@fedoraproject.org> - 4.7.2-2
994b0c0
- Fix file conflict with libxfce4gui (#618719)
994b0c0
e09558a
* Fri May 21 2010 Christoph Wickert <cwickert@fedoraproject.org> - 4.7.2-1
e09558a
- Update to 4.7.2
e09558a
6ab5f41
* Wed May 19 2010 Kevin Fenzi <kevin@tummy.com> - 4.7.1-3
6ab5f41
- Rebuild for new glade version. 
6ab5f41
bb60266
* Tue Jan 12 2010 Christoph Wickert <cwickert@fedoraproject.org> - 4.7.1-2
bb60266
- Fix license tag
d05eace
- Build gtk-doc
bb60266
bb60266
* Tue Jan 05 2010 Christoph Wickert <cwickert@fedoraproject.org> - 4.7.1-1
bb60266
- Initial spec file, based on libxfcegui4.spec
bb60266