2018-11-05 17:43:03 +00:00
|
|
|
%global major 0
|
|
|
|
%global libname lib%{name}
|
|
|
|
%global develname lib%{name}-devel
|
|
|
|
|
|
|
|
Name: freecell-solver
|
2019-12-30 15:18:53 +00:00
|
|
|
Version: 5.16.0
|
2020-01-28 18:55:22 +00:00
|
|
|
Release: 2%{?dist}
|
2018-11-05 17:43:03 +00:00
|
|
|
License: MIT
|
2019-03-17 22:32:46 +00:00
|
|
|
Source0: https://fc-solve.shlomifish.org/downloads/fc-solve/%{name}-%{version}.tar.xz
|
|
|
|
URL: https://fc-solve.shlomifish.org/
|
2018-11-05 17:43:03 +00:00
|
|
|
Summary: The Freecell Solver Executable
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: gperf
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl(autodie)
|
|
|
|
BuildRequires: perl(Carp)
|
2019-06-16 11:09:41 +00:00
|
|
|
BuildRequires: perl(CHI)
|
2018-11-05 17:43:03 +00:00
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
BuildRequires: perl(Digest::SHA)
|
2019-04-22 09:28:22 +00:00
|
|
|
BuildRequires: perl(Env::Path)
|
2018-11-05 17:43:03 +00:00
|
|
|
BuildRequires: perl(File::Path)
|
2019-06-16 11:09:41 +00:00
|
|
|
BuildRequires: perl(lib)
|
2018-11-05 17:43:03 +00:00
|
|
|
BuildRequires: perl(File::Spec)
|
2019-04-22 09:28:22 +00:00
|
|
|
BuildRequires: perl(File::Which)
|
|
|
|
BuildRequires: perl(Games::Solitaire::Verify)
|
|
|
|
BuildRequires: perl(Games::Solitaire::Verify::Solution)
|
|
|
|
BuildRequires: perl(Inline)
|
|
|
|
BuildRequires: perl(Inline::C)
|
|
|
|
BuildRequires: perl(IPC::Open2)
|
2018-11-05 17:43:03 +00:00
|
|
|
BuildRequires: perl(lib)
|
|
|
|
BuildRequires: perl(List::MoreUtils)
|
2019-04-22 09:28:22 +00:00
|
|
|
BuildRequires: perl(Moo)
|
|
|
|
BuildRequires: perl(MooX)
|
|
|
|
BuildRequires: perl(MooX::late)
|
2018-11-05 17:43:03 +00:00
|
|
|
BuildRequires: perl(parent)
|
|
|
|
BuildRequires: perl(Path::Tiny)
|
2019-04-22 09:28:22 +00:00
|
|
|
BuildRequires: perl(Storable)
|
2018-11-05 17:43:03 +00:00
|
|
|
BuildRequires: perl(strict)
|
2019-04-22 09:28:22 +00:00
|
|
|
BuildRequires: perl(String::ShellQuote)
|
|
|
|
# BuildRequires: perl(Task::FreecellSolver::Testing)
|
2018-11-05 17:43:03 +00:00
|
|
|
BuildRequires: perl(Template)
|
2019-04-22 09:28:22 +00:00
|
|
|
BuildRequires: perl(Test::Data::Split)
|
|
|
|
BuildRequires: perl(Test::Data::Split::Backend::Hash)
|
|
|
|
BuildRequires: perl(Test::Data::Split::Backend::ValidateHash)
|
|
|
|
BuildRequires: perl(Test::Differences)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Test::RunValgrind)
|
|
|
|
BuildRequires: perl(Test::TrailingSpace)
|
|
|
|
BuildRequires: perl(Test::Trap)
|
2018-11-05 17:43:03 +00:00
|
|
|
BuildRequires: perl(warnings)
|
2019-04-22 09:28:22 +00:00
|
|
|
BuildRequires: perl(YAML::XS)
|
2018-11-05 17:43:03 +00:00
|
|
|
BuildRequires: perl-devel
|
2019-06-18 17:26:46 +00:00
|
|
|
BuildRequires: pkgconfig(cmocka)
|
2019-12-30 15:18:53 +00:00
|
|
|
BuildRequires: pkgconfig(librinutils)
|
2019-04-22 09:28:22 +00:00
|
|
|
BuildRequires: python3-cffi
|
2019-08-02 21:32:05 +00:00
|
|
|
BuildRequires: python3-freecell_solver
|
2019-03-21 19:34:40 +00:00
|
|
|
BuildRequires: python3-pysol-cards
|
2018-11-05 17:43:03 +00:00
|
|
|
BuildRequires: python3-random2
|
|
|
|
BuildRequires: python3-rpm-macros
|
|
|
|
BuildRequires: python3dist(six)
|
2019-04-22 09:28:22 +00:00
|
|
|
BuildRequires: python3dist(pycotap)
|
2018-11-05 17:43:03 +00:00
|
|
|
Requires: %{libname}%{?_isa} = %{version}-%{release}
|
2019-04-22 09:28:22 +00:00
|
|
|
# BuildRequires: tap-devel
|
|
|
|
BuildRequires: the_silver_searcher
|
|
|
|
BuildRequires: valgrind
|
2018-11-05 17:43:03 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Freecell Solver package contains the fc-solve executable which is
|
|
|
|
a command-line program that can be used to solve games of Freecell and
|
|
|
|
similar card solitaire variants.
|
|
|
|
|
|
|
|
This package also contains command line executables to generate the initial
|
|
|
|
boards of several popular Freecell implementations.
|
|
|
|
|
|
|
|
%files
|
2019-09-03 12:47:47 +00:00
|
|
|
%{_bindir}/dbm-fc-solver
|
|
|
|
%{_bindir}/depth-dbm-fc-solver
|
2018-11-05 17:43:03 +00:00
|
|
|
%{_bindir}/fc-solve
|
|
|
|
%{_bindir}/find-freecell-deal-index.py
|
|
|
|
%{_bindir}/freecell-solver-fc-pro-range-solve
|
|
|
|
%{_bindir}/freecell-solver-multi-thread-solve
|
|
|
|
%{_bindir}/freecell-solver-range-parallel-solve
|
|
|
|
%{_bindir}/gen-multiple-pysol-layouts
|
|
|
|
%{_bindir}/make_pysol_freecell_board.py
|
|
|
|
%{_bindir}/pi-make-microsoft-freecell-board
|
|
|
|
%{_bindir}/transpose-freecell-board.py
|
|
|
|
%{_mandir}/*/*
|
|
|
|
%{_docdir}/*
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: The Freecell Solver dynamic libraries for solving Freecell games
|
|
|
|
Requires: %{name}-data = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
Contains the Freecell Solver libraries that are used by some programs to solve
|
|
|
|
games of Freecell and similar variants of card solitaire.
|
|
|
|
|
|
|
|
This package is mandatory for the Freecell Solver executable too.
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%doc COPYING.asciidoc
|
|
|
|
%{_libdir}/libfreecell-solver.so.%{major}{,.*}
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
|
|
|
%package -n %{name}-data
|
|
|
|
Summary: The Freecell Solver data files
|
|
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}-data
|
|
|
|
These are the presets for Freecell Solver
|
|
|
|
|
|
|
|
%files -n %{name}-data
|
|
|
|
%{_datadir}/freecell-solver/
|
|
|
|
%{python3_sitelib}/fc_solve_find_index_s2ints{.py,.pyc,.pyo}
|
|
|
|
%{python3_sitelib}/__pycache__/*
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
|
|
|
%package -n %{develname}
|
|
|
|
Summary: The Freecell Solver development tools for solving Freecell games
|
|
|
|
Requires: %{libname}%{?_isa} = %{version}-%{release}
|
|
|
|
Provides: %{name}-devel = %{version}-%{release}
|
|
|
|
Provides: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n %{develname}
|
|
|
|
Freecell Solver is a library for automatically solving boards of Freecell and
|
|
|
|
similar variants of card Solitaire. This package contains the header files and
|
|
|
|
static libraries necessary for developing programs using Freecell Solver.
|
|
|
|
|
|
|
|
You should install it if you are a game developer who would like to use
|
|
|
|
Freecell Solver from within your programs.
|
|
|
|
|
|
|
|
%files -n %{develname}
|
|
|
|
%{_includedir}/freecell-solver/*.h
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{_libdir}/libfreecell-solver.so
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
# The game limit flags are recommended by the PySolFC README.
|
2019-08-02 21:32:05 +00:00
|
|
|
%cmake -DLOCALE_INSTALL_DIR=%{_datadir}/locale -DLIB_INSTALL_DIR=%{_libdir} -DMAX_NUM_FREECELLS=8 -DMAX_NUM_STACKS=20 -DMAX_NUM_INITIAL_CARDS_IN_A_STACK=60 -DDISABLE_APPLYING_RPATH=TRUE
|
2018-11-05 17:43:03 +00:00
|
|
|
%make_build
|
|
|
|
|
2019-04-22 09:28:22 +00:00
|
|
|
%check
|
|
|
|
%__rm -f t/t/tidyall.t
|
|
|
|
perl ./run-tests.pl
|
|
|
|
|
2018-11-05 17:43:03 +00:00
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
bn="fc_solve_find_index_s2ints.py"
|
|
|
|
dest="%{buildroot}/%{python3_sitelib}"
|
|
|
|
src="%{buildroot}/%{_bindir}/$bn"
|
|
|
|
mkdir -p "$dest"
|
|
|
|
%__perl -0777 -p -e 's=\A#!/usr/bin/env python3\r?\n==' < "$src" > "$dest"/"$bn"
|
|
|
|
rm -f "$src"
|
|
|
|
chmod a-x "$dest/$bn"
|
|
|
|
|
|
|
|
# Delete static libraries
|
|
|
|
find %{buildroot} -name *.a -delete
|
|
|
|
|
|
|
|
%changelog
|
2020-01-28 18:55:22 +00:00
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.16.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-25 00:57:51 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.10.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-01-31 20:06:06 +00:00
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-11-05 18:03:29 +00:00
|
|
|
* Fri Oct 19 2018 Shlomi Fish <shlomif@shlomifish.org> - 5.0.0-1
|
2018-11-05 17:43:03 +00:00
|
|
|
- Adapted from the Mageia .spec.
|