From 642fd01cac7659e49dc61f91655d27b8916f7d9a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 22:14:05 +0100 Subject: [PATCH] package created using the webbuild interface [release 5.22.1-1mamba;Thu Apr 30 2020] --- README.md | 2 + fc-solve.spec | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 fc-solve.spec diff --git a/README.md b/README.md index dd8629d..dd945aa 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # fc-solve +Freecell Solver is a C library for automatically solving Freecell and some other variants of card Solitaire. + diff --git a/fc-solve.spec b/fc-solve.spec new file mode 100644 index 0000000..a8c0500 --- /dev/null +++ b/fc-solve.spec @@ -0,0 +1,114 @@ +Name: fc-solve +Version: 5.22.1 +Release: 1mamba +Summary: A C library for automatically solving Freecell and some other variants of card Solitaire +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://fc-solve.shlomifish.org +## GITSOURCE https://github.com/shlomif/fc-solve.git freecell-solver-5.22.1 +Source: https://github.com/shlomif/fc-solve.git/freecell-solver-%{version}/fc-solve-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libgperftools-devel +## AUTOBUILDREQ-END +BuildRequires: python-random2-py3 +BuildRequires: python-pysol_cards-py3 +BuildRequires: python-freecell_solver-py3 +BuildRequires: perl-Template-Toolkit +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Freecell Solver is a C library for automatically solving Freecell and some other variants of card Solitaire. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +cd fc-solve/source/ +%cmake -d build \ + -DFCS_WITH_TEST_SUITE=OFF + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +cd fc-solve/source/ +touch fc-solve.6 +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/dbm-fc-solver +%{_bindir}/depth-dbm-fc-solver +%{_bindir}/fc-solve +%{_bindir}/fc_solve_find_index_s2ints.py +%{_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}/man6/dbm-fc-solver.6* +%{_mandir}/man6/fc-solve-board_gen.6* +%{_mandir}/man6/fc-solve.6* +%{_mandir}/man6/freecell-solver-range-parallel-solve.6* +%{_mandir}/man6/gen-multiple-pysol-layouts.6* +%{_mandir}/man6/make_pysol_freecell_board.py.6* +%{_mandir}/man6/pi-make-microsoft-freecell-board.6* +%{_mandir}/man6/transpose-freecell-board.py.6* + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libfreecell-solver.so.* +%doc LICENSE + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/freecell-solver +%{_includedir}/freecell-solver/*.h +%{_libdir}/libfreecell-solver.a +%{_libdir}/libfreecell-solver.so +%{_libdir}/pkgconfig/libfreecell-solver.pc +%dir %{_datadir}/doc/freecell-solver +%{_datadir}/doc/freecell-solver/* +%dir %{_datadir}/freecell-solver +%{_datadir}/freecell-solver/presetrc +%dir %{_datadir}/freecell-solver/presets +%{_datadir}/freecell-solver/presets/*.sh +%doc README.md + +%changelog +* Thu Apr 30 2020 Silvan Calarco 5.22.1-1mamba +- package created using the webbuild interface