Пакет 7colors: Specfile

%define rname sevencolors

Name: 7colors
Version: 0.10
Release: alt1
Epoch: 2

Summary: Little addicting game, take over the gaming area with your color

License: GPLv2
Group: Games/Boards
URL: http://digilander.libero.it/sbel/7colors.english.html

# Source-url: https://github.com/slitvinov/7colors-gtk/archive/master.zip
Source: %rname-%version.tar

Source4: %name.menu
Source5: %name-16.xpm
Source6: %name-32.xpm
Source7: %name-48.xpm
Source8: %name.desktop

BuildRequires: libgtk+2-devel

%description
7colors is a game for XWindow, for one or two players, the goal is to color the
50%% (plus one) of the rhombs on the screen, before the other player does. Each
turn the player choose a color, this color propagates from the own corner (the
lower left for player 1, the upper right for player 2) to all the neighbour
rhombs with the same color.

%prep
%setup -n %rname-%version

%build
%configure
%make_build

%install
install -D src/%name %buildroot%_bindir/%name
ln -s %rname %buildroot%_bindir/%rname

install -D -m644 %SOURCE6 %buildroot%_niconsdir/%name.xpm
install -D -m644 %SOURCE5 %buildroot%_miconsdir/%name.xpm
install -D -m644 %SOURCE7 %buildroot%_liconsdir/%name.xpm
install -D -m644 %SOURCE8 %buildroot%_desktopdir/%name.desktop

%files
%doc TODO src/README HISTORY
%_bindir/*
%_niconsdir/*.xpm
%_miconsdir/*
%_liconsdir/*
%_desktopdir/*

%changelog
* Sun Jul 01 2018 Vitaly Lipatov <lav@altlinux.ru> 2:0.10-alt1
- return to gtk only version ported to gtk2

* Sun Jun 03 2012 Sergei Epiphanov <serpiph@altlinux.ru> 0.80-alt13
- Fix build

* Wed May 23 2012 Sergei Epiphanov <serpiph@altlinux.ru> 0.80-alt12
- Fix with libgtk build

* Sat Oct 31 2009 Sergei Epiphanov <serpiph@altlinux.ru> 0.80-alt11
- Fix .desktop file repocop warning

* Sun Feb 08 2009 Sergei Epiphanov <serpiph@altlinux.ru> 0.80-alt10
- Fix .desktop file error

* Sat Jan 24 2009 Sergei Epiphanov <serpiph@altlinux.ru> 0.80-alt9
- Fix .desktop file install

* Mon Dec 15 2008 Sergei Epiphanov <serpiph@altlinux.ru> 0.80-alt8
- Change .menu to .desktop

* Fri Jul 25 2008 Sergei Epiphanov <serpiph@altlinux.ru> 0.80-alt7
- Add Packager tag

* Mon Jul 21 2008 Sergei Epiphanov <serpiph@altlinux.ru> 0.80-alt6
- Cleanup spec

* Wed Sep 27 2006 Sergei Epiphanov <serpiph@altlinux.ru> 0.80-alt5
- Cleanup spec

* Thu Jan 09 2003 Rider <rider@altlinux.ru> 0.80-alt4
- build requires fix

* Fri Oct 11 2002 Rider <rider@altlinux.ru> 0.80-alt3
- gcc 3.2 rebuild

* Tue Nov 08 2001 Rider <rider@altlinux.ru> 0.80-alt2
- cleanup spec
- bug #000130 fixed (menu)

* Wed Apr 10 2001 Rider <rider@altlinux.ru>
- 0.80

* Tue Dec 12 2000 AEN <aen@logic.ru>
- cleanup spec
- build for RE

* Wed Nov  8 2000 Pixel <pixel@mandrakesoft.com> 0.10-4mdk
- make rpmlint happy

* Tue Nov  7 2000 Pixel <pixel@mandrakesoft.com> 0.10-3mdk
- capitalize menu, longtitle added

* Mon Oct  2 2000 Pixel <pixel@mandrakesoft.com> 0.10-2mdk
- add nice icons from author (Stefano Bellotti)

* Wed Sep 27 2000 Pixel <pixel@mandrakesoft.com> 0.10-1mdk
- initial spec

# end of file