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

Last change on this file since 1010 was 940, checked in by Silvan Scherrer, 9 years ago

spec: doxygen: Release version 1.8.13-2.

File size: 3.5 KB
Line 
1#define svn_url e:/trees/doxygen/trunk
2%define svn_url http://svn.netlabs.org/repos/ports/doxygen/trunk
3%define svn_rev 1956
4
5# set this to 1 to enable
6%global with_docs 0
7%global with_search 0
8
9
10Summary: A documentation system for C/C++
11Name: doxygen
12Version: 1.8.13
13Release: 2%{?dist}
14
15# No version is specified.
16License: GPL+
17Url: http://www.stack.nl/~dimitri/doxygen/index.html
18Vendor: bww bitwise works GmbH
19Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
20
21
22BuildRequires: perl
23%if %{with_docs}
24BuildRequires: tex(dvips)
25BuildRequires: tex(latex)
26BuildRequires: tex(multirow.sty)
27BuildRequires: tex(sectsty.sty)
28BuildRequires: tex(tocloft.sty)
29BuildRequires: tex(xtab.sty)
30BuildRequires: tex(import.sty)
31BuildRequires: tex(tabu.sty)
32BuildRequires: tex(appendix.sty)
33BuildRequires: /@unixroot/usr/bin/epstopdf
34BuildRequires: texlive-epstopdf
35%endif
36BuildRequires: ghostscript
37BuildRequires: gettext
38BuildRequires: flex
39BuildRequires: bison
40BuildRequires: cmake
41#BuildRequires: graphviz
42%if %{with_search}
43BuildRequires: xapian-core-devel
44%endif
45Requires: perl
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%description doxywizard
59Doxywizard is a GUI for creating and editing configuration files that
60are 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
71svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
72rm -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
78export LDFLAGS="-Zhigh-mem -Zomf -lcx"
79export VENDOR="%{vendor}"
80
81mkdir -p build
82cd build
83# -DBUILD_SHARED_LIBS=OFF \
84%cmake \
85 -Dbuild_wizard=ON \
86 -Dbuild_xmlparser=ON \
87 -DMAN_INSTALL_DIR=%{_mandir}/man1 \
88 -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
89%if %{with_docs}
90 -Dbuild_doc=ON \
91%endif
92%if %{with_search}
93 -Dbuild_search=ON \
94%endif
95 ..
96cd ..
97
98%if %{with_docs}
99make docs -C build
100%endif
101make -C build
102
103
104%install
105make install DESTDIR=%{buildroot} -C build
106
107# install man pages
108%if %{with_docs}
109mkdir -p %{buildroot}/%{_mandir}/man1
110cp doc/*.1 %{buildroot}/%{_mandir}/man1/
111%endif
112
113# remove duplicate
114rm -rf %{buildroot}/%{_docdir}/packages
115
116
117%files
118%doc LANGUAGE.HOWTO README.md
119%if %{with_docs}
120%doc build/latex/doxygen_manual.pdf
121%doc build/html
122%endif
123%{_bindir}/doxygen.exe
124%if %{with_docs}
125%{_bindir}/doxyindexer.exe
126%{_bindir}/doxysearch*.cgi
127%endif
128%if %{with_docs}
129%{_mandir}/man1/doxygen.1*
130%{_mandir}/man1/doxyindexer.1*
131%{_mandir}/man1/doxysearch.1*
132%endif
133
134
135%files doxywizard
136%{_bindir}/doxywizard.exe
137%if %{with_docs}
138%{_mandir}/man1/doxywizard*
139%endif
140
141
142%changelog
143* Fri Jan 27 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.8.13-2
144- add buildlevel to the exe
145
146* Thu Jan 19 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.8.13-1
147- fix doxywizzard rpm
148- update to version 1.8.13
149
150* Tue Dec 13 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.8.12-1
151- initial port
Note: See TracBrowser for help on using the repository browser.