Update to 2.0.0

This commit is contained in:
Christopher Meng 2014-03-08 12:17:53 +08:00
parent dec4e5a66e
commit 97f7b3afea
3 changed files with 11 additions and 14 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/nsnake-1.7.tar.gz
/nsnake-2.0.0.tar.gz

View File

@ -1,12 +1,11 @@
Name: nsnake
Version: 1.7
Release: 3%{?dist}
Version: 2.0.0
Release: 1%{?dist}
Summary: Classic snake game on console
URL: http://www.alexdantas.net/projects/nsnake/
URL: http://nsnake.alexdantas.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: %{name}.6
#Source1: %{name}.6
License: GPLv3+
BuildRequires: dos2unix
BuildRequires: doxygen
BuildRequires: ncurses-devel
@ -16,28 +15,25 @@ It is playable at command-line and uses the nCurses C library for graphics.
%prep
%setup -q
find . -type f -exec dos2unix {} \;
cp -p %{S:1} doc/man/%{name}.6
gzip doc/man/%{name}.6
%build
make CFLAGS="%{optflags}" %{?_smp_mflags}
make doc
%install
install -p -D -m 755 bin/%{name} %{buildroot}%{_bindir}/%{name}
install -d %{buildroot}%{_mandir}/man6
install -p -D -m 644 doc/man/%{name}.6.gz %{buildroot}%{_mandir}/man6/%{name}.6.gz
install -pDm755 bin/%{name} %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_pkgdocdir}
cp -pr doc/html/ %{buildroot}%{_pkgdocdir}
cp -pr doc/logo.png %{buildroot}%{_pkgdocdir}
%files
%doc BUGS ChangeLog COPYING README TODO
%attr(-, -, -)%{_bindir}/%{name}
%{_mandir}/man6/%{name}.6*
%{_bindir}/%{name}
%changelog
* Sat Mar 08 2014 Christopher Meng <rpm@cicku.me> - 2.0.0-1
- Update to 2.0.0
* Tue Jul 30 2013 Christopher Meng <rpm@cicku.me> - 1.7-3
- Move to unversioned docdir.

View File

@ -1 +1 @@
87fbfc83f7a96607a420c95268b8f425 nsnake-1.7.tar.gz
afd01f6ae2774f8921135c8236524e38 nsnake-2.0.0.tar.gz