## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: git-cola Version: 4.3.2 Release: %autorelease Summary: A sleek and powerful git GUI License: GPL-2.0-or-later URL: https://git-cola.github.io Source0: https://github.com/git-cola/git-cola/archive/v%{version}/%{name}-%{version}.tar.gz Patch0: 0001-Unvendorize-polib.py.patch BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: git BuildRequires: xmlto BuildRequires: libappstream-glib BuildRequires: rsync BuildRequires: python%{python3_pkgversion}-sphinx BuildRequires: make Requires: python%{python3_pkgversion}-qt5 Requires: git Requires: hicolor-icon-theme Requires: python%{python3_pkgversion}dist(qtpy) Suggests: python%{python3_pkgversion}dist(send2trash) >= 1.7.1 %if 0%{?rhel} == 0 # RHEL 7 doesn't support suggests and webengine isn't available Suggests: python%{python3_pkgversion}-qt5-webkit Suggests: python%{python3_pkgversion}-qt5-webengine %endif %description git-cola is a powerful git GUI with a slick and intuitive user interface. %prep %autosetup -p1 # fix #!/usr/bin/env python to #!/usr/bin/python3 everywhere find . -type f -exec sh -c "head {} -n 1 | grep ^#\!\ \*/usr/bin/env\ python >/dev/null && sed -i -e sX^#\!\ \*/usr/bin/env\ python\ \*"\\\$"X#\!/usr/bin/python%{python3_pkgversion}Xg {}" \; # Remove vendorized polib.py rm cola/polib.py %generate_buildrequires %pyproject_buildrequires %build %global makeopts PYTHON="%{__python3}" SPHINXBUILD="$(ls /usr/bin/sphinx-build*|tail -n1)" NO_PRIVATE_LIBS=1 NO_VENDOR_LIBS=1 %pyproject_wheel make %{makeopts} doc %install %pyproject_install %pyproject_save_files cola %py_byte_compile %{__python3} %{buildroot}%{_datadir}/git-cola/lib/ make DESTDIR=%{buildroot} prefix=%{_prefix} %{makeopts} install-doc make DESTDIR=%{buildroot} prefix=%{_prefix} %{makeopts} install-html %check desktop-file-validate %{buildroot}%{_datadir}/applications/git-cola-folder-handler.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/git-cola.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/git-dag.desktop appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*.appdata.xml %files %doc COPYING COPYRIGHT README.md %{_bindir}/cola %{_bindir}/git-* %{_datadir}/applications/git*.desktop %{_datadir}/metainfo/git*.appdata.xml %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_docdir}/%{name} %{_mandir}/man1/git*.1* %{python3_sitelib}/cola %{python3_sitelib}/git_cola*dist-info %changelog * Mon Sep 18 2023 David Bold - 4.3.2-1 - Update to 4.3.2 * Wed Jul 19 2023 Fedora Release Engineering - 4.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jun 16 2023 Python Maint - 4.2.1-5 - Rebuilt for Python 3.12 * Mon Apr 24 2023 Christoph Erhardt - 4.2.1-4 - Add soft dependency on send2trash library * Mon Apr 24 2023 Christoph Erhardt - 4.2.1-3 - Unbundle vendorized polib.py * Mon Apr 24 2023 Christoph Erhardt - 4.2.1-2 - Migrate to SPDX license identifier * Fri Apr 21 2023 Christoph Erhardt - 4.2.1-1 - Update to 4.2.1 * Thu Jan 19 2023 Fedora Release Engineering - 3.12.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 3.12.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 3.12.0-2 - Rebuilt for Python 3.11 * Tue Jan 25 2022 David Bold - 3.12.0-1 - Update to 3.12.0 * Thu Jan 20 2022 Fedora Release Engineering - 3.11.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Oct 27 2021 David Bold - 3.11.0-2 - Add sources * Wed Oct 27 2021 David Bold - 3.11.0-1 - Update to 3.11.0 * Fri Aug 27 2021 David Aguilar - 3.10.1-3 - git-cola.spec: drop the inotify dependency * Sat Aug 14 2021 David - 3.10.1-2 - Add new archive * Sat Aug 14 2021 David - 3.10.1-1 - Update to 3.10.1 * Tue Aug 03 2021 Carl George - 3.10-5 - Use %%autorelease to avoid mismatched releases * Thu Jul 22 2021 Fedora Release Engineering - 3.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun Jul 11 2021 David - 3.10-3 - Don't use bundled qtpy * Sun Jul 11 2021 David - 3.10-2 - Add sources * Sun Jul 11 2021 David - 3.10-1 - Update to 3.10 * Fri Jun 04 2021 Python Maint - 3.9-2 - Rebuilt for Python 3.10 * Fri Feb 19 2021 David Schwörer - 3.9-1 - Update to 3.9 * Tue Jan 26 2021 Fedora Release Engineering - 3.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Sep 17 2020 David Schwörer - 3.8-1 - Update to 3.8 * Sun Aug 02 2020 David Schwörer - 3.7-1 - Update to 3.7 - Disable magic byte compilation * Sat Aug 01 2020 Fedora Release Engineering - 3.6-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 3.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Apr 10 2020 David Schwörer - 3.6-2 - Update to 3.6 * Fri Apr 10 2020 David Schwörer - 3.4-5 - Add weak dependency for showing shortcuts * Mon Apr 06 2020 David Schwörer - 3.4-4 - Use python3-qt5 instead of python3-pyqt5 - Fix FTBFS * Sat Feb 15 2020 David Aguilar - 3.4-4 - Use python3-pyqt5 instead of pyside2. * Tue Jan 28 2020 Fedora Release Engineering - 3.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Oct 29 2019 Ben Boeckel - 3.4-3 - Use PyQt5 * Thu Jul 25 2019 Fedora Release Engineering - 3.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Jun 28 2019 Oliver Haessler - 3.4-1 - Update to 3.4 * Mon Feb 04 2019 Oliver Haessler - 3.3-1 - Update to 3.3 * Thu Jan 31 2019 Fedora Release Engineering - 3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jan 08 2019 Oliver Haessler - 3.2-1 - Update to 3.2 * Fri Jul 13 2018 Fedora Release Engineering - 2.10-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.10-5 - Rebuilt for Python 3.7 * Wed Feb 07 2018 Fedora Release Engineering - 2.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sat Jan 14 2017 Oliver Haessler - 2.10-1 - Update to 2.10 * Mon Dec 19 2016 Miro Hrončok - 2.9.1-2 - Rebuild for Python 3.6 * Thu Nov 24 2016 Oliver Haessler - 2.9.1-1 - Update to 2.9.1 * Wed Nov 23 2016 Oliver Haessler - 2.9-1 - Update to 2.9 * Tue Aug 30 2016 Oliver Haessler - 2.8-1 - Update to 2.8 * Mon Aug 01 2016 Oliver Haessler - 2.7-1 - Update to 2.7 * Fri May 06 2016 Nikos Roussos - 2.6-1 - Update to 2.6 * Wed Mar 02 2016 Rex Dieter 2.3-6 - Requires: PyQt4-webkit * Wed Feb 03 2016 Fedora Release Engineering - 2.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Dec 29 2015 Kevin Kofler - 2.3-4 - Drop obsolete (since 2.0.0) dependency on python*-simplejson (#1294541) * Tue Nov 10 2015 Fedora Release Engineering - 2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Fri Sep 18 2015 Richard Hughes - 2.3-2 - Remove no longer required AppData file * Tue Aug 11 2015 Kevin Kofler - 2.3-1 - Update to 2.3 (#1231812) * Wed Jun 17 2015 Fedora Release Engineering - 2.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Apr 01 2015 Christopher Meng - 2.1.2-1 - Update to 2.1.2 * Thu Mar 26 2015 Richard Hughes - 2.0.8-3 - Add an AppData file for the software center * Mon Dec 15 2014 Kevin Kofler - 2.0.8-2 - Build against Python 3 on Fedora >= 22 * Fri Dec 12 2014 Kevin Kofler - 2.0.8-1 - Update to 2.0.8 (#1136235, also fixes #1171612) - Use less hackish GitHub Source0 URL - Add new icon to file list, icon scriptlets, Requires: hicolor-icon-theme * Sun Aug 03 2014 Kevin Kofler - 2.0.5-1 - Update to 2.0.5 (#1124151) * Thu Jun 26 2014 Christopher Meng - 2.0.4-1 - Update to 2.0.4 * Sat Jun 07 2014 Fedora Release Engineering - 2.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat May 31 2014 Kevin Kofler - 2.0.3-1 - Update to 2.0.3 (#1101185) - Drop BR asciidoc, not used anymore (since 2.0.2) * Wed Apr 23 2014 Christopher Meng - 2.0.2-1 - Update to 2.0.2 * Fri Mar 21 2014 Christopher Meng - 2.0.1-1 - Update to 2.0.1 * Wed Feb 26 2014 Christopher Meng - 2.0.0-1 - Update to 2.0.0 * Sat Feb 15 2014 Christopher Meng - 1.9.4-2 - Remove unneeded dependency. * Fri Feb 07 2014 Christopher Meng - 1.9.4-1 - Update to 1.9.4 * Thu Dec 12 2013 Kevin Kofler - 1.9.3-1 - Update to 1.9.3 (#1040157) * Thu Nov 28 2013 Christopher Meng - 1.9.2-1 - Update to 1.9.2 with fix for BZ#1034778. * Tue Nov 12 2013 Christopher Meng - 1.9.1-1 - Update to 1.9.1 with fix for BZ#1028854. * Wed Sep 25 2013 Christopher Meng - 1.8.5-1 - Update to 1.8.5(BZ#1011796) with fix for BZ#886826. * Thu Sep 05 2013 Christopher Meng - 1.8.4-1 - Update to 1.8.4(BZ#1003317) with fix for BZ#1001200/BZ#1001200. * Sat Aug 03 2013 Fedora Release Engineering - 1.8.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Jun 30 2013 Christopher Meng - 1.8.3-1 - Update to 1.8.3. - Cleanup the spec. * Wed Feb 13 2013 Fedora Release Engineering - 1.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Dec 13 2012 Kevin Kofler - 1.8.1-1 - Update to 1.8.1 (#885442) * Wed Sep 26 2012 Kevin Kofler - 1.8.0-1 - Update to 1.8.0 (#849593) * Thu Jul 19 2012 Fedora Release Engineering - 1.7.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue May 08 2012 Kevin Kofler - 1.7.7-1 - Update to 1.7.7 (#819165) * Mon Mar 19 2012 Kevin Kofler - 1.7.6-1 - Update to 1.7.6 (#804407) * Mon Feb 20 2012 Kevin Kofler - 1.7.5-1 - Update to 1.7.5 (#789309) * Fri Jan 13 2012 Fedora Release Engineering - 1.4.3.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Aug 21 2011 Kevin Kofler - 1.4.3.5-1 - Update to 1.4.3.5 (#732249) * Sat May 21 2011 Kevin Kofler - 1.4.3.4-1 - Update to 1.4.3.4 (#706588) * Sat Apr 23 2011 Kevin Kofler - 1.4.3.3-1 - Update to 1.4.3.3 (#699123) * Thu Apr 14 2011 Kevin Kofler - 1.4.3.2-1 - Update to 1.4.3.2 (#696563, #694806) * Sun Mar 06 2011 Kevin Kofler - 1.4.3.1-1 - Update to 1.4.3.1 (#682518) - Drop upstreamed translations patch * Tue Feb 08 2011 Fedora Release Engineering - 1.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jan 03 2011 Kevin Kofler - 1.4.3-1 - Update to 1.4.3, fixes broken Actions widget - Drop docpath patch, fixed upstream - Drop obsolete conditional for Fedora <= 11 - Fix installation of translations * Fri Jul 30 2010 Thomas Spura - 1.4.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Wed Jul 21 2010 David Malcolm - 1.4.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Sat Mar 13 2010 Ben Boeckel - 1.4.1.2-3 - Backport patch for documentation path * Mon Jan 25 2010 Ben Boeckel - 1.4.1.2-2 - Fix %%files list * Sun Jan 24 2010 Ben Boeckel - 1.4.1.2-1 - Update to 1.4.1.2 * Thu Dec 10 2009 Ben Boeckel - 1.4.1-1 - Update to 1.4.1 * Tue Nov 17 2009 Ben Boeckel 1.4.0.5-1 - Update to 1.4.0.5 * Mon Nov 02 2009 Ben Boeckel 1.4.0.1-1 - Update to 1.4.0.1 - Add patch to not ship simplejson * Sat Oct 24 2009 Ben Boeckel 1.4.0-1 - Update to 1.4.0 * Fri Aug 28 2009 Ben Boeckel 1.3.9.14-1 - Update to 1.3.9.14 * Wed Jul 29 2009 Ben Boeckel 1.3.8-3 - Try build again for mass rebuild * Fri Jul 24 2009 Fedora Release Engineering - 1.3.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sun May 24 2009 Ben Boeckel 1.3.8-1 - Update to 1.3.8 - Fix changelog usage of %% - BR and R on git instead of git-core - Add conditionals on git-difftool * Mon Mar 23 2009 Ben Boeckel 1.3.6-1 - Update to 1.3.6 * Mon Mar 16 2009 Ben Boeckel 1.3.5.42-1 - Update to 1.3.5.42 * Sat Feb 28 2009 Ben Boeckel 1.3.5.28-1 - Added %%post and %%postun - Use desktop-file-install * Tue Feb 24 2009 Fedora Release Engineering - 1.3.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Feb 9 2009 Ben Boeckel 1.3.5-4 - Added missing Requires on PyQt4 * Thu Feb 5 2009 Ben Boeckel 1.3.5-3 - Added patch for shebang line removal * Thu Feb 5 2009 Ben Boeckel 1.3.5-2 - Add missing BRs * Sun Feb 1 2009 Ben Boeckel 1.3.5-1 - Update for 1.3.5 * Thu Jan 8 2009 Ben Boeckel 1.3.4.4-1 - Initial package