|
|
3645672 |
Name: laby
|
|
|
3645672 |
Version: 0.6.4
|
|
|
3645672 |
Release: 4%{?dist}
|
|
|
3645672 |
Summary: Learn programming, playing with ants and spider webs
|
|
|
3645672 |
|
|
|
3645672 |
License: GPLv3+
|
|
|
3645672 |
URL: https://sgimenez.github.io/laby/
|
|
|
3645672 |
Source0: https://github.com/sgimenez/%{name}/archive/%{name}-%{version}.tar.gz
|
|
|
3645672 |
Patch1: 0001-Adapts-to-smaller-screens.patch
|
|
|
3645672 |
Patch2: 0002-Packaging-Metadata.patch
|
|
|
3645672 |
Patch3: 0003-Use-proper-Makefile-syntax.patch
|
|
|
3645672 |
Patch4: 0004-src-gfx.ml-Fix-height-of-help-sourceview.patch
|
|
|
3645672 |
Patch5: 0005-Tweaking-the-vertical-split-to-avoid-scroll-bars.patch
|
|
|
3645672 |
Patch7: 0007-Desktop-file-translations-provided-by-glixx.patch
|
|
|
3645672 |
Patch8: 0008-Translation-for-desktop-entry-GenericName.patch
|
|
|
3645672 |
Patch9: 0009-Fix-the-FSF-address.patch
|
|
|
3645672 |
|
|
|
3645672 |
# All above patches have been already merged in upstream master
|
|
|
3645672 |
# For genertating them:
|
|
|
3645672 |
# git clone https://github.com/sgimenez/laby.git
|
|
|
3645672 |
# git format-patch e6d783468b6d1273e6c7b40015367d81467c0205
|
|
|
3645672 |
# note patch 0006 has been skipped since it cause build failure on CentOS
|
|
|
3645672 |
|
|
|
3645672 |
BuildRequires: ocaml >= 3.10.0
|
|
|
3645672 |
BuildRequires: ocaml-findlib-devel
|
|
|
3645672 |
BuildRequires: ocaml-lablgtk-devel >= 2.14.0
|
|
|
3645672 |
BuildRequires: ocaml-ocamldoc
|
|
|
3645672 |
BuildRequires: chrpath
|
|
|
3645672 |
BuildRequires: gtksourceview2-devel >= 2.10
|
|
|
3645672 |
BuildRequires: libappstream-glib
|
|
|
3645672 |
BuildRequires: desktop-file-utils
|
|
|
3645672 |
|
|
|
3645672 |
%if 0%{?fedora} >= 26
|
|
|
3645672 |
BuildRequires: ocaml-ocamlbuild
|
|
|
3645672 |
%endif
|
|
|
3645672 |
|
|
|
3645672 |
# Note: rpmlint suggest to add
|
|
|
3645672 |
# BuildRequires: python2-devel
|
|
|
3645672 |
# or
|
|
|
3645672 |
# BuildRequires: python3-devel
|
|
|
3645672 |
# but they're not used during the build so they've not been added.
|
|
|
3645672 |
|
|
|
3645672 |
%description
|
|
|
3645672 |
Laby is a small program to learn how to program with ants and spider webs.
|
|
|
3645672 |
You have to move an ant out of a labyrinth, avoid spider webs, move rocks, etc.
|
|
|
3645672 |
|
|
|
3645672 |
|
|
|
3645672 |
%prep
|
|
|
3645672 |
%setup -q -n %{name}-%{name}-%{version}
|
|
|
3645672 |
%autosetup -n %{name}-%{name}-%{version} -p1
|
|
|
3645672 |
|
|
|
3645672 |
%build
|
|
|
3645672 |
make %{?_smp_mflags} native
|
|
|
3645672 |
|
|
|
3645672 |
%install
|
|
|
3645672 |
export DESTDIR=%{buildroot}
|
|
|
3645672 |
make install
|
|
|
3645672 |
|
|
|
3645672 |
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
|
|
|
3645672 |
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
|
|
3645672 |
|
|
|
3645672 |
%post
|
|
|
3645672 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
3645672 |
|
|
|
3645672 |
%postun
|
|
|
3645672 |
if [ $1 -eq 0 ] ; then
|
|
|
3645672 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
3645672 |
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
3645672 |
fi
|
|
|
3645672 |
|
|
|
3645672 |
%posttrans
|
|
|
3645672 |
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
3645672 |
|
|
|
3645672 |
|
|
|
3645672 |
%files
|
|
|
3645672 |
%license COPYRIGHT
|
|
|
3645672 |
%license gpl-3.0.txt
|
|
|
3645672 |
%doc AUTHORS
|
|
|
3645672 |
%{_bindir}/%{name}
|
|
|
3645672 |
%{_datadir}/%{name}/
|
|
|
3645672 |
|
|
|
3645672 |
# Note above contains also:
|
|
|
3645672 |
# /usr/share/laby/mods/c/lib/robot.h
|
|
|
3645672 |
# /usr/share/laby/mods/cpp/lib/robot.h
|
|
|
3645672 |
# Which rpmlint suggest to have in -devel subpackage.
|
|
|
3645672 |
# This is intentional. The game teach you also how to program in C and in order
|
|
|
3645672 |
# to move the ant, you'll need the robot.h header file. It isn't the use case
|
|
|
3645672 |
# addressed by -devel subpackages.
|
|
|
3645672 |
|
|
|
3645672 |
%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
3645672 |
%{_datadir}/applications/%{name}.desktop
|
|
|
3645672 |
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
|
|
3645672 |
|
|
|
3645672 |
|
|
|
3645672 |
%changelog
|
|
|
3645672 |
* Sun May 21 2017 Sandro Bonazzola <sandro.bonazzola@gmail.com> - 0.6.4-4
|
|
|
3645672 |
- Addressed comment #10 from rhbz#1450679
|
|
|
3645672 |
|
|
|
3645672 |
* Fri May 19 2017 Sandro Bonazzola <sandro.bonazzola@gmail.com> - 0.6.4-3
|
|
|
3645672 |
- Addressed comments #3-7 from rhbz#1450679
|
|
|
3645672 |
|
|
|
3645672 |
* Tue May 16 2017 Sandro Bonazzola <sandro.bonazzola@gmail.com> - 0.6.4-2
|
|
|
3645672 |
- Add Fedora >= 26 support
|
|
|
3645672 |
|
|
|
3645672 |
* Sun May 14 2017 Sandro Bonazzola <sandro.bonazzola@gmail.com> - 0.6.4-1
|
|
|
3645672 |
- Initial packaging
|