File connectagram.spec of Package connectagram
#
# spec file for package connectagram
#
# Copyright (c) 2025 Graeme Gott <graeme@gottcode.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Name: connectagram
Summary: Anagram game
Version: 1.3.8
Release: 1
License: GPL-3.0-or-later
URL: https://gottcode.org/%{name}/
Source: %{name}-%{version}.tar.bz2
#--------------------------------------------------------------------
# Fedora
#--------------------------------------------------------------------
%if 0%{?fedora}
Group: Amusements/Games
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: libappstream-glib
BuildRequires: ninja-build
%endif
#--------------------------------------------------------------------
# SUSE
#--------------------------------------------------------------------
%if 0%{?suse_version}
Group: Amusements/Games/Logic
%endif
#--------------------------------------------------------------------
# All
#--------------------------------------------------------------------
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: cmake
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: cmake(Qt6Widgets)
#--------------------------------------------------------------------
Requires: %{name}-data = %{version}-%{release}
%description
A word unscrambling game. The board consists of several scrambled words that
are joined together. You can choose the length of the words, the amount of
words, and the pattern that the words are arranged in. The game provides a
hint option for times when you are stuck, and features an online word lookup
that fetches the definitions of each word from Wiktionary. Your current
progress is automatically saved.
%package data
Summary: Shared files for %{name}
BuildArch: noarch
%description data
This package contains arch-independent files for %{name}.
%prep
%autosetup -p1
#--------------------------------------------------------------------
# Fedora
#--------------------------------------------------------------------
%if 0%{?fedora}
%build
%cmake_qt6
%cmake_build
%install
%cmake_install
%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop || :
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml || :
%endif
#--------------------------------------------------------------------
# SUSE
#--------------------------------------------------------------------
%if 0%{?suse_version}
%build
%cmake_qt6
%{qt6_build}
%install
%{qt6_install}
%endif
#--------------------------------------------------------------------
%files
%defattr(-,root,root,-)
%if 0%{?suse_version}
%{_datadir}/icons/hicolor/
%endif
%doc ChangeLog COPYING CREDITS README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/metainfo/%{name}.appdata.xml
%{_mandir}/man?/%{name}.*
%files data
%defattr(-,root,root,-)
%doc gamedata/LICENSES/*
%{_datadir}/%{name}
%changelog
* Wed Feb 19 2025 Graeme Gott <graeme@gottcode.org> - 1.3.8-1
- Update to 1.3.8
* Fri Feb 14 2025 Graeme Gott <graeme@gottcode.org> - 1.3.7-1
- Update to 1.3.7
* Mon Jan 06 2025 Graeme Gott <graeme@gottcode.org> - 1.3.6-1
- Update to 1.3.6
* Tue Jan 16 2024 Graeme Gott <graeme@gottcode.org> - 1.3.5-1
- Update to 1.3.5
* Wed Jun 14 2023 Graeme Gott <graeme@gottcode.org> - 1.3.4-1
- Update to 1.3.4
* Tue Jan 10 2023 Graeme Gott <graeme@gottcode.org> - 1.3.3-1
- Update to 1.3.3
* Fri Jun 10 2022 Graeme Gott <graeme@gottcode.org> - 1.3.2-3
- Actually use newer g++ on openSUSE.
* Fri Jun 10 2022 Graeme Gott <graeme@gottcode.org> - 1.3.2-2
- Use newer g++ on openSUSE.
* Tue May 03 2022 Graeme Gott <graeme@gottcode.org> - 1.3.2-1
- Update to 1.3.2
* Sun May 02 2021 Graeme Gott <graeme@gottcode.org> - 1.3.1-2
- Force qmake buildsystem for Qt5
* Sun May 02 2021 Graeme Gott <graeme@gottcode.org> - 1.3.1-1
- Update to 1.3.1
* Tue Apr 27 2021 Graeme Gott <graeme@gottcode.org> - 1.3.0-1
- Update to 1.3.0
* Tue Apr 21 2020 Graeme Gott <graeme@gottcode.org> - 1.2.11-1
- Update to 1.2.11
* Wed Aug 07 2019 Graeme Gott <graeme@gottcode.org> - 1.2.10-1
- Update to 1.2.10
* Fri Jul 20 2018 Graeme Gott <graeme@gottcode.org> - 1.2.9-1
- Update to 1.2.9
* Fri Jun 22 2018 Graeme Gott <graeme@gottcode.org> - 1.2.8-1
- Update to 1.2.8
* Tue May 29 2018 Graeme Gott <graeme@gottcode.org> - 1.2.7-1
- Update to 1.2.7
* Tue Dec 26 2017 Graeme Gott <graeme@gottcode.org> - 1.2.6-1
- Update to 1.2.6
* Sun Jul 30 2017 Graeme Gott <graeme@gottcode.org> - 1.2.5-2
- Fix incorrect AppData installation.
* Sun Jul 30 2017 Graeme Gott <graeme@gottcode.org> - 1.2.5-1
- Update to 1.2.5
* Sun Oct 16 2016 Graeme Gott <graeme@gottcode.org> - 1.2.4-1
- Update to 1.2.4
* Mon Oct 10 2016 Graeme Gott <graeme@gottcode.org> - 1.2.3-4
- Fix missing dependency on data files.
* Sun Oct 09 2016 Graeme Gott <graeme@gottcode.org> - 1.2.3-3
- Fix missing dependency on data files in Debian.
* Sun Oct 09 2016 Graeme Gott <graeme@gottcode.org> - 1.2.3-2
- Split out data files.
* Fri Oct 07 2016 Graeme Gott <graeme@gottcode.org> - 1.2.3-1
- Update to 1.2.3
* Fri Oct 07 2016 Graeme Gott <graeme@gottcode.org> - 1.2.2-4
- Move COPYING file back to doc to fix openSUSE.
* Fri Oct 07 2016 Graeme Gott <graeme@gottcode.org> - 1.2.2-3
- Add directory ownership for openSUSE.
* Fri Oct 07 2016 Graeme Gott <graeme@gottcode.org> - 1.2.2-2
- Add directory ownership for openSUSE.
* Fri Oct 07 2016 Graeme Gott <graeme@gottcode.org> - 1.2.2-1
- Update to 1.2.2
* Tue May 05 2015 Graeme Gott <graeme@gottcode.org> - 1.2.1-2
- Package for Debian 8.
* Sun Jan 25 2015 Graeme Gott <graeme@gottcode.org> - 1.2.1-1
- Update to 1.2.1
* Tue Jan 20 2015 Graeme Gott <graeme@gottcode.org> - 1.2.0-2
- Add icon directories.
* Tue Jan 20 2015 Graeme Gott <graeme@gottcode.org> - 1.2.0-2
- Add manpage.
* Tue Jan 20 2015 Graeme Gott <graeme@gottcode.org> - 1.2.0-1
- Update to 1.2.0
* Sun May 04 2014 Graeme Gott <graeme@gottcode.org> - 1.1.2-6
- Fix package failure on SLE.
* Sun May 04 2014 Graeme Gott <graeme@gottcode.org> - 1.1.2-5
- Switch to Qt 5.
* Tue Feb 04 2014 Graeme Gott <graeme@gottcode.org> - 1.1.2-4
- Fix more errors with debian oldstable packaging.
* Tue Feb 04 2014 Graeme Gott <graeme@gottcode.org> - 1.1.2-3
- Fix debian oldstable packaging.
* Tue Feb 04 2014 Graeme Gott <graeme@gottcode.org> - 1.1.2-2
- Fix debian packaging.
* Tue Feb 04 2014 Graeme Gott <graeme@gottcode.org> - 1.1.2-1
- Update to 1.1.2
* Sun May 05 2013 Graeme Gott <graeme@gottcode.org> - 1.1.1-1
- Update to 1.1.1
* Wed Feb 20 2013 Graeme Gott <graeme@gottcode.org> - 1.1.0.1-1
- Added missing program icons.
* Wed Feb 20 2013 Graeme Gott <graeme@gottcode.org> - 1.1.0-1
- Update to 1.1.0
* Thu Jan 24 2013 Graeme Gott <graeme@gottcode.org> - 1.0.1-10
- Remove nonexistent COPYING from spec file.
* Thu Jan 24 2013 Graeme Gott <graeme@gottcode.org> - 1.0.1-9
- Remove nonexistent xpm from spec file.
* Thu Jan 24 2013 Graeme Gott <graeme@gottcode.org> - 1.0.1-8
- Add category to desktop file.
* Thu Jan 24 2013 Graeme Gott <graeme@gottcode.org> - 1.0.1-7
- Improve spec file.
* Mon Jan 21 2013 Graeme Gott <graeme@gottcode.org> - 1.0.1-6
- Add Debian packaging.
* Mon Dec 05 2011 Graeme Gott <graeme@gottcode.org> - 1.0.1-5
- Update GNOME icon cache.
* Fri Nov 11 2011 Graeme Gott <graeme@gottcode.org> - 1.0.1-4
- Improve spec file.
* Sat Apr 02 2011 Graeme Gott <graeme@gottcode.org> - 1.0.1-3
- Add dependency on hicolor-icon-theme.
* Wed Sep 22 2010 Graeme Gott <graeme@gottcode.org> - 1.0.1-2
- Fixed build issue on openSUSE 11.2.
* Tue Sep 21 2010 Graeme Gott <graeme@gottcode.org> - 1.0.1-1
- Initial package.