black-hole-solver/black-hole-solver.spec

81 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

Name: black-hole-solver
Version: 1.10.1
Release: 1mamba
Summary: A solver, written in C, to solve Golf solitaire, the Solitaire variant called “Black Hole” and the one called “All in a Row”
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A solver, written in C, to solve Golf solitaire, 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 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
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%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}/black-hole-solve
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libblack_hole_solver.so.*
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/black-hole-solver
%{_includedir}/black-hole-solver/*.h
%{_libdir}/libblack_hole_solver.so
%{_libdir}/pkgconfig/libblack-hole-solver.pc
%{_mandir}/man6/black-hole-solve.6*
%doc README.md
%changelog
* Tue Dec 22 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.1-1mamba
- package created using the webbuild interface