#
# TODO:
-# - texinfo docs (BR: pandoc)
# - check if it's usable now
#
# Conditional build:
%bcond_without alsa # ALSA support in allegro_audio library
%bcond_with curl # cURL example
+%bcond_without doc # rebuild HTML and texinfo documentation
%bcond_without dumb # MOD support in allegro_acodec library
%bcond_without gtk # (GTK+ 2.x based) native dialog library
%bcond_without openal # OpenAL support in allegro_audio library
Summary(pl.UTF-8): Biblioteka do programowania gier
Name: allegro5
Version: 5.0.10
-Release: 0.1
+Release: 1
License: Giftware
Group: Libraries
Source0: http://downloads.sourceforge.net/alleg/allegro-%{version}.tar.gz
BuildRequires: pkgconfig
%{?with_pulseaudio:BuildRequires: pulseaudio-devel >= 0.9.15}
BuildRequires: rpmbuild(macros) >= 1.605
-#BuildRequires: texinfo
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXcursor-devel
BuildRequires: xorg-lib-libXext-devel
BuildRequires: python-modules
BuildRequires: rpm-pythonprov
%endif
+%if %{with doc}
+BuildRequires: ctags
+BuildRequires: pandoc >= 1.5
+BuildRequires: texinfo
+BuildRequires: texlive-latex
+%endif
Obsoletes: allegro5-tools
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%post ttf -p /sbin/ldconfig
%postun ttf -p /sbin/ldconfig
-#%%post devel -p /sbin/postshell
-#-/usr/sbin/fix-info-dir -c %{_infodir}
-
-#%%postun devel -p /sbin/postshell
-#-/usr/sbin/fix-info-dir -c %{_infodir}
-
%files
%defattr(644,root,root,755)
%doc CHANGES-5.0.txt README.txt docs/html/refman