1 | # set this to 1 to enable
|
---|
2 | %global with_docs 1
|
---|
3 | %global with_latex 0
|
---|
4 | %global xapian_core_support OFF
|
---|
5 |
|
---|
6 |
|
---|
7 | Summary: A documentation system for C/C++
|
---|
8 | Name: doxygen
|
---|
9 | Version: 1.8.15
|
---|
10 | Release: 1%{?dist}
|
---|
11 |
|
---|
12 | # No version is specified.
|
---|
13 | License: GPL+
|
---|
14 | Url: http://www.doxygen.nl
|
---|
15 | Vendor: bww bitwise works GmbH
|
---|
16 | %scm_source svn http://svn.netlabs.org/repos/ports/doxygen/trunk 1956
|
---|
17 | BuildRequires: %{_bindir}/python2
|
---|
18 |
|
---|
19 | BuildRequires: gcc perl
|
---|
20 | %if %{with_docs}
|
---|
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
|
---|
33 | %endif
|
---|
34 | BuildRequires: ghostscript
|
---|
35 | BuildRequires: gettext
|
---|
36 | BuildRequires: flex
|
---|
37 | BuildRequires: bison
|
---|
38 | BuildRequires: cmake
|
---|
39 | %if %{xapian_core_support} == "ON"
|
---|
40 | BuildRequires: xapian-core-devel
|
---|
41 | BuildRequires: zlib-devel
|
---|
42 | %endif
|
---|
43 | Requires: perl
|
---|
44 | #Requires: graphviz
|
---|
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
|
---|
55 | Requires: %{name} = %{version}-%{release}
|
---|
56 | BuildRequires: libqt4-devel
|
---|
57 |
|
---|
58 | %description doxywizard
|
---|
59 | Doxywizard is a GUI for creating and editing configuration files that
|
---|
60 | are used by doxygen.
|
---|
61 |
|
---|
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
|
---|
76 |
|
---|
77 | %description latex
|
---|
78 | %{summary}.
|
---|
79 | %endif
|
---|
80 |
|
---|
81 | %debug_package
|
---|
82 |
|
---|
83 |
|
---|
84 | %prep
|
---|
85 | %scm_setup
|
---|
86 |
|
---|
87 |
|
---|
88 | %build
|
---|
89 |
|
---|
90 | mkdir -p %{_build}
|
---|
91 | cd %{_build}
|
---|
92 | # -DBUILD_SHARED_LIBS=OFF \
|
---|
93 | %cmake \
|
---|
94 | -Dbuild_doc=ON \
|
---|
95 | -Dbuild_wizard=ON \
|
---|
96 | -Dbuild_xmlparser=ON \
|
---|
97 | -Dbuild_search=%{xapian_core_support} \
|
---|
98 | -DMAN_INSTALL_DIR=%{_mandir}/man1 \
|
---|
99 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
---|
100 | ..
|
---|
101 | cd ..
|
---|
102 |
|
---|
103 | %if %{with_docs}
|
---|
104 | make docs -C %{_build}
|
---|
105 | %endif
|
---|
106 | make -C %{_build}
|
---|
107 |
|
---|
108 |
|
---|
109 | %install
|
---|
110 | make install DESTDIR=%{buildroot} -C %{_build}
|
---|
111 |
|
---|
112 | # install man pages
|
---|
113 | mkdir -p %{buildroot}/%{_mandir}/man1
|
---|
114 | cp doc/*.1 %{buildroot}/%{_mandir}/man1/
|
---|
115 |
|
---|
116 | %if %{xapian_core_support} == "OFF"
|
---|
117 | rm -f %{buildroot}/%{_mandir}/man1/doxyindexer.1* %{buildroot}/%{_mandir}/man1/doxysearch.1*
|
---|
118 | %endif
|
---|
119 |
|
---|
120 | # remove duplicate
|
---|
121 | rm -rf %{buildroot}/%{_docdir}/packages
|
---|
122 |
|
---|
123 | %check
|
---|
124 | #still disabled as we dont have bibtext tools. and one test needs it
|
---|
125 | #make tests -C %{_build}
|
---|
126 |
|
---|
127 | %files
|
---|
128 | %doc LANGUAGE.HOWTO README.md
|
---|
129 | %license LICENSE
|
---|
130 | %if %{with_docs}
|
---|
131 | %if %{xapian_core_support} == "ON"
|
---|
132 | %{_bindir}/doxyindexer.exe
|
---|
133 | %{_bindir}/doxysearch*
|
---|
134 | %exclude %{_bindir}/*.dbg
|
---|
135 | %endif
|
---|
136 | %endif
|
---|
137 | %{_bindir}/doxygen.exe
|
---|
138 | %{_mandir}/man1/doxygen.1*
|
---|
139 | %if %{xapian_core_support} == "ON"
|
---|
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*
|
---|
148 |
|
---|
149 | %if %{with_latex}
|
---|
150 | %files latex
|
---|
151 | # intentionally left blank
|
---|
152 | %endif
|
---|
153 |
|
---|
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
|
---|
159 |
|
---|
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
|
---|
164 | - fix doxywizzard rpm
|
---|
165 | - update to version 1.8.13
|
---|
166 |
|
---|
167 | * Tue Dec 13 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.8.12-1
|
---|
168 | - initial port
|
---|