LFS-RPM/SPECS/msnake.spec

54 lines
1.0 KiB
RPMSpec
Raw Normal View History

2023-04-28 19:37:52 +08:00
%global gitdate 20200201
Name: msnake
Version: 0.0.%{gitdate}
2023-05-21 22:49:17 +08:00
Release: %{?rel}0.rc2%{?dist}
2023-04-28 19:37:52 +08:00
Summary: A curses based snakes game
Group: Console/Games
License: MIT
URL: https://github.com/mogria/msnake
Source0: %{name}-%{gitdate}.tar.bz2
2023-05-21 22:49:17 +08:00
Source1: get-msnake-src.sh
2023-04-28 19:37:52 +08:00
BuildRequires: ncurses-devel
BuildRequires: %{_bindir}/cmake
#Requires:
%description
A simple snake game written in C using the ncurses library.
%prep
%setup -n %{name}-%{gitdate}
2023-05-21 22:49:17 +08:00
cp %{SOURCE1} .
2023-04-28 19:37:52 +08:00
%build
mkdir build
cd build
%{_bindir}/cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
..
make %{?_smp_mflags}
%install
cd build
make install DESTDIR=%{buildroot}
%files
%defattr(-,root,root,-)
%attr(0755,root,root) %{_bindir}/msnake
%license LICENSE
2023-05-21 22:49:17 +08:00
%doc LICENSE README.md get-msnake-src.sh
2023-04-28 19:37:52 +08:00
%changelog
2023-05-21 22:49:17 +08:00
* Sun May 21 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.0.20200201-0.rc2
- Shell script to fetch source from git and tarball it.
2023-04-28 19:37:52 +08:00
* Fri Apr 28 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.0.20200201-0.rc1
* Initial spec file