%global commit a302128d2e23984501ed0a77413594ad440eddde %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: sqlitebrowser Version: 3.13.0 Release: 0.4%{?commit:.git%{shortcommit}}%{?dist} Summary: Create, design, and edit SQLite database files License: GPLv3+ or MPLv2.0 URL: https://github.com/%{name}/%{name} %if 0%{?commit:1} Source0: https://github.com/%{name}/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz %else Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz %endif # Unbundle bundled libraries Patch0: sqlitebrowser_unbundle.patch BuildRequires: antlr-C++ BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: libappstream-glib BuildRequires: make BuildRequires: qcustomplot-qt5-devel BuildRequires: qhexedit2-qt5-devel BuildRequires: sqlcipher-devel BuildRequires: qscintilla-qt5-devel BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qttools-devel Requires: hicolor-icon-theme %description SQLite Database Browser is a high quality, visual, open source tool to create, design, and edit database files compatible with SQLite. %prep %if 0%{?commit:1} %autosetup -p1 -n %{name}-%{commit} %else %autosetup -p1 -n %{name}-%{version} %endif # Unbundle rm -rf libs/{qcustomplot-source,qhexedit,qscintilla} # add sqlcipher to include path sed -i 's@^\(\s*\)set(LIBSQLITE_NAME sqlcipher)@&\n\1include_directories(/usr/include/sqlcipher)@' CMakeLists.txt %build %cmake \ -DENABLE_TESTING=1 \ -DFORCE_INTERNAL_QCUSTOMPLOT=OFF \ -DFORCE_INTERNAL_QHEXEDIT=OFF \ -Dsqlcipher=1 %cmake_build %install %cmake_install %{_bindir}/appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.desktop.appdata.xml desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %check %ctest %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_datadir}/metainfo/%{name}.desktop.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/256x256/apps/%{name}.png %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %changelog * Sat Jul 23 2022 Fedora Release Engineering - 3.13.0-0.4.gita302128 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Feb 28 2022 Sandro Mani - 3.13.0-0.3.gita302128 - Add support for encrypted databases * Sat Jan 22 2022 Fedora Release Engineering - 3.13.0-0.2.gita302128 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Sep 01 2021 Sandro Mani - 3.13.0-0.1.gitd28a980 - Update to git d28a980 * Fri Jul 23 2021 Fedora Release Engineering - 3.12.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat May 15 2021 Sandro Mani - 3.12.2-1 - Update to 3.12.2 * Tue Mar 30 2021 Jonathan Wakely - 3.12.1-3 - Rebuilt for removed libstdc++ symbol (#1937698) * Wed Jan 27 2021 Fedora Release Engineering - 3.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Nov 09 2020 Sandro Mani - 3.12.1-1 - Update to 3.12.1 * Wed Jul 29 2020 Fedora Release Engineering - 3.12.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 16 2020 Sandro Mani - 3.12.0-1 - Update to 3.12.0 * Fri Jan 31 2020 Fedora Release Engineering - 3.11.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jul 27 2019 Fedora Release Engineering - 3.11.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Apr 04 2019 Sandro Mani - 3.11.2-1 - Update to 3.11.2 * Tue Feb 19 2019 Sandro Mani - 3.11.1-1 - Update to 3.11.1 * Sun Feb 17 2019 Rex Dieter - 3.11.0-3 - rebuild (qscintilla) * Tue Feb 12 2019 Rex Dieter - 3.11.0-2 - rebuild (qscintilla) * Mon Feb 11 2019 Sandro Mani - 3.11.0-1 - Update to 3.11.0 * Sun Feb 03 2019 Fedora Release Engineering - 3.10.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 3.10.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Mar 29 2018 Sandro Mani - 3.10.1-5 - Backport fix for sqlitebrowser window getting restored as soon as minimized (#1561976) * Mon Feb 19 2018 Sandro Mani - 3.10.1-4 - Add missing BR: gcc-c++, make * Fri Feb 09 2018 Fedora Release Engineering - 3.10.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 18 2018 Igor Gnatenko - 3.10.1-2 - Remove obsolete scriptlets * Thu Sep 21 2017 Sandro Mani - 3.10.1-1 - Update to 3.10.1 * Sun Aug 20 2017 Sandro Mani - 3.10.0-1 - Update to 3.10.0 * Thu Aug 03 2017 Fedora Release Engineering - 3.9.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 3.9.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Feb 20 2017 Rex Dieter - 3.9.1-5 - rebuild (qscintilla), drop (qt4) BR: qscintilla-devel * Sat Feb 11 2017 Fedora Release Engineering - 3.9.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 10 2017 Sandro Mani - 3.9.1-3 - Rebuild (qhexedit2) * Wed Nov 09 2016 Sandro Mani - 3.9.1-2 - Rebuild (qhexedit2) * Mon Oct 03 2016 Sandro Mani - 3.9.1-1 - Update to 3.9.1 * Mon Sep 05 2016 Sandro Mani - 3.9.0-1 - Update to 3.9.0 * Fri Feb 05 2016 Fedora Release Engineering - 3.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Dec 27 2015 Sandro Mani - 3.8.0-1 - Update to 3.8.0 * Tue Nov 17 2015 Sandro Mani - 3.7.0-3 - Fix stack overflow due to signal infinite loop (#1282792) * Fri Jun 19 2015 Fedora Release Engineering - 3.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jun 15 2015 Sandro Mani - 3.7.0-1 - Update to 3.7.0 * Wed May 20 2015 Sandro Mani - 3.6.0-2 - Rebuild (qhexedit2) * Thu Apr 30 2015 Sandro Mani - 3.6.0-1 - Update to 3.6.0 * Mon Feb 09 2015 Sandro Mani - 3.5.1-1 - Update to 3.5.1 * Mon Feb 02 2015 Sandro Mani - 3.5.0-1 - Update to 3.5.0 * Sun Dec 28 2014 Sandro Mani - 3.4.0-2 - Rebuild (qcustomplot) * Fri Oct 31 2014 Sandro Mani - 3.4.0-1 - Update to 3.4.0 * Sun Aug 10 2014 Sandro Mani - 3.2.0-1 - Initial package