Пакет clines: Specfile

# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1

Name: clines
Version: 1.0.4
Release: alt4

Summary: Curses-based Lines game
Summary(ru_RU.CP1251): \xc8\xe3\xf0\xe0 \xcb\xe8\xed\xe8\xe8, \xed\xe0\xef\xe8\xf1\xe0\xed\xed\xe0\xff \xed\xe0 \xe1\xe8\xe1\xeb\xe8\xee\xf2\xe5\xea\xe5 curses

License: GPL-2
Group: Games/Other
Url: http://manticore.2y.net/prj/clines-g.html

Source0: http://manticore.2y.net/cgi-bin/dlwct.sh?f=clines/%name-%version.tar.bz2

Patch: %name-1.0.4-alt-makefile-strange_command_fix.patch

# Automatically added by buildreq on Sat Aug 12 2006
BuildRequires: libgpm-devel libncurses-devel

%description
Console Lines is a "Lines" game for the Unix terminal. After install
this program read README file about rules and scores.

%description -l ru_RU.CP1251
\xca\xee\xed\xf1\xee\xeb\xfc\xed\xfb\xe9 \xe2\xe0\xf0\xe8\xe0\xed\xf2 \xe8\xe3\xf0\xfb \xcb\xe8\xed\xe8\xe8 \xe4\xeb\xff Unix \xf2\xe5\xf0\xec\xe8\xed\xe0\xeb\xee\xe2. \xcf\xee\xf1\xeb\xe5 \xf3\xf1\xf2\xe0\xed\xee\xe2\xea\xe8
\xfd\xf2\xee\xe9 \xef\xf0\xee\xe3\xf0\xe0\xec\xec\xfb \xe2\xfb \xec\xee\xe6\xe5\xf2\xe5 \xee\xe7\xed\xe0\xea\xee\xec\xe8\xf2\xfc\xf1\xff \xf1 \xef\xf0\xe0\xe2\xe8\xeb\xe0\xec\xe8 \xe8\xe3\xf0\xfb \xe8 \xed\xe0\xf7\xe8\xf1\xeb\xe5\xed\xe8\xe5\xec
\xee\xf7\xea\xee\xe2 \xe2 \xf4\xe0\xe9\xeb\xe5 README.

%prep
%setup
%patch

%build
%autoreconf
%configure
%make_build 

%install
%make_install DESTDIR=%buildroot install

mkdir -p %buildroot%_desktopdir
cat > %buildroot%_desktopdir/%name.desktop <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=CLines
Comment=Curses-based Lines game
Icon=terminal
Exec=%name
Terminal=true
Categories=Game;BoardGame;
EOF

%files
%doc AUTHORS ChangeLog README TODO
%_bindir/%name
%_man6dir/%name.6.*
%_desktopdir/%name.desktop

%changelog
* Thu Jun 07 2012 Fr. Br. George <george@altlinux.ru> 1.0.4-alt4
- Fix gcc4.6 build

* Sun Apr 17 2011 Igor Vlasenko <viy@altlinux.ru> 1.0.4-alt3.qa1
- NMU: converted menu to desktop file

* Mon Nov 17 2008 Slava Semushin <php-coder@altlinux.ru> 1.0.4-alt3
- Replaced %%__autoreconf macros to %%autoreconf (noted by repocop)
- Removed obsolete %%update_menus/%%clean_menus calls (noted by repocop)

* Mon Dec 24 2007 Slava Semushin <php-coder@altlinux.ru> 1.0.4-alt2
- Fixed build with automake 1.10
- Imported into git and built with gear

* Sun Nov 26 2006 Slava Semushin <php-coder@altlinux.ru> 1.0.4-alt1
- 1.0.4
- Using -U_FORTIFY_SOURCE flag for compiler by default
- Added patch which removes strange commands from Makefile.am
- Spec cleanup: s/%%setup -q/%%setup/

* Mon Jul 31 2006 Slava Semushin <php-coder@altlinux.ru> 1.0.3-alt1
- Initial build for ALTLinux Sisyphus
- Picked up from OpenBSD
- Using -Werror flag for compiler by default