1.1 --- a/doxygen/doxygen.spec Sat Oct 03 16:12:58 2009 +0200 1.2 +++ b/doxygen/doxygen.spec Sat Oct 03 16:13:31 2009 +0200 1.3 @@ -32,11 +32,13 @@ 1.4 Group: Development 1.5 License: GPL 1.6 Version: 1.6.1 1.7 -Release: 20090825 1.8 +Release: 20091001 1.9 + 1.10 +# build options 1.11 +%option with_qt no 1.12 1.13 # list of sources 1.14 Source0: ftp://ftp.stack.nl/pub/users/dimitri/doxygen-%{version}.src.tar.gz 1.15 -Patch0: doxygen.patch 1.16 1.17 # build information 1.18 Prefix: %{l_prefix} 1.19 @@ -45,6 +47,10 @@ 1.20 PreReq: OpenPKG, openpkg >= 20040130 1.21 BuildPreReq: libiconv 1.22 PreReq: libiconv 1.23 +%if "%{with_qt}" == "yes" 1.24 +BuildPreReq: qt >= 4 1.25 +PreReq: qt >= 4 1.26 +%endif 1.27 AutoReq: no 1.28 AutoReqProv: no 1.29 1.30 @@ -60,7 +66,13 @@ 1.31 1.32 %prep 1.33 %setup -q 1.34 - %patch -p0 1.35 + %{l_shtool} subst \ 1.36 + -e 's;\(\$(INSTALL)\);$(DESTDIR)/\1;g' \ 1.37 + addon/doxywizard/Makefile.in 1.38 + %{l_shtool} subst \ 1.39 + -e 's;\($(DESTDIR)\)/;\1;g' \ 1.40 + addon/doxywizard/Makefile.in \ 1.41 + Makefile.in 1.42 1.43 %build 1.44 opt="" 1.45 @@ -73,6 +85,9 @@ 1.46 CXX="%{l_cxx}" \ 1.47 CFLAGS="%{l_cflags -O}" \ 1.48 CXXFLAGS="%{l_cxxflags -O}" \ 1.49 +%if "%{with_qt}" == "yes" 1.50 + QTDIR="%{l_prefix}" \ 1.51 +%endif 1.52 %{l_bash} ./configure \ 1.53 --prefix %{l_prefix} \ 1.54 --perl %{l_prefix}/bin/perl \ 1.55 @@ -80,6 +95,9 @@ 1.56 --install %{l_prefix}/bin/install \ 1.57 --release \ 1.58 --english-only \ 1.59 +%if "%{with_qt}" == "yes" 1.60 + --with-doxywizard \ 1.61 +%endif 1.62 $opt 1.63 ( cd src 1.64 %{l_make} %{l_mflags} Makefile.libdoxycfg Makefile.doxygen 1.65 @@ -95,8 +113,10 @@ 1.66 %install 1.67 rm -rf $RPM_BUILD_ROOT 1.68 %{l_make} %{l_mflags} install \ 1.69 - INSTALL=$RPM_BUILD_ROOT%{l_prefix} \ 1.70 - INSTTOOL="%{l_shtool} install" || true 1.71 + DESTDIR=$RPM_BUILD_ROOT \ 1.72 + INSTALL=%{l_prefix} \ 1.73 + MAN1DIR=man/man1 \ 1.74 + INSTTOOL="%{l_shtool} install -c" || true 1.75 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 1.76 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 1.77