]> git.pld-linux.org Git - packages/babychess.git/blobdiff - babychess.spec
- tabs in preamble
[packages/babychess.git] / babychess.spec
index d22a579f9e512a7c78fc3cf8d9f10868f0b1efb8..788828a1a171006ae3ba9a63f92d7988fba3b0b4 100644 (file)
@@ -1,9 +1,8 @@
-# TODO: optflags
 Summary:       BabyChess - a chess program
-Summary(pl):   BabyChess - program do gry w szachy
+Summary(pl.UTF-8):     BabyChess - program do gry w szachy
 Name:          babychess
 Version:       14.1
-Release:       1
+Release:       4
 Epoch:         0
 License:       GPL
 Group:         X11/Applications/Games
@@ -14,14 +13,17 @@ Patch0:             %{name}-buildfix.patch
 Patch1:                %{name}-destdir.patch
 Patch2:                %{name}-desktop.patch
 BuildRequires: gtk+-devel
+BuildRequires: libpng-devel
+BuildRequires: libstdc++-devel
+Obsoletes:     gnome-chess
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 BabyChess is a chess program. You can edit chess games, play chess on
 the internet, and play locally against engines.
 
-%description -l pl
-BabyChess jest programem do gry w szachy. Mo¿liwa jest edycja stanu
+%description -l pl.UTF-8
+BabyChess jest programem do gry w szachy. Możliwa jest edycja stanu
 gry, gra poprzez internet, oraz gra z komputerem.
 
 %prep
@@ -31,7 +33,10 @@ gry, gra poprzez internet, oraz gra z komputerem.
 %patch2 -p1
 
 %build
-%{__make}
+%{__make} \
+       gcc="%{__cxx}" \
+       CXXFLAGS="%{rpmcflags} -D_GNU_SOURCE -DNDEBUG -fno-implicit-inline-templates -fno-rtti -fno-inline-functions `gtk-config --cflags`" \
+       LDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -56,5 +61,5 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS README LICENSING
 %attr(755,root,root) %{_bindir}/*
-%{_desktopdir}/*
+%{_desktopdir}/*.desktop
 %{_datadir}/baby
This page took 0.048658 seconds and 4 git commands to generate.