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