]> git.pld-linux.org Git - packages/battleships.git/commitdiff
- up to 2.8
authorlisu <lisu@pld-linux.org>
Wed, 20 Oct 2010 07:19:13 +0000 (07:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- pass CFLAGS and LDFLAGS
- more verbose files
- adapter

Changed files:
    battleships.spec -> 1.8

battleships.spec

index 9d6caadec39fbec961f1b849865d41c6c5d83d27..dcef76d275c3dd923449a6fc7a34178eea011e0d 100644 (file)
@@ -1,13 +1,13 @@
 Summary:       Battleships against the computer (character-cell graphics)
 Summary(pl.UTF-8):     Gra w statki przeciwko komputerowi
 Name:          battleships
-Version:       2.7
+Version:       2.8
 Release:       1
 License:       GPL
 Group:         Applications/Games
-Vendor:                Eric S. Raymond <esr@snark.thyrsus.com>
 Source0:       http://www.catb.org/~esr/bs/bs-%{version}.tar.gz
-# Source0-md5: 5786c6006e503d100e65139dadb5d5a7
+# Source0-md5: 3add0396d1e7f98c20267634f41a87b1
+Patch0:                %{name}-ldflags.patch
 URL:           http://www.catb.org/~esr/bs/
 BuildRequires: ncurses-devel
 BuildRequires: xmlto
@@ -27,11 +27,14 @@ Jeśli używasz xterm, mysz nie będzie działać.
 
 %prep
 %setup -q -n bs-%{version}
+%patch0 -p1
 
 %build
 %{__make} \
+       TERMLIB="-lncurses -ltinfo" \
        CC="%{__cc}" \
-       CFLAGS="-I /usr/include/ncurses"
+       CFLAGS="%{rpmcflags} -I /usr/include/ncurses" \
+       LDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -46,5 +49,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/bs
 %{_mandir}/man6/bs.6*
This page took 0.111124 seconds and 4 git commands to generate.