7a23b2b
%global icon_themes    hicolor HighContrast
7a23b2b
e740558
Name:           four-in-a-row
91bd58c
Version:        3.10.0
4e0ea8d
Release:        1%{?dist}
e740558
Summary:        GNOME Four-in-a-row game
e740558
e740558
License:        GPLv2+ and GFDL
e740558
URL:            http://projects.gnome.org/gnome-games/
91bd58c
Source0:        http://download.gnome.org/sources/four-in-a-row/3.10/four-in-a-row-%{version}.tar.xz
e740558
d62727f
BuildRequires:  desktop-file-utils
d62727f
BuildRequires:  intltool
d62727f
BuildRequires:  itstool
e740558
BuildRequires:  gtk3-devel
e740558
BuildRequires:  libcanberra-devel
d62727f
BuildRequires:  librsvg2-devel
e740558
Buildrequires:  zlib-devel
e740558
39e62f9
Obsoletes: gnome-games-extra < 1:3.7.92-1
e740558
Obsoletes: gnome-games-gnect < 1:3.7.92-1
e740558
e740558
%description
e740558
The objective of Four-in-a-row is to build a line of four of your marbles
e740558
while trying to stop your opponent (human or computer) building a line
e740558
of his or her own.
e740558
e740558
%prep
e740558
%setup -q
e740558
e740558
%build
e740558
%configure
e740558
make %{?_smp_mflags}
e740558
e740558
e740558
%install
e740558
make install DESTDIR=$RPM_BUILD_ROOT
e740558
e740558
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/gnect.desktop
e740558
e740558
%find_lang %{name} --all-name --with-gnome
e740558
e740558
e740558
%post
7a23b2b
for t in %{icon_themes} ; do
7a23b2b
  touch --no-create %{_datadir}/icons/$t &>/dev/null || :
7a23b2b
done
e740558
e740558
e740558
%postun
e740558
if [ $1 -eq 0 ]; then
7a23b2b
  for t in %{icon_themes} ; do
7a23b2b
    touch --no-create %{_datadir}/icons/$t &> /dev/null
7a23b2b
    gtk-update-icon-cache %{_datadir}/icons/$t &> /dev/null || :
7a23b2b
  done
e740558
  glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
e740558
fi
e740558
e740558
e740558
%posttrans
7a23b2b
for t in %{icon_themes} ; do
7a23b2b
  gtk-update-icon-cache %{_datadir}/icons/$t &>/dev/null || :
7a23b2b
done
e740558
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
e740558
e740558
e740558
%files -f %{name}.lang
e740558
%doc COPYING
e740558
%{_bindir}/four-in-a-row
61f8303
%{_datadir}/appdata/four-in-a-row.appdata.xml
d62727f
%{_datadir}/applications/gnect.desktop
e740558
%{_datadir}/four-in-a-row
d62727f
%{_datadir}/glib-2.0/schemas/org.gnome.four-in-a-row.gschema.xml
e740558
%{_datadir}/icons/HighContrast/*/apps/four-in-a-row.*
d62727f
%{_datadir}/icons/hicolor/*/apps/four-in-a-row.*
e740558
%{_mandir}/man6/four-in-a-row.6*
e740558
e740558
e740558
%changelog
91bd58c
* Mon Sep 23 2013 Yanko Kaneti <yaneti@declera.com> - 3.10.0-1
91bd58c
- Update to 3.10.0
91bd58c
61f8303
* Tue Sep 17 2013 Yanko Kaneti <yaneti@declera.com> - 3.9.92-1
61f8303
- Update to 3.9.92
61f8303
- Add appdata.
61f8303
4e0ea8d
* Tue Aug 20 2013 Yanko Kaneti <yaneti@declera.com> - 3.9.90-1
4e0ea8d
- Update to 3.9.90
4e0ea8d
b999d27
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.1-3
b999d27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b999d27
39e62f9
* Sat Jun 22 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.1-2
39e62f9
- Obsolete gnome-games-extra (for upgrades from f17)
39e62f9
af93d2f
* Mon Apr 15 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.1-1
af93d2f
- Update to 3.8.1
af93d2f
bad9b7d
* Wed Mar 27 2013 Yanko Kaneti <yaneti@declera.com> - 3.8.0-1
bad9b7d
- Update to 3.8.0
bad9b7d
- Drop po patch
bad9b7d
e740558
* Tue Mar 19 2013 Yanko Kaneti <yaneti@declera.com> - 3.7.92-1
e740558
- Update to 3.7.92
e740558
e740558
* Wed Mar  6 2013 Yanko Kaneti <yaneti@declera.com> - 3.7.90-1
e740558
- Initial packaging of standalone four-in-a-row