[brutalchess] 0.5.2-0.4.alpha

Rex Dieter rdieter at fedoraproject.org
Mon Dec 29 01:02:29 UTC 2014


commit b1c80797b26f6ffbf47ca5ab560baebfd479a2c8
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Sun Dec 28 19:02:30 2014 -0600

    0.5.2-0.4.alpha
    
    - drop -doc subpkg (too small, not worth it)
    - omit non-html doc generation
    - add deps for font pkgs used

 brutalchess.spec |   59 ++++++++++++++---------------------------------------
 1 files changed, 16 insertions(+), 43 deletions(-)
---
diff --git a/brutalchess.spec b/brutalchess.spec
index cdbfd37..4a06d2b 100644
--- a/brutalchess.spec
+++ b/brutalchess.spec
@@ -1,11 +1,9 @@
 %global pre     alpha
 %global title   BrutalChess
 
-#global buildtex  0
-
 Name:           brutalchess
 Version:        0.5.2
-Release:        0.3.%{pre}%{?dist}
+Release:        0.4.%{pre}%{?dist}
 Summary:        Chess game with impressive 3D graphics
 
 License:        GPLv2+
@@ -35,13 +33,13 @@ BuildRequires:  SDL-devel SDL_image-devel
 BuildRequires:  freetype-devel
 BuildRequires:  gnu-free-mono-fonts gnu-free-sans-fonts gnu-free-serif-fonts
 BuildRequires:  dos2unix doxygen
-%if 0%{?buildtex:1}
-BuildRequires:  tex2html
-BuildRequires:  %{_bindir}/latex texlive-texconfig
-BuildRequires:  %{_bindir}/dvips %{_bindir}/ps2pdf %{_bindir}/psnup
-%endif
 BuildRequires:  desktop-file-utils
 
+Requires: gnu-free-mono-fonts gnu-free-sans-fonts gnu-free-serif-fonts
+
+# -doc subpkg was < 100k, not worth splitting out (yet) -- rex
+Obsoletes: brutalchess-doc < 0.5.2-0.4
+Provides:  %{name}-doc = %{version}-%{release}
 
 %description
 %{title} features full 3D graphics, an advanced particle engine, 
@@ -49,16 +47,6 @@ and several different levels of intelligent AI, inspired by the once
 popular "Battle Chess" released by Interplay circa 1988.
 
 
-%package doc
-Summary:        Additional documentation files for the game %{title}
-BuildArch:      noarch
-Requires:       %{name} = %{version}-%{release}
-
-%description doc
-Extra documentation files for the game %{title}, like doxygen withfor
-html and latex formats.
-
-
 %prep
 %setup -q
 sed -i s,fonts,, Makefile.in
@@ -68,36 +56,24 @@ sed -i s,fonts,, Makefile.in
 %patch11
 %patch12 -p1
 dos2unix NEWS README
+# update Doxyfile
 doxygen -u
 
 
 %build
+
 ##FIXME libXt support is a feature
 %configure --with-x
 make %{?_smp_mflags}
-doxygen
 
-##distribute tex
-cd doc
-mv latex refman
-cd refman
-%if 0%{?buildtex:1}
-# FIXME is the html from tarball generated from tex?
-tex2html refman.tex
-# FIXME latex issues ahead!
-#make pdf
-#make ps_2on1 pdf_2on1
-#make all
-rm *.tex
-%endif
-make clean
+doxygen
 
 
 %install
 %make_install
 
 ##misplaced content
-rm -r %{buildroot}%{_datadir}/%{name}/doc
+rm -rv %{buildroot}%{_datadir}/%{name}/doc
 
 ##desktop
 desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE10}
@@ -116,13 +92,10 @@ ln -s ../../fonts/gnu-free/FreeMono.ttf VeraMono.ttf
 ln -s ../../fonts/gnu-free/FreeSans.ttf ZERO__.TTF
 popd
 
-##doxygen
-install -d %{buildroot}%{_pkgdocdir}
-cp -ap doc/html %{buildroot}%{_pkgdocdir}
-
 
 %files
 %doc AUTHORS COPYING ChangeLog NEWS README
+%doc doc/html
 # engine
 %{_bindir}/%{name}
 %{_libexecdir}/md3view
@@ -137,13 +110,13 @@ cp -ap doc/html %{buildroot}%{_pkgdocdir}
 # fonts
 #%{_datadir}/%{name}/fonts/
 
-%files doc
-%dir %{_pkgdocdir}
-%doc doc/html/
-%doc doc/refman/
-
 
 %changelog
+* Sun Dec 28 2014 Rex Dieter <rdieter at fedoraproject.org> - 0.5.2-0.4.alpha
+- drop -doc subpkg (too small, not worth it)
+- omit non-html doc generation
+- add deps for font pkgs used
+
 * Mon Dec 15 2014 Rex Dieter <rdieter at fedoraproject.org> 0.5.2-0.3.alpha
 - fix Release: tag
 


More information about the scm-commits mailing list