| 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 |
|
|---|
| 10 | Summary: A documentation system for C/C++
|
|---|
| 11 | Name: doxygen
|
|---|
| 12 | Version: 1.8.13
|
|---|
| 13 | Release: 2%{?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} = %{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 | export VENDOR="%{vendor}"
|
|---|
| 80 |
|
|---|
| 81 | mkdir -p build
|
|---|
| 82 | cd 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 | ..
|
|---|
| 96 | cd ..
|
|---|
| 97 |
|
|---|
| 98 | %if %{with_docs}
|
|---|
| 99 | make docs -C build
|
|---|
| 100 | %endif
|
|---|
| 101 | make -C build
|
|---|
| 102 |
|
|---|
| 103 |
|
|---|
| 104 | %install
|
|---|
| 105 | make install DESTDIR=%{buildroot} -C build
|
|---|
| 106 |
|
|---|
| 107 | # install man pages
|
|---|
| 108 | %if %{with_docs}
|
|---|
| 109 | mkdir -p %{buildroot}/%{_mandir}/man1
|
|---|
| 110 | cp doc/*.1 %{buildroot}/%{_mandir}/man1/
|
|---|
| 111 | %endif
|
|---|
| 112 |
|
|---|
| 113 | # remove duplicate
|
|---|
| 114 | rm -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
|
|---|