source: spec/trunk/SPECS/doxygen.spec@ 1650

Last change on this file since 1650 was 1650, checked in by Silvan Scherrer, 6 years ago

spec: doxygen: Release version 1.8.15-1.

File size: 3.9 KB
Line 
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
7Summary: A documentation system for C/C++
8Name: doxygen
9Version: 1.8.15
10Release: 1%{?dist}
11
12# No version is specified.
13License: GPL+
14Url: http://www.doxygen.nl
15Vendor: bww bitwise works GmbH
16%scm_source github http://github.com/bitwiseworks/%{name}-os2 %{version}-os2
17
18BuildRequires: %{_bindir}/python2
19
20BuildRequires: gcc perl
21%if %{with_docs}
22BuildRequires: tex(dvips)
23BuildRequires: tex(latex)
24BuildRequires: tex(multirow.sty)
25BuildRequires: tex(sectsty.sty)
26BuildRequires: tex(tocloft.sty)
27BuildRequires: tex(xtab.sty)
28BuildRequires: tex(import.sty)
29BuildRequires: tex(tabu.sty)
30BuildRequires: tex(appendix.sty)
31BuildRequires: /@unixroot/usr/bin/epstopdf
32BuildRequires: texlive-epstopdf
33BuildRequires: graphviz
34%endif
35BuildRequires: ghostscript
36BuildRequires: gettext
37BuildRequires: flex
38BuildRequires: bison
39BuildRequires: cmake
40%if %{xapian_core_support} == "ON"
41BuildRequires: xapian-core-devel
42BuildRequires: zlib-devel
43%endif
44Requires: perl
45#Requires: graphviz
46
47%description
48Doxygen can generate an online class browser (in HTML) and/or a
49reference manual (in LaTeX) from a set of documented source files. The
50documentation is extracted directly from the sources. Doxygen can
51also be configured to extract the code structure from undocumented
52source files.
53
54%package doxywizard
55Summary: A GUI for creating and editing configuration files
56Requires: %{name} = %{version}-%{release}
57BuildRequires: libqt4-devel
58
59%description doxywizard
60Doxywizard is a GUI for creating and editing configuration files that
61are used by doxygen.
62
63%if %{with_latex}
64%package latex
65Summary: Support for producing latex/pdf output from doxygen
66Requires: %{name} = %{epoch}:%{version}-%{release}
67Requires: tex(latex)
68Requires: tex(multirow.sty)
69Requires: tex(sectsty.sty)
70Requires: tex(tocloft.sty)
71Requires: tex(xtab.sty)
72Requires: tex(import.sty)
73Requires: tex(tabu.sty)
74Requires: tex(appendix.sty)
75Requires: tex(newunicodechar.sty)
76Requires: 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
90export LDFLAGS="-Zhigh-mem -Zomf -lcx"
91export VENDOR="%{vendor}"
92
93mkdir -p %{_build}
94cd %{_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 ..
108cd ..
109
110%if %{with_docs}
111make docs -C %{_build}
112%endif
113make -C %{_build}
114
115
116%install
117make install DESTDIR=%{buildroot} -C %{_build}
118
119# install man pages
120mkdir -p %{buildroot}/%{_mandir}/man1
121cp doc/*.1 %{buildroot}/%{_mandir}/man1/
122
123%if %{xapian_core_support} == "OFF"
124rm -f %{buildroot}/%{_mandir}/man1/doxyindexer.1* %{buildroot}/%{_mandir}/man1/doxysearch.1*
125%endif
126
127# remove duplicate
128rm -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
Note: See TracBrowser for help on using the repository browser.