+
+ Shutter is a feature-rich screenshot program. You can take a screenshot of a
diff --git a/shutter.spec b/shutter.spec
index e83e631..a61b240 100644
--- a/shutter.spec
+++ b/shutter.spec
@@ -1,128 +1,261 @@
+# For git snapshots, set to 0 to use release instead:
+%global usesnapshot 1
+%if 0%{?usesnapshot}
+%global commit0 21d0da3bd0e0b256cdfec83099fee87fbb62405f
+%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
+%global snapshottag .git%{shortcommit0}
+%endif
+
Name: shutter
-Version: 0.94.3
-Release: 5%{?dist}
-Summary: GTK+2-based screenshot application written in Perl
-License: GPLv3+
-URL: http://shutter-project.org
-Source0: https://launchpad.net/shutter/0.9x/%{version}/+download/shutter-%{version}.tar.gz
+%if 0%{?usesnapshot}
+Version: 0.99.7
+Release: 0.2%{?snapshottag}%{?dist}
+%else
+Version: 0.99.6
+Release: 4%{?dist}
+%endif
+
+Summary: GTK+3-based screenshot application written in Perl
+# share/shutter/resources/icons/draw.svg packaged is CC-BY-SA
+# share/shutter/resources/system/plugins/perl/spwatermark/spwatermark.svg is Public Domain
+# share/shutter/resources/po/shutter/zh_TW.po is MIT (same as gscrot )
+# share/shutter/resources/icons/drawing_tool/objects/tux.svg is GPLv2
+# share/shutter/resources/icons/drawing_tool/cursor files are GPLv2+
+# share/appdata/shutter.appdata.xml is CC0
+# Automatically converted from old format: GPLv3+ and GPLv2+ and GPLv2 and CC-BY-SA and MIT and CC0 and Public Domain - review is highly recommended.
+License: GPL-3.0-or-later AND GPL-2.0-or-later AND GPL-2.0-only AND LicenseRef-Callaway-CC-BY-SA AND LicenseRef-Callaway-MIT AND CC0-1.0 AND LicenseRef-Callaway-Public-Domain
+URL: https://shutter-project.org/
+%if 0%{?usesnapshot}
+Source0: https://github.com/shutter-project/shutter/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
+%else
+Source0: https://github.com/shutter-project/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+%endif
+
# https://bugs.launchpad.net/shutter/+bug/1469840
BuildArch: noarch
+
BuildRequires: desktop-file-utils
+BuildRequires: libappstream-glib
+BuildRequires: coreutils
+BuildRequires: sed
%if 0%{?fedora}
BuildRequires: perl-interpreter
%endif
BuildRequires: perl-generators
-Requires: ImageMagick
-Requires: perl(Gtk2::ImageView)
-Requires: perl(X11::Protocol::Ext::XFIXES)
-Requires: nautilus-sendto
-Requires: hicolor-icon-theme
-Requires: perl(Gtk2::Unique)
-Requires: perl(Gtk2::AppIndicator)
+BuildRequires: gettext
-Requires: perl(Image::ExifTool)
-Requires: perl(Goo::Canvas)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: ImageMagick
+Requires: tango-icon-theme
+Requires: perl(X11::Protocol::Ext::XFIXES)
+Requires: hicolor-icon-theme
+Requires: libwnck3
+Requires: perl(Image::ExifTool)
+Requires: perl(Goo::Canvas)
+%if 0%{?fedora} >= 41
+Requires: gdk-pixbuf2-modules-extra
+%endif
-%{?filter_setup:
-%filter_provides_in %{_datadir}/%{name}/resources/system/upload_plugins
-%filter_setup
-}
+
+# Filter all provides
+%global __provides_exclude_from %{_datadir}/%{name}/resources/system/upload_plugins
+# Do not provide perl(Gtk3::IconSize)
+%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Gtk3::IconSize\\)
%description
-Shutter is a GTK+ 2.x based screenshot application written in Perl.
-Shutter covers all features of common command line tools like
-scrot or import and adds reasonable new features combined
-with a comfortable GUI using the GTK+ 2.x framework.
-
+Shutter is a feature-rich screenshot program for Linux based operating systems
+such as Ubuntu. You can take a screenshot of a specific area, window, your whole
+screen, or even of a website – apply different effects to it, draw on it to
+highlight points, and then upload to an image hosting site, all within one
+window. Shutter is free, open-source, and licensed under GPL v3.
%prep
-%setup -q -n %{name}-%{version}
-rm -vr share/doc/
+%if 0%{?usesnapshot}
+ %autosetup -n %{name}-%{commit0}
+%else
+ %autosetup -p0 -n %{name}-%{version}
+%endif
# Remove the bundled perl(X11::Protocol::Ext::XFIXES)
rm -vr share/%{name}/resources/modules/X11
-rm -vr share/%{name}/resources/modules/WebService
%build
+./po2mo.sh
%install
# executable and data
-install -d -m 0755 -p $RPM_BUILD_ROOT%{_bindir}
-install -d -m 0755 -p $RPM_BUILD_ROOT%{_datadir}
-install -d -m 0755 -p $RPM_BUILD_ROOT%{perl_vendorlib}
-cp -pfr bin/* $RPM_BUILD_ROOT%{_bindir}/
-cp -pfr share/* $RPM_BUILD_ROOT%{_datadir}/
-mv $RPM_BUILD_ROOT%{_datadir}/%{name}/resources/modules/* \
- $RPM_BUILD_ROOT%{perl_vendorlib}
-rmdir $RPM_BUILD_ROOT%{_datadir}/%{name}/resources/modules/
+install -d -m 0755 -p %{buildroot}%{_bindir}
+install -d -m 0755 -p %{buildroot}%{_datadir}
+install -d -m 0755 -p %{buildroot}%{perl_vendorlib}
+cp -pfr bin/* %{buildroot}%{_bindir}/
+cp -pfr share/* %{buildroot}%{_datadir}/
+mv %{buildroot}%{_datadir}/%{name}/resources/modules/* \
+ %{buildroot}%{perl_vendorlib}
+rmdir %{buildroot}%{_datadir}/%{name}/resources/modules/
desktop-file-install --delete-original \
- --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
- ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
+ --dir %{buildroot}%{_datadir}/applications \
+ %{buildroot}%{_datadir}/applications/%{name}.desktop
-# Register as an application to be visible in the software center
-#
-# NOTE: It would be *awesome* if this file was maintained by the upstream
-# project, translated and installed into the right place during `make install`.
-#
-# See http://www.freedesktop.org/software/appstream/docs/ for more details.
-#
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
-cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
-
-
-
- shutter.desktop
- CC0-1.0
-
-
- Shutter is a feature-rich screenshot program. You can take a screenshot of a
- specific area, window, your whole screen, or even of a website - apply different
- effects to it, draw on it to highlight points, and then upload to an image
- hosting site, all within one window.
- Shutter is free, open-source, and licensed under GPL v3.
-
-
- Shutter allows you to capture nearly anything on your screen without losing
- control over your screenshots (tabbed interface).
- You don't need to open an external graphics editor like GIMP, because Shutter
- ships with its own built-in editor.
-
-
- http://shutter-project.org/
-
- https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/shutter/a.png
- https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/shutter/b.png
- https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/shutter/c.png
- https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/shutter/d.png
-
-
-
-EOF
+# fixes E: script-without-shebang
+chmod 0644 %{buildroot}%{_datadir}/%{name}/resources/system/upload_plugins/upload/*.pm
%find_lang %{name} --all-name
+# Symlink duplicated files
+rm %{buildroot}%{_datadir}/icons/HighContrast/scalable/apps/shutter-panel.svg
+ln -s %{_datadir}/icons/HighContrast/scalable/apps/shutter.svg %{buildroot}%{_datadir}/icons/HighContrast/scalable/apps/shutter-panel.svg
+rm %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/shutter-panel.png
+ln -s %{_datadir}/icons/hicolor/16x16/apps/shutter.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/shutter-panel.png
+rm %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/shutter-panel.png
+ln -s %{_datadir}/icons/hicolor/22x22/apps/shutter.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/shutter-panel.png
+rm %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/shutter.png
+ln -s %{_datadir}/icons/hicolor/32x32/apps/shutter.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/shutter-panel.png
+rm %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/shutter-panel.svg
+ln -s %{_datadir}/icons/hicolor/scalable/apps/shutter.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/shutter-panel.svg
+rm %{buildroot}%{_datadir}/shutter/resources/icons/Image.svg
+ln -s %{_datadir}/shutter/resources/icons/drawing_tool/draw-image.svg %{buildroot}%{_datadir}/shutter/resources/icons/Image.svg
+rm %{buildroot}%{_datadir}/shutter/resources/icons/Normal.cur
+ln -s %{_datadir}/shutter/resources/icons/drawing_tool/objects/Cursors/Normal.cur %{buildroot}%{_datadir}/shutter/resources/icons/Normal.cur
+rm %{buildroot}%{_datadir}/shutter/resources/icons/drawing_tool/cursor/backtext
+ln -s %{_datadir}/shutter/resources/icons/drawing_tool/cursor/text %{buildroot}%{_datadir}/shutter/resources/icons/drawing_tool/cursor/backtext
+
+# linking tango-icon theme
+ln -s %{_datadir}/icons/Tango/scalable %{buildroot}/%{_datadir}/shutter/resources/icons/drawing_tool/objects/Tango
+
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
+appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/%{name}.metainfo.xml
+
%files -f %{name}.lang
%doc CHANGES README
%license COPYING
+%license %{_datadir}/%{name}/resources/license/*
%{_bindir}/%{name}
%{perl_vendorlib}/Shutter/
-%{_datadir}/appdata/%{name}.appdata.xml
+%{_metainfodir}/%{name}.metainfo.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_mandir}/man1/%{name}*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/icons/hicolor/*/apps/*.*
%{_datadir}/icons/HighContrast/
-%{_datadir}/icons/ubuntu-mono-*/*/apps/%{name}-panel.*
%changelog
+* Fri Jul 17 2026 Fedora Release Engineering - 0.99.7-0.2.git21d0da3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
+
+* Sat Apr 25 2026 Martin Gansser - 0.99.7-0.1.git21d0da3
+- Update to 0.99.7-0.1.git21d0da3
+- Fixed .xpm cursor files to work with new glycin version
+
+* Sat Jan 17 2026 Fedora Release Engineering - 0.99.6-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
+
+* Fri Jul 25 2025 Fedora Release Engineering - 0.99.6-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
+
+* Fri Jun 06 2025 Martin Gansser - 0.99.6-1
+- Update to 0.99.6-1
+
+* Sun Jan 19 2025 Fedora Release Engineering - 0.99.6-0.3.git66c21b2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
+
+* Wed Nov 06 2024 Martin Gansser - 0.99.6-0.2.git66c21b2
+- Add RR gdk-pixbuf2-modules-extra fix bug (#2323682)
+
+* Thu Oct 31 2024 Martin Gansser - 0.99.6-0.1.git66c21b2
+- Update to 0.99.6-0.1.git66c21b2
+
+* Wed Sep 04 2024 Miroslav Suchý - 0.99.5-3
+- convert license to SPDX
+
+* Sat Jul 20 2024 Fedora Release Engineering - 0.99.5-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
+
+* Sat Apr 27 2024 Martin Gansser - 0.99.5-1
+- Update to 0.99.5-1
+
+* Sat Jan 27 2024 Fedora Release Engineering - 0.99.4-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+
+* Sat Jul 22 2023 Fedora Release Engineering - 0.99.4-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
+
+* Sat Mar 25 2023 Martin Gansser - 0.99.4-1
+- Update to 0.99.4-1
+
+* Mon Mar 06 2023 Martin Gansser - 0.99.3-1
+- Update to 0.99.3-1
+
+* Fri Mar 03 2023 Martin Gansser - 0.99.3-0.1.gitb089b93
+- Update to 0.99.3-0.1.gitb089b93
+
+* Sat Jan 21 2023 Fedora Release Engineering - 0.99.2-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
+
+* Fri Jul 22 2022 Martin Gansser - 0.99.2-4
+- Add %%{name}-appdata.patch to fix invalid tag in xml file (BZ#2109819)
+
+* Mon May 30 2022 Jitka Plesnikova - 0.99.2-3
+- Perl 5.36 rebuild
+
+* Sat Jan 22 2022 Fedora Release Engineering - 0.99.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+
+* Tue Oct 26 2021 Martin Gansser - 0.99.2-1
+- Update to 0.99.2-1
+
+* Mon Oct 18 2021 Martin Gansser - 0.99.1-1
+- Update to 0.99.1-1
+
+* Sun Sep 05 2021 Martin Gansser - 0.99-2
+- Cleanup spec file
+
+* Sat Sep 04 2021 Martin Gansser - 0.99-1
+- Update to 0.99-1
+
+* Tue Aug 31 2021 Martin Gansser - 0.98-6
+- Add RR libwnck3 needed by X11
+
+* Thu Aug 19 2021 Martin Gansser - 0.98-5
+- Use plain "perl" instead of %%{__perl} macro
+- Do not provide perl(Gtk3::IconSize)
+
+* Thu Aug 19 2021 Martin Gansser - 0.98-4
+- Move %%global __provides_exclude_from above the description section
+- Add share/shutter/resources/icons/drawing_tool/cursor files are GPLv2+
+- List the licenses of all the packaged files into the License section
+- Creating symbolic links (ln -s) instead of hard links in the %%install section
+- Do not explicitly run-require perl(GooCanvas2::CairoTypes) and perl(Gtk3::ImageView)
+ they are found automatically.
+- Do not run-require perl-Pango. It is found as perl(Pango) automatically
+
+* Sun Aug 08 2021 Martin Gansser - 0.98-3
+- Unbundle tango-icon-theme
+- Add RR tango-icon-theme
+
+* Thu Aug 05 2021 Martin Gansser - 0.98-2
+- Update URL
+- Use a description from About
+- Declare license files
+- Add Provides bundled(tango-icon-theme)
+- Do not use %%filter_provides_in use %%__provides_exclude_from
+- Add BR libappstream-glib
+- Add BR coreutils
+- Add BR sed
+- Move icons into the correct directory
+- Symlink duplicated files
+- Filter all provides
+
+* Wed Aug 04 2021 Martin Gansser - 0.98-1
+- Update to 0.98-1
+
+* Tue Jun 22 2021 Martin Gansser - 0.97-0.1.git01d8563
+- Update to 0.97-0.1.git01d8563
+- Add RR perl(Gtk3::ImageView)
+- Add RR perl(Goo::Canvas)
+- Add RR perl(GooCanvas2::CairoTypes)
+- Add RR perl-Pango
+
* Wed Jul 29 2020 Fedora Release Engineering - 0.94.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
diff --git a/sources b/sources
index 8d71d4a..949106c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (shutter-0.94.3.tar.gz) = 7f67ed6fbc94aee4b6caa73662ab20684e2d8bdfd7208dcd407bdce4e1b93f2aa1fa256ad6bce66b92c741500726b90e5701e7f31bc831709568e5c4c27bff3b
+SHA512 (shutter-21d0da3.tar.gz) = 8431eea3b2316078baa7cd0423dba54575aa65b12e6aa946b3dfbbca61ddc230382d3d1ae14ff81aa8ae7895c405f0297bfd03617f6099e6328d6b6eeb9ace76