forked from pool/black-hole-solver
Accepting request 823124 from home:Vogtinator:bhs
New package, used by KPat OBS-URL: https://build.opensuse.org/request/show/823124 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/black-hole-solver?expand=0&rev=1
This commit is contained in:
commit
97fabcbc37
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
black-hole-solver-1.8.0.tar.xz
Normal file
3
black-hole-solver-1.8.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f73c14272545baa4cba717b61646ec0c610b124e1721288b0a9bff680bb9982c
|
||||||
|
size 76264
|
4
black-hole-solver.changes
Normal file
4
black-hole-solver.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 27 17:46:00 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||||
|
|
||||||
|
- Initial commit
|
100
black-hole-solver.spec
Normal file
100
black-hole-solver.spec
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
#
|
||||||
|
# spec file for package black-hole-solver
|
||||||
|
#
|
||||||
|
# Copyright (c) 2020 SUSE LLC
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global sover 1
|
||||||
|
# Missing perl(Env::Path), should also skip some tests like build-process
|
||||||
|
%global run_tests 0
|
||||||
|
Name: black-hole-solver
|
||||||
|
Version: 1.8.0
|
||||||
|
Release: 0
|
||||||
|
Summary: The Black Hole Solver Executable
|
||||||
|
License: MIT
|
||||||
|
Group: Amusements/Games
|
||||||
|
URL: https://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/
|
||||||
|
Source: https://fc-solve.shlomifish.org/downloads/fc-solve/black-hole-solver-%{version}.tar.xz
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: cmake(Rinutils)
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: perl(Path::Tiny)
|
||||||
|
BuildRequires: xxhash-devel
|
||||||
|
%if %{run_tests}
|
||||||
|
# For testing
|
||||||
|
BuildRequires: perl(Env::Path)
|
||||||
|
BuildRequires: perl(Getopt::Long)
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
This is a solver, written in C, to solve the Solitaire variant called “Black
|
||||||
|
Hole” and the one called “All in a Row”. It provides a portable C library, and
|
||||||
|
a command line application that after being fed with a layout will emit the
|
||||||
|
cards to move.
|
||||||
|
|
||||||
|
%package -n libblack_hole_solver%{sover}
|
||||||
|
Summary: The Black Hole Solitaire Solver dynamic libraries
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libblack_hole_solver%{sover}
|
||||||
|
Contains the Black Hole Solitaire library.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Black Hole Solver development headers
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: libblack_hole_solver%{sover} = %{version}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Files needed for building applications against Black Hole Solver.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p3
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cmake -DFCS_AVOID_TCMALLOC=ON -DUSE_SYSTEM_XXHASH=ON -DBUILD_STATIC_LIBRARY=OFF
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
|
%if %{run_tests}
|
||||||
|
%check
|
||||||
|
export FCS_TEST_BUILD=0
|
||||||
|
export FCS_TEST_WITHOUT_VALGRIND=1
|
||||||
|
%ctest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cmake_install
|
||||||
|
# Fix the .pc file manually for now
|
||||||
|
sed -i'' 's#/lib$#/%{_lib}#g' %{buildroot}/%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig -n libblack_hole_solver1
|
||||||
|
%postun -p /sbin/ldconfig -n libblack_hole_solver1
|
||||||
|
|
||||||
|
%files -n libblack_hole_solver1
|
||||||
|
%{_libdir}/libblack_hole_solver.so.%{sover}
|
||||||
|
%{_libdir}/libblack_hole_solver.so.%{sover}.*
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license COPYING
|
||||||
|
%doc README.md NEWS.asciidoc
|
||||||
|
%{_bindir}/black-hole-solve
|
||||||
|
%{_mandir}/*/*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_libdir}/libblack_hole_solver.so
|
||||||
|
%{_includedir}/black-hole-solver/
|
||||||
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user