Matthias Clasen d314e5
Matthias Clasen d314e5
Summary: A collection of card games
Matthias Clasen d314e5
Name:    aisleriot
Matthias Clasen f9a41a
Version: 3.2.1
Dennis Gilmore f3eaa9
Release: 2%{?dist}
Matthias Clasen 598a3b
License: GPLv3+ and LGPLv3+ and GFDL
Matthias Clasen d314e5
Group:   Amusements/Games
Matthias Clasen d314e5
#VCS: git:git://git.gnome.org/aisleriot
Matthias Clasen f9a41a
Source:  http://download.gnome.org/sources/aisleriot/3.2/aisleriot-%{version}.tar.xz
Matthias Clasen d314e5
URL:     http://live.gnome.org/Aisleriot
Matthias Clasen d314e5
Matthias Clasen d314e5
BuildRequires: glib2-devel
Matthias Clasen d314e5
BuildRequires: gtk3-devel
Matthias Clasen d314e5
BuildRequires: GConf2-devel
Matthias Clasen d314e5
BuildRequires: librsvg2-devel
Matthias Clasen d314e5
BuildRequires: libcanberra-devel
Matthias Clasen d314e5
BuildRequires: libICE-devel
Matthias Clasen d314e5
BuildRequires: libSM-devel
Matthias Clasen d314e5
BuildRequires: gstreamer-devel
Matthias Clasen d314e5
BuildRequires: intltool
Matthias Clasen 598a3b
BuildRequires: itstool
Matthias Clasen d314e5
BuildRequires: guile-devel
Matthias Clasen d314e5
BuildRequires: gnome-doc-utils
Matthias Clasen d314e5
BuildRequires: yelp-tools
Matthias Clasen d314e5
BuildRequires: scrollkeeper
Matthias Clasen d314e5
BuildRequires: docbook-dtds
Matthias Clasen d314e5
BuildRequires: desktop-file-utils
Matthias Clasen d314e5
Matthias Clasen d314e5
Requires(pre): GConf2
Matthias Clasen d314e5
Requires(post): GConf2
Matthias Clasen d314e5
Requires(preun): GConf2
Matthias Clasen d314e5
Matthias Clasen d314e5
%description
Matthias Clasen f9a41a
Aisleriot is a collection of over 80 card games programmed in scheme.
Matthias Clasen d314e5
Matthias Clasen d314e5
%prep
Matthias Clasen d314e5
%setup -q
Matthias Clasen d314e5
Matthias Clasen d314e5
%build
Matthias Clasen d314e5
%configure
Matthias Clasen d314e5
make %{_smp_mflags}
Matthias Clasen d314e5
Matthias Clasen d314e5
%install
Matthias Clasen d314e5
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
Matthias Clasen d314e5
make install DESTDIR=$RPM_BUILD_ROOT
Matthias Clasen d314e5
Matthias Clasen 43f5e9
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/freecell.desktop
Matthias Clasen 43f5e9
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/sol.desktop
Matthias Clasen d314e5
Matthias Clasen 598a3b
%find_lang %{name}
Matthias Clasen 598a3b
Matthias Clasen 598a3b
# https://bugzilla.redhat.com/show_bug.cgi?id=736523
Matthias Clasen 598a3b
echo "%%dir %%{_datadir}/help/C" >> aisleriot.lang
Matthias Clasen 598a3b
echo "%%{_datadir}/help/C/%%{name}" >> aisleriot.lang
Matthias Clasen f9a41a
for l in ca de el en_GB es eu fr gl oc ru sl sr sr@latin sv zh_CN; do
Matthias Clasen 598a3b
  echo "%%dir %%{_datadir}/help/$l"
Matthias Clasen 598a3b
  echo "%%lang($l) %%{_datadir}/help/$l/%%{name}"
Matthias Clasen 598a3b
done >> aisleriot.lang
Matthias Clasen d314e5
Matthias Clasen d314e5
%pre
Matthias Clasen d314e5
%gconf_schema_prepare aisleriot
Matthias Clasen d314e5
Matthias Clasen d314e5
%preun
Matthias Clasen d314e5
%gconf_schema_remove aisleriot
Matthias Clasen d314e5
Matthias Clasen d314e5
%post
Matthias Clasen d314e5
%gconf_schema_upgrade aisleriot
Matthias Clasen d314e5
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
Matthias Clasen d314e5
Matthias Clasen d314e5
%postun
Matthias Clasen d314e5
if [ $1 -eq 0 ]; then
Matthias Clasen d314e5
  touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
Matthias Clasen d314e5
  gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
Matthias Clasen d314e5
  glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
Matthias Clasen d314e5
fi
Matthias Clasen d314e5
Matthias Clasen d314e5
%posttrans
Matthias Clasen d314e5
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
Matthias Clasen d314e5
glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || :
Matthias Clasen d314e5
Matthias Clasen d314e5
%files -f %{name}.lang
Matthias Clasen 598a3b
%doc AUTHORS COPYING.GPL3 COPYING.LGPL3 COPYING.GFDL
Matthias Clasen d314e5
%{_bindir}/*
Matthias Clasen d314e5
%{_libdir}/aisleriot
Matthias Clasen d314e5
%{_datadir}/aisleriot
Matthias Clasen d314e5
%{_datadir}/applications/*.desktop
Matthias Clasen d314e5
%{_datadir}/icons/hicolor/*/apps/*.png
Matthias Clasen d314e5
%{_sysconfdir}/gconf/schemas/aisleriot.schemas
Matthias Clasen d314e5
%{_datadir}/glib-2.0/schemas/org.gnome.Patience.WindowState.gschema.xml
Matthias Clasen d314e5
%{_mandir}/man6/sol.6.gz
Matthias Clasen d314e5
Matthias Clasen d314e5
%changelog
Dennis Gilmore f3eaa9
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-2
Dennis Gilmore f3eaa9
- Rebuilt for glibc bug#747377
Dennis Gilmore f3eaa9
Matthias Clasen f9a41a
* Tue Oct 18 2011 Matthias Clasen <mclasen@redhat.com> - 3.2.1-1
Matthias Clasen f9a41a
- Update to 3.2.1
Matthias Clasen f9a41a
Matthias Clasen f9a41a
* Wed Sep 28 2011 Matthias Clasen <mclasen@redhat.com> - 3.2.0-1
Ray Strode 3df99c
- Update to 3.2.0
Ray Strode 3df99c
Matthias Clasen 598a3b
* Tue Sep 20 2011 Matthias Clasen <mclasen@redhat.com> - 3.1.92-1
Matthias Clasen 598a3b
- Update to 3.1.92
Matthias Clasen 598a3b
Matthias Clasen d314e5
* Thu Sep  8 2011 Matthias Clasen <mclasen@redhat.com> - 3.1.1-2
Matthias Clasen d314e5
- Package review feedback
Matthias Clasen d314e5
Matthias Clasen d314e5
* Wed Sep  7 2011 Matthias Clasen <mclasen@redhat.com> - 3.1.1-1
Matthias Clasen d314e5
- Initial packaging