|
|
0685df7 |
Name: chessx
|
|
|
bce0434 |
Version: 1.5.8
|
|
|
2a960a8 |
Release: %autorelease
|
|
|
0685df7 |
Summary: Chess Database and PGN viewer
|
|
|
0685df7 |
|
|
|
1dec9e3 |
# Various parts of code are annotated with different licenses:
|
|
|
1dec9e3 |
# - GNU General Public License (dep/scid/code/src/*)
|
|
|
1dec9e3 |
# - GNU General Public License v2.0 or later (src/*)
|
|
|
1dec9e3 |
# - GNU General Public License, Version 2 (COPYING and License.txt)
|
|
|
1dec9e3 |
# - GNU General Public License, Version 3 (src/gui/messagedialog.cpp)
|
|
|
1dec9e3 |
# - GNU Lesser General Public License, Version 2.1 (src/gui/qled.*)
|
|
|
1dec9e3 |
# - Expat License (dep/scid/code/src/bytebuf.h)
|
|
|
1dec9e3 |
# - BSD 3-clause "New" or "Revised" License (src/database/downloadmanager.*)
|
|
|
1dec9e3 |
# - LGPL (v2.1 or v3) (src/gui/textedit.*)
|
|
|
1dec9e3 |
# In the License field below only the minimal effective license set is
|
|
|
1dec9e3 |
# documented.
|
|
|
7d5e557 |
License: GPL-2.0-only AND GPL-3.0-only
|
|
|
0685df7 |
URL: https://sourceforge.net/projects/chessx/
|
|
|
0685df7 |
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
|
|
|
0685df7 |
|
|
|
37769b4 |
# (downstream patch)
|
|
|
bce0434 |
Patch001: 0001-Work-around-Qt-Wayland-integration-issue.patch
|
|
|
bce0434 |
# https://github.com/Isarhamster/chessx/pull/61
|
|
|
bce0434 |
Patch002: 0002-Fix-install-path-of-icons-on-Linux.patch
|
|
|
37769b4 |
# https://github.com/Isarhamster/chessx/pull/63
|
|
|
bce0434 |
Patch003: 0003-Allow-linking-against-system-libraries-via-pkg-confi.patch
|
|
|
0685df7 |
|
|
|
bce0434 |
# Requires Qt >= 5.14.1 as per INSTALL.md
|
|
|
bce0434 |
%global min_qt_version 5.14.1
|
|
|
0685df7 |
|
|
|
0685df7 |
BuildRequires: gcc-c++
|
|
|
0685df7 |
BuildRequires: qt5-qtbase-devel >= %{min_qt_version}
|
|
|
0685df7 |
BuildRequires: qt5-linguist >= %{min_qt_version}
|
|
|
0685df7 |
BuildRequires: pkgconfig(Qt5Svg) >= %{min_qt_version}
|
|
|
0685df7 |
BuildRequires: pkgconfig(Qt5Multimedia) >= %{min_qt_version}
|
|
|
8331e80 |
BuildRequires: pkgconfig(quazip1-qt5)
|
|
|
334d56b |
BuildRequires: pkgconfig(zlib)
|
|
|
0685df7 |
BuildRequires: desktop-file-utils
|
|
|
0685df7 |
BuildRequires: libappstream-glib
|
|
|
0685df7 |
|
|
|
0685df7 |
# Bundles part of scid 1.0 (https://sourceforge.net/projects/scid/)
|
|
|
0685df7 |
Provides: bundled(scid) = 1.0
|
|
|
0685df7 |
|
|
|
0685df7 |
%description
|
|
|
0685df7 |
ChessX is a free and open source chess database application for Linux, Mac OS X
|
|
|
0685df7 |
and Windows.
|
|
|
0685df7 |
|
|
|
0685df7 |
|
|
|
0685df7 |
%prep
|
|
|
0685df7 |
%autosetup -p1 -n %{name}-%{version}
|
|
|
0685df7 |
|
|
|
96e4110 |
# Ensure bundled quazip code is not used
|
|
|
96e4110 |
rm -rf src/quazip
|
|
|
96e4110 |
|
|
|
bce0434 |
# Remove executable bit from regular files (the tarball is buggy)
|
|
|
bce0434 |
chmod -R -x+X .
|
|
|
bce0434 |
|
|
|
0685df7 |
|
|
|
0685df7 |
%build
|
|
|
334d56b |
%qmake_qt5 -r CONFIG+=link_pkgconfig
|
|
|
0685df7 |
%make_build
|
|
|
0685df7 |
|
|
|
0685df7 |
|
|
|
0685df7 |
%install
|
|
|
0685df7 |
%make_install INSTALL_ROOT=%{buildroot}
|
|
|
0685df7 |
|
|
|
0685df7 |
|
|
|
0685df7 |
%check
|
|
|
0685df7 |
# Make sure the .metainfo.xml file passes validation
|
|
|
160570d |
appstream-util validate-relax --nonet \
|
|
|
0685df7 |
%{buildroot}%{_metainfodir}/io.sourceforge.ChessX.metainfo.xml
|
|
|
0685df7 |
|
|
|
0685df7 |
|
|
|
0685df7 |
%files
|
|
|
bce0434 |
%license COPYING.md
|
|
|
bce0434 |
%doc README.md ChangeLog.md
|
|
|
0685df7 |
%{_bindir}/chessx
|
|
|
0685df7 |
%{_datadir}/applications/chessx.desktop
|
|
|
bce0434 |
%{_datadir}/icons/hicolor/256x256/apps/chessx.png
|
|
|
0685df7 |
%{_datadir}/icons/hicolor/64x64/apps/chessx.png
|
|
|
0685df7 |
%{_datadir}/icons/hicolor/32x32/apps/chessx.png
|
|
|
0685df7 |
%{_metainfodir}/io.sourceforge.ChessX.metainfo.xml
|
|
|
0685df7 |
|
|
|
0685df7 |
|
|
|
0685df7 |
%changelog
|
|
|
2a960a8 |
%autochangelog
|