1 | #define svn_url e:/trees/doxygen/trunk
|
---|
2 | %define svn_url http://svn.netlabs.org/repos/ports/doxygen/trunk
|
---|
3 | %define svn_rev 1894
|
---|
4 |
|
---|
5 | # set this to 1 to enable
|
---|
6 | %global with_docs 0
|
---|
7 | %global with_search 0
|
---|
8 |
|
---|
9 |
|
---|
10 | Summary: A documentation system for C/C++
|
---|
11 | Name: doxygen
|
---|
12 | Version: 1.8.12
|
---|
13 | Release: 1%{?dist}
|
---|
14 |
|
---|
15 | # No version is specified.
|
---|
16 | License: GPL+
|
---|
17 | Url: http://www.stack.nl/~dimitri/doxygen/index.html
|
---|
18 | Vendor: bww bitwise works GmbH
|
---|
19 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
---|
20 |
|
---|
21 |
|
---|
22 | BuildRequires: perl
|
---|
23 | %if %{with_docs}
|
---|
24 | BuildRequires: tex(dvips)
|
---|
25 | BuildRequires: tex(latex)
|
---|
26 | BuildRequires: tex(multirow.sty)
|
---|
27 | BuildRequires: tex(sectsty.sty)
|
---|
28 | BuildRequires: tex(tocloft.sty)
|
---|
29 | BuildRequires: tex(xtab.sty)
|
---|
30 | BuildRequires: tex(import.sty)
|
---|
31 | BuildRequires: tex(tabu.sty)
|
---|
32 | BuildRequires: tex(appendix.sty)
|
---|
33 | BuildRequires: /@unixroot/usr/bin/epstopdf
|
---|
34 | BuildRequires: texlive-epstopdf
|
---|
35 | %endif
|
---|
36 | BuildRequires: ghostscript
|
---|
37 | BuildRequires: gettext
|
---|
38 | BuildRequires: flex
|
---|
39 | BuildRequires: bison
|
---|
40 | BuildRequires: cmake
|
---|
41 | #BuildRequires: graphviz
|
---|
42 | %if %{with_search}
|
---|
43 | BuildRequires: xapian-core-devel
|
---|
44 | %endif
|
---|
45 | Requires: perl
|
---|
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} = %{epoch}:%{version}-%{release}
|
---|
57 | BuildRequires: libqt4-devel
|
---|
58 | %description doxywizard
|
---|
59 | Doxywizard is a GUI for creating and editing configuration files that
|
---|
60 | are used by doxygen.
|
---|
61 |
|
---|
62 |
|
---|
63 | %debug_package
|
---|
64 |
|
---|
65 |
|
---|
66 | %prep
|
---|
67 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
|
---|
68 | %setup -q
|
---|
69 | %else
|
---|
70 | %setup -n "%{name}-%{version}" -Tc
|
---|
71 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
---|
72 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
---|
73 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
---|
74 | %endif
|
---|
75 |
|
---|
76 |
|
---|
77 | %build
|
---|
78 | export LDFLAGS="-Zhigh-mem -Zomf -lcx"
|
---|
79 |
|
---|
80 | mkdir -p build
|
---|
81 | cd build
|
---|
82 | # -DBUILD_SHARED_LIBS=OFF \
|
---|
83 | %cmake \
|
---|
84 | -Dbuild_wizard=ON \
|
---|
85 | -Dbuild_xmlparser=ON \
|
---|
86 | -DMAN_INSTALL_DIR=%{_mandir}/man1 \
|
---|
87 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
---|
88 | %if %{with_docs}
|
---|
89 | -Dbuild_doc=ON \
|
---|
90 | %endif
|
---|
91 | %if %{with_search}
|
---|
92 | -Dbuild_search=ON \
|
---|
93 | %endif
|
---|
94 | ..
|
---|
95 | cd ..
|
---|
96 |
|
---|
97 | %if %{with_docs}
|
---|
98 | make docs -C build
|
---|
99 | %endif
|
---|
100 | make -C build
|
---|
101 |
|
---|
102 |
|
---|
103 | %install
|
---|
104 | make install DESTDIR=%{buildroot} -C build
|
---|
105 |
|
---|
106 | # install man pages
|
---|
107 | %if %{with_docs}
|
---|
108 | mkdir -p %{buildroot}/%{_mandir}/man1
|
---|
109 | cp doc/*.1 %{buildroot}/%{_mandir}/man1/
|
---|
110 | %endif
|
---|
111 |
|
---|
112 | # remove duplicate
|
---|
113 | rm -rf %{buildroot}/%{_docdir}/packages
|
---|
114 |
|
---|
115 |
|
---|
116 | %files
|
---|
117 | %doc LANGUAGE.HOWTO README.md
|
---|
118 | %if %{with_docs}
|
---|
119 | %doc build/latex/doxygen_manual.pdf
|
---|
120 | %doc build/html
|
---|
121 | %endif
|
---|
122 | %{_bindir}/doxygen.exe
|
---|
123 | %if %{with_docs}
|
---|
124 | %{_bindir}/doxyindexer.exe
|
---|
125 | %{_bindir}/doxysearch*.cgi
|
---|
126 | %endif
|
---|
127 | %if %{with_docs}
|
---|
128 | %{_mandir}/man1/doxygen.1*
|
---|
129 | %{_mandir}/man1/doxyindexer.1*
|
---|
130 | %{_mandir}/man1/doxysearch.1*
|
---|
131 | %endif
|
---|
132 |
|
---|
133 |
|
---|
134 | %files doxywizard
|
---|
135 | %{_bindir}/doxywizard.exe
|
---|
136 | %if %{with_docs}
|
---|
137 | %{_mandir}/man1/doxywizard*
|
---|
138 | %endif
|
---|
139 |
|
---|
140 |
|
---|
141 | %changelog
|
---|
142 | * Tue Dec 13 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.8.12-1
|
---|
143 | - initial port
|
---|