]> git.pld-linux.org Git - packages/allegro5.git/commitdiff
- handle docs rebuilding (BRs, doc bcond) auto/th/allegro5-5.0.10-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 22 Dec 2013 06:27:07 +0000 (07:27 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 22 Dec 2013 06:28:18 +0000 (07:28 +0100)
- only changes are converted to texinfo format - not packaging it
- release 1

allegro5.spec

index 189bec32c3932a95d076f18721ecd8229f12c4a8..fc86f815fbc46722484f4cd0ad075248aee35d7c 100644 (file)
@@ -1,11 +1,11 @@
 #
 # 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
@@ -25,7 +25,7 @@ Summary(it.UTF-8):    Una libreria per la programmazione di videogiochi
 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
@@ -51,7 +51,6 @@ BuildRequires:        libvorbis-devel
 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
@@ -65,6 +64,12 @@ BuildRequires:       python
 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)
 
@@ -378,12 +383,6 @@ rm -rf $RPM_BUILD_ROOT
 %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
This page took 0.090829 seconds and 4 git commands to generate.