# Review at https://bugzilla.redhat.com/show_bug.cgi?id=478659
# Successor of the xfce4-screenshooter-plugin, which was reviewed at
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=179202
%global minorversion 1.8
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 6
%global xfceversion 4.10
%else
%global xfceversion 4.8
%endif
Name: xfce4-screenshooter
Version: 1.8.1
Release: 5%{?dist}
Summary: Screenshot utility for the Xfce desktop
Group: User Interface/Desktops
License: GPLv2+
URL: http://goodies.xfce.org/projects/applications/%{name}
Source0: http://archive.xfce.org/src/apps/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2
#VCS git:git://git.xfce.org/apps/xfce4-screenshooter
# http://git.xfce.org/apps/xfce4-screenshooter/commit/?id=08053be7
Patch0: xfce4-screenshooter-1.8.1-fix-build.patch
# http://git.xfce.org/apps/xfce4-screenshooter/commit/?id=0b22517f
Patch1: xfce4-screenshooter-1.8.1-increase-transparency.patch
# Fix FTBFS with automake-1.14
Patch2: xfce4-screenshooter-1.8.1-automake.patch
BuildRequires: exo-devel >= 0.5.0
BuildRequires: libxfce4ui-devel >= 4.7.0
BuildRequires: xfce4-panel-devel >= 4.4.0
BuildRequires: libsoup-devel >= 2.26.0
BuildRequires: libXext-devel >= 1.0.0
BuildRequires: libXfixes-devel >= 4.0.0
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: desktop-file-utils
# FIXME: For patch0 and aarch64 support; remove when no longer necessary
BuildRequires: xfce4-dev-tools, libtool
%description
The Xfce Screenshooter utility allows you to capture the entire screen, the
active window or a selected region. You can set the delay that elapses before
the screenshot is taken and the action that will be done with the screenshot:
save it to a PNG file, copy it to the clipboard, or open it using another
application.
%package plugin
Summary: Screenshot utility for the Xfce panel
Group: User Interface/Desktops
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: xfce4-panel >= %{xfceversion}
%description plugin
The Xfce Screenshooter plugin allows you to take screenshots from the Xfce
panel.
%prep
%setup -q
%patch0 -p1 -b .fix-build
%patch1 -p1 -b .increase-transparency
%patch2 -p1 -b .automake114
# KDE and GNOME have their own screenshot utils
echo "NotShowIn=KDE;GNOME;" >> src/xfce4-screenshooter.desktop.in.in
%build
# FIXME: For patch0 and aarch64 support; remove when no longer necessary
NOCONFIGURE=yes xdt-autogen
%configure --disable-static
make %{?_smp_mflags} V=1
%install
make install DESTDIR=%{buildroot} INSTALL='install -p'
# remove la file
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
# make sure debuginfo is generated properly
chmod -c +x %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so
%find_lang %{name}
desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
--delete-original \
%{buildroot}%{_datadir}/applications/%{name}.desktop
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/applets-screenshooter.png
%{_datadir}/icons/hicolor/scalable/apps/applets-screenshooter.svg
%{_datadir}/xfce4/doc/
%{_docdir}/%{name}/
%{_mandir}/man1/*.1.*
%files plugin
%{_libdir}/xfce4/panel/plugins/*.so
%{_datadir}/xfce4/panel/plugins/*.desktop
%changelog
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Thu Jun 19 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 1.8.1-4
- Fix FTBFS with automake-1.14 (#1107271)
- Cleanup spec
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Sun May 19 2013 Christoph Wickert <cwickert@fedoraproject.org> - 1.8.1-1
- Update to 1.8.1 (fixes #895968)
- Upstream build fixes: Build plugin as module, no versioned libs,
only export needed symbols
- Add aarch64 support (#926787)
- Increase transparency of selection background (bugzilla.xfce.org #9592)
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sun Apr 15 2012 Kevin Fenzi <kevin@scrye.com> - 1.8.0-6
- Rebuild for Xfce 4.10(pre2)
* Fri Apr 06 2012 Christoph Wickert <cwickert@fedoraproject.org> - 1.8.0-5
- Update manpage (#809491)
* Thu Apr 05 2012 Kevin Fenzi <kevin@scrye.com> - 1.8.0-4
- Rebuild for Xfce 4.10
* Tue Feb 28 2012 Christoph Wickert <cwickert@fedoraproject.org> - 1.8.0-3
- Bring back the dsofix patch
- Rebuild for new libpng
* Wed Aug 03 2011 Christoph Wickert <cwickert@fedoraproject.org> - 1.8.0-2
- Drop dsofix patch, no longer needed
* Mon Aug 01 2011 Christoph Wickert <cwickert@fedoraproject.org> - 1.8.0-1
- Update to 1.8.0
- No longer require xfce4-doc but own %%{_datadir}/xfce4/doc/ (#721291)
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sun Dec 19 2010 Christoph Wickert <cwickert@fedoraproject.org> - 1.7.9-3
- Rebuild for xfce4-panel 4.7
* Tue May 18 2010 Christoph Wickert <cwickert@fedoraproject.org> - 1.7.9-2
- Add patch to fix DSO linking (#564819)
* Sun Feb 07 2010 Christoph Wickert <cwickert@fedoraproject.org> - 1.7.9-1
- Update to 1.7.9 (RC for 1.8.0)
- Include NEWS and TODO
* Thu Jul 30 2009 Christoph Wickert <cwickert@fedoraproject.org> - 1.6.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sun Jun 14 2009 Christoph Wickert <cwickert@fedoraproject.org> - 1.6.0-1
- Update to 1.6.0
* Wed Feb 25 2009 Christoph Wickert <cwickert@fedoraproject.org> - 1.5.1-1
- Update to 1.5.1
- Built for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sun Jan 18 2009 Christoph Wickert <cwickert@fedoraproject.org> - 1.5.0-1
- Update to 1.5.0 on Xfce 4.5.93.
* Fri Jan 02 2009 Christoph Wickert <cwickert@fedoraproject.org> - 1.4.90.0-1
- Update to 1.4.90.0
- Split package into standalone app and panel plugin
* Thu Nov 27 2008 Christoph Wickert <cwickert@fedoraproject.org> - 1.4.0-1
- Update to 1.4.0
* Wed Aug 27 2008 Christoph Wickert <cwickert@fedoraproject.org> - 1.3.2-1
- Update to 1.3.2
* Wed Aug 27 2008 Christoph Wickert <cwickert@fedoraproject.org> - 1.3.2-1
- Update to 1.3.2
* Fri Jul 18 2008 Christoph Wickert <cwickert@fedoraproject.org> - 1.3.1-1
- Update to 1.3.1
* Wed Jul 16 2008 Christoph Wickert <cwickert@fedoraproject.org> - 1.3.0-1
- Update to 1.3.0
* Thu Jul 03 2008 Christoph Wickert <cwickert@fedoraproject.org> - 1.2.0-1
- Update to 1.2.0
- Include new xfce4-screenshooter manpage
* Sat Jun 21 2008 Christoph Wickert <cwickert@fedoraproject.org> - 1.1.0-1
- Update to 1.1.0
- BR gettext
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.0-7
- Autorebuild for GCC 4.3
* Sat Aug 25 2007 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.0-6
- Change license tag to GPLv2+
* Sat Apr 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.0-5
- Rebuild for Xfce 4.4.1
* Sun Jan 28 2007 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.0-4
- Rebuild for XFCE 4.4.
* Thu Oct 05 2006 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.0-3
- Bump release for devel checkin.
* Wed Sep 13 2006 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.0-2
- Rebuild for XFCE 4.3.99.1.
- BR perl(XML::Parser).
* Mon Sep 04 2006 Christoph Wickert <cwickert@fedoraproject.org> - 1.0.0-1
- Update to 1.0.0 on XFCE 4.3.90.2.
* Mon Sep 04 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.0.8-4
- Mass rebuild for Fedora Core 6.
* Tue Apr 11 2006 Christoph Wickert <fedora.wickert@arcor.de> - 0.0.8-3
- Require xfce4-panel.
* Thu Feb 16 2006 Christoph Wickert <fedora.wickert@arcor.de> - 0.0.8-2
- Rebuild for Fedora Extras 5.
* Sat Jan 21 2006 Christoph Wickert <fedora.wickert@arcor.de> - 0.0.8-1
- Initial Fedora Extras version.