SHA256
8
0
forked from pool/doxygen

- updated to 1.8.10

* Change the build system to use cmake.
  * Add support for basic XML syntax highlighting
  * Added documentation for ``` style fenced code block and more 
    robust parsing
  * Added function arguments to the LaTeX toc
  * Added support for language codes
  * etc. see http://www.stack.nl/~dimitri/doxygen/manual/changelog.html
- removed unneded patches:
  - doxygen-1.5.9-64archs.patch
  - doxygen-1.5.9-man.patch
  - doxygen-1.7.0-modify_footer.patch renamed to doxygen-modify_footer.patch

- updated to 1.8.10, see doxygen.changes
- move tests to doxygen.spec
- remove doxywizard-1.5.9-flex.patch

OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=87
This commit is contained in:
2015-08-17 16:12:41 +00:00
committed by Git OBS Bridge
parent 402355f25d
commit b94a24c634
9 changed files with 100 additions and 195 deletions

View File

@@ -17,25 +17,55 @@
Name: doxygen
Version: 1.8.9.1
Version: 1.8.10
Release: 0
Summary: Automated C, C++, and Java Documentation Generator
License: GPL-2.0+
Group: Development/Tools/Doc Generators
Url: http://www.stack.nl/~dimitri/doxygen/
Source0: http://ftp.stack.nl/pub/users/dimitri/doxygen-%{version}.src.tar.gz
Patch0: %{name}-1.5.9-64archs.patch
Patch3: %{name}-1.5.9-man.patch
Patch4: %{name}-1.7.0-modify_footer.patch
Patch5: %{name}-no-lowercase-man-names.patch
# suse specific
Patch0: %{name}-modify_footer.patch
# suse specific
Patch1: %{name}-no-lowercase-man-names.patch
BuildRequires: bison
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: graphviz
# see graphviz.spec:
# "If you need output in png format you also need to install graphviz-gnome."
BuildRequires: graphviz-gnome
BuildRequires: libpng-devel
BuildRequires: poppler-tools
BuildRequires: python-base
BuildRequires: python-xml
BuildRequires: texlive-colortbl
BuildRequires: texlive-courier
BuildRequires: texlive-dvips
BuildRequires: texlive-epstopdf
BuildRequires: texlive-fancyhdr
BuildRequires: texlive-float
BuildRequires: texlive-helvetic
BuildRequires: texlive-latex
BuildRequires: texlive-makeindex
BuildRequires: texlive-metafont
BuildRequires: texlive-multirow
BuildRequires: texlive-natbib
BuildRequires: texlive-psnfss
BuildRequires: texlive-rsfs
BuildRequires: texlive-sectsty
BuildRequires: texlive-symbol
BuildRequires: texlive-times
BuildRequires: texlive-tocloft
BuildRequires: texlive-wasy
BuildRequires: texlive-wasysym
BuildRequires: texlive-xtab
%if 0%{?suse_version} > 1230 && 0%{?suse_version} != 1315
# for make tests
BuildRequires: libxml2-tools
BuildRequires: texlive-bibtex
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -63,34 +93,37 @@ This package contains only documentation
%prep
%setup -q
%patch0
%patch3
%patch4
%patch5 -p1
%patch1 -p1
%build
mintoc=
%ifarch ppc64
mintoc="-DENGLISH_ONLY"
%endif
sed -i~ "/^TMAKE_CFLAGS_RELEASE.*/s@^.*@TMAKE_CFLAGS_RELEASE = %{optflags} $mintoc@" tmake/lib/linux-g++/tmake.conf
# custom configure script
./configure --prefix %{_prefix} --install %{_bindir}/install
make %{?_smp_mflags}
# generate html documentation
./bin/doxygen
mkdir build
pushd build
sed -i 's:man/man1:share/&:' ../doc/CMakeLists.txt
cmake -G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=%{buildroot}/usr \
-Dbuild_doc=ON \
-DDOC_INSTALL_DIR=share/doc/packages/%{name}-doc \
..
make %{?_smp_mflags}
make docs %{?_smp_mflags}
popd
%install
install -d -m 755 %{buildroot}%{_docdir}/doxygen
make install INSTALL=%{buildroot}/usr DOCDIR=%{buildroot}%{_docdir}/doxygen
install -m 644 LICENSE LANGUAGE.HOWTO PLATFORMS README.md VERSION %{buildroot}%{_docdir}/doxygen
cp -a doxygen_docs/html %{buildroot}%{_docdir}/%{name}-doc
%fdupes -s %{buildroot}%{_docdir}/%{name}-doc
cd build
make install %{?_smp_mflags}
rm %{buildroot}%{_mandir}/man1/{doxysearch,doxyindexer,doxywizard}.1
%if 0%{?suse_version} > 1230 && 0%{?suse_version} != 1315
%check
cd build
make tests %{?_smp_mflags}
%endif
%files
%defattr(-,root,root)
%doc LICENSE
%attr(444,root,root) %doc %{_mandir}/man1/doxygen.1.*
%attr(444,root,root) %doc %{_mandir}/man1/doxygen.1.gz
%attr(755,root,root) %{_bindir}/*
%files doc