[930] | 1 | # set this to 1 to enable
|
---|
[1695] | 2 | %global with_docs 1
|
---|
[1650] | 3 | %global with_latex 0
|
---|
| 4 | %global xapian_core_support OFF
|
---|
[930] | 5 |
|
---|
| 6 |
|
---|
| 7 | Summary: A documentation system for C/C++
|
---|
| 8 | Name: doxygen
|
---|
[1650] | 9 | Version: 1.8.15
|
---|
| 10 | Release: 1%{?dist}
|
---|
[930] | 11 |
|
---|
| 12 | # No version is specified.
|
---|
| 13 | License: GPL+
|
---|
[1650] | 14 | Url: http://www.doxygen.nl
|
---|
[930] | 15 | Vendor: bww bitwise works GmbH
|
---|
[1695] | 16 | %scm_source svn http://svn.netlabs.org/repos/ports/doxygen/trunk 1956
|
---|
[1650] | 17 | BuildRequires: %{_bindir}/python2
|
---|
[930] | 18 |
|
---|
[1650] | 19 | BuildRequires: gcc perl
|
---|
[930] | 20 | %if %{with_docs}
|
---|
[1695] | 21 | #BuildRequires: tex(dvips)
|
---|
| 22 | #BuildRequires: tex(latex)
|
---|
| 23 | #BuildRequires: tex(multirow.sty)
|
---|
| 24 | #BuildRequires: tex(sectsty.sty)
|
---|
| 25 | #BuildRequires: tex(tocloft.sty)
|
---|
| 26 | #BuildRequires: tex(xtab.sty)
|
---|
| 27 | #BuildRequires: tex(import.sty)
|
---|
| 28 | #BuildRequires: tex(tabu.sty)
|
---|
| 29 | #BuildRequires: tex(appendix.sty)
|
---|
| 30 | #BuildRequires: /@unixroot/usr/bin/epstopdf
|
---|
| 31 | #BuildRequires: texlive-epstopdf
|
---|
| 32 | #BuildRequires: graphviz
|
---|
[930] | 33 | %endif
|
---|
| 34 | BuildRequires: ghostscript
|
---|
| 35 | BuildRequires: gettext
|
---|
| 36 | BuildRequires: flex
|
---|
| 37 | BuildRequires: bison
|
---|
| 38 | BuildRequires: cmake
|
---|
[1650] | 39 | %if %{xapian_core_support} == "ON"
|
---|
[930] | 40 | BuildRequires: xapian-core-devel
|
---|
[1650] | 41 | BuildRequires: zlib-devel
|
---|
[930] | 42 | %endif
|
---|
| 43 | Requires: perl
|
---|
[1650] | 44 | #Requires: graphviz
|
---|
[930] | 45 |
|
---|
| 46 | %description
|
---|
| 47 | Doxygen can generate an online class browser (in HTML) and/or a
|
---|
| 48 | reference manual (in LaTeX) from a set of documented source files. The
|
---|
| 49 | documentation is extracted directly from the sources. Doxygen can
|
---|
| 50 | also be configured to extract the code structure from undocumented
|
---|
| 51 | source files.
|
---|
| 52 |
|
---|
| 53 | %package doxywizard
|
---|
| 54 | Summary: A GUI for creating and editing configuration files
|
---|
[932] | 55 | Requires: %{name} = %{version}-%{release}
|
---|
[930] | 56 | BuildRequires: libqt4-devel
|
---|
[1650] | 57 |
|
---|
[930] | 58 | %description doxywizard
|
---|
| 59 | Doxywizard is a GUI for creating and editing configuration files that
|
---|
| 60 | are used by doxygen.
|
---|
| 61 |
|
---|
[1650] | 62 | %if %{with_latex}
|
---|
| 63 | %package latex
|
---|
| 64 | Summary: Support for producing latex/pdf output from doxygen
|
---|
| 65 | Requires: %{name} = %{epoch}:%{version}-%{release}
|
---|
| 66 | Requires: tex(latex)
|
---|
| 67 | Requires: tex(multirow.sty)
|
---|
| 68 | Requires: tex(sectsty.sty)
|
---|
| 69 | Requires: tex(tocloft.sty)
|
---|
| 70 | Requires: tex(xtab.sty)
|
---|
| 71 | Requires: tex(import.sty)
|
---|
| 72 | Requires: tex(tabu.sty)
|
---|
| 73 | Requires: tex(appendix.sty)
|
---|
| 74 | Requires: tex(newunicodechar.sty)
|
---|
| 75 | Requires: texlive-epstopdf-bin
|
---|
[930] | 76 |
|
---|
[1650] | 77 | %description latex
|
---|
| 78 | %{summary}.
|
---|
| 79 | %endif
|
---|
| 80 |
|
---|
[930] | 81 | %debug_package
|
---|
| 82 |
|
---|
| 83 |
|
---|
| 84 | %prep
|
---|
[1650] | 85 | %scm_setup
|
---|
[930] | 86 |
|
---|
| 87 |
|
---|
| 88 | %build
|
---|
| 89 |
|
---|
[1650] | 90 | mkdir -p %{_build}
|
---|
| 91 | cd %{_build}
|
---|
[930] | 92 | # -DBUILD_SHARED_LIBS=OFF \
|
---|
| 93 | %cmake \
|
---|
[1650] | 94 | -Dbuild_doc=ON \
|
---|
[930] | 95 | -Dbuild_wizard=ON \
|
---|
| 96 | -Dbuild_xmlparser=ON \
|
---|
[1650] | 97 | -Dbuild_search=%{xapian_core_support} \
|
---|
[930] | 98 | -DMAN_INSTALL_DIR=%{_mandir}/man1 \
|
---|
| 99 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
---|
| 100 | ..
|
---|
| 101 | cd ..
|
---|
| 102 |
|
---|
| 103 | %if %{with_docs}
|
---|
[1650] | 104 | make docs -C %{_build}
|
---|
[930] | 105 | %endif
|
---|
[1650] | 106 | make -C %{_build}
|
---|
[930] | 107 |
|
---|
| 108 |
|
---|
| 109 | %install
|
---|
[1650] | 110 | make install DESTDIR=%{buildroot} -C %{_build}
|
---|
[930] | 111 |
|
---|
| 112 | # install man pages
|
---|
| 113 | mkdir -p %{buildroot}/%{_mandir}/man1
|
---|
| 114 | cp doc/*.1 %{buildroot}/%{_mandir}/man1/
|
---|
[1650] | 115 |
|
---|
| 116 | %if %{xapian_core_support} == "OFF"
|
---|
| 117 | rm -f %{buildroot}/%{_mandir}/man1/doxyindexer.1* %{buildroot}/%{_mandir}/man1/doxysearch.1*
|
---|
[930] | 118 | %endif
|
---|
| 119 |
|
---|
| 120 | # remove duplicate
|
---|
| 121 | rm -rf %{buildroot}/%{_docdir}/packages
|
---|
| 122 |
|
---|
[1650] | 123 | %check
|
---|
| 124 | #still disabled as we dont have bibtext tools. and one test needs it
|
---|
| 125 | #make tests -C %{_build}
|
---|
[930] | 126 |
|
---|
| 127 | %files
|
---|
| 128 | %doc LANGUAGE.HOWTO README.md
|
---|
[1650] | 129 | %license LICENSE
|
---|
[930] | 130 | %if %{with_docs}
|
---|
[1650] | 131 | %if %{xapian_core_support} == "ON"
|
---|
| 132 | %{_bindir}/doxyindexer.exe
|
---|
| 133 | %{_bindir}/doxysearch*
|
---|
| 134 | %exclude %{_bindir}/*.dbg
|
---|
[930] | 135 | %endif
|
---|
[1650] | 136 | %endif
|
---|
[930] | 137 | %{_bindir}/doxygen.exe
|
---|
| 138 | %{_mandir}/man1/doxygen.1*
|
---|
[1650] | 139 | %if %{xapian_core_support} == "ON"
|
---|
[930] | 140 | %{_mandir}/man1/doxyindexer.1*
|
---|
| 141 | %{_mandir}/man1/doxysearch.1*
|
---|
| 142 | %endif
|
---|
| 143 |
|
---|
| 144 |
|
---|
| 145 | %files doxywizard
|
---|
| 146 | %{_bindir}/doxywizard.exe
|
---|
| 147 | %{_mandir}/man1/doxywizard*
|
---|
[1650] | 148 |
|
---|
| 149 | %if %{with_latex}
|
---|
| 150 | %files latex
|
---|
| 151 | # intentionally left blank
|
---|
[930] | 152 | %endif
|
---|
| 153 |
|
---|
[1650] | 154 | %changelog
|
---|
| 155 | * Wed Jun 12 2019 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.8.15-1
|
---|
| 156 | - move source to github
|
---|
| 157 | - use scm_ macros
|
---|
| 158 | - update to version 1.8.15
|
---|
[930] | 159 |
|
---|
[940] | 160 | * Fri Jan 27 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.8.13-2
|
---|
| 161 | - add buildlevel to the exe
|
---|
| 162 |
|
---|
| 163 | * Thu Jan 19 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.8.13-1
|
---|
[932] | 164 | - fix doxywizzard rpm
|
---|
| 165 | - update to version 1.8.13
|
---|
| 166 |
|
---|
[930] | 167 | * Tue Dec 13 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.8.12-1
|
---|
| 168 | - initial port
|
---|