From 83944930bbf9990240972c451f6e81457b6923fa5b9f6d03d91c25054a1bd6e6 Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Tue, 18 Aug 2015 13:13:27 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=89 --- doxygen-doc.spec | 98 ++++++++++++++++++++++++++++++++++++++++++++++++ doxygen.spec | 61 ++++-------------------------- doxywizard.spec | 6 ++- 3 files changed, 111 insertions(+), 54 deletions(-) create mode 100644 doxygen-doc.spec diff --git a/doxygen-doc.spec b/doxygen-doc.spec new file mode 100644 index 0000000..74cc3ce --- /dev/null +++ b/doxygen-doc.spec @@ -0,0 +1,98 @@ +# +# spec file for package doxygen-doc +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: doxygen-doc +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 +BuildRequires: bison +BuildRequires: cmake +BuildRequires: fdupes +BuildRequires: flex +BuildRequires: gcc-c++ +# see graphviz.spec: +# "If you need output in png format you also need to install graphviz-gnome." +BuildRequires: graphviz-gnome +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Doxygen is a documentation system for C, C++, Java, and IDL. It can +generate an online class browser (in HTML) and an offline reference +manual (in LaTeX) from a set of documented source files. The +documentation is extracted directly from the sources. Doxygen is +developed on a Linux platform, but it runs on most other UNIX flavors +as well. An executable for Windows 95/NT is also available. + +This package contains only documentation + +%prep +%setup -q -n doxygen-%{version} + +%build +mkdir build +pushd build +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 docs %{?_smp_mflags} +popd + +%install +pushd build +make install docs %{?_smp_mflags} +popd +rm %{buildroot}%{_bindir}/doxygen +rm -r %{buildroot}/usr/man/man1/ +%fdupes -s %{buildroot}%{_docdir}/%{name}-doc + +%files +%defattr(-,root,root) +%doc %{_docdir}/%{name}-doc + +%changelog diff --git a/doxygen.spec b/doxygen.spec index 62f46b3..15bbe89 100644 --- a/doxygen.spec +++ b/doxygen.spec @@ -30,37 +30,11 @@ Patch0: %{name}-modify_footer.patch Patch1: %{name}-no-lowercase-man-names.patch BuildRequires: bison BuildRequires: cmake -BuildRequires: fdupes BuildRequires: flex BuildRequires: gcc-c++ -# 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 @@ -74,21 +48,7 @@ generate an online class browser (in HTML) and an offline reference manual (in LaTeX) from a set of documented source files. The documentation is extracted directly from the sources. Doxygen is developed on a Linux platform, but it runs on most other UNIX flavors -as well. An executable for Windows 95/NT is also available. - -%package doc -Summary: Documentation for %{name} -Group: Documentation - -%description doc -Doxygen is a documentation system for C, C++, Java, and IDL. It can -generate an online class browser (in HTML) and an offline reference -manual (in LaTeX) from a set of documented source files. The -documentation is extracted directly from the sources. Doxygen is -developed on a Linux platform, but it runs on most other UNIX flavors -as well. An executable for Windows 95/NT is also available. - -This package contains only documentation +as well. %prep %setup -q @@ -98,26 +58,25 @@ This package contains only documentation %build 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 -cd build +pushd build make install %{?_smp_mflags} -rm %{buildroot}%{_mandir}/man1/{doxysearch,doxyindexer,doxywizard}.1 +popd +mkdir -p %{buildroot}%{_mandir}/man1/ +install -m 644 doc/doxygen.1 %{buildroot}%{_mandir}/man1/ %if 0%{?suse_version} > 1230 && 0%{?suse_version} != 1315 %check -cd build +pushd build make tests %{?_smp_mflags} +popd %endif %files @@ -126,8 +85,4 @@ make tests %{?_smp_mflags} %attr(444,root,root) %doc %{_mandir}/man1/doxygen.1.gz %attr(755,root,root) %{_bindir}/* -%files doc -%defattr(-,root,root) -%doc %{_docdir}/%{name}-doc - %changelog diff --git a/doxywizard.spec b/doxywizard.spec index 3f051ef..caf1668 100644 --- a/doxywizard.spec +++ b/doxywizard.spec @@ -54,14 +54,18 @@ make %{?_smp_mflags} popd %install -cd build +pushd build make install %{?_smp_mflags} +popd rm %{buildroot}%{_bindir}/doxygen +mkdir -p %{buildroot}%{_mandir}/man1/ +install -m 644 doc/doxywizard.1 %{buildroot}%{_mandir}/man1/ %suse_update_desktop_file -i doxywizard Development Documentation %files %defattr(-,root,root) %attr(755,root,root) %{_bindir}/doxywizard %{_datadir}/applications/doxywizard.desktop +%{_mandir}/man1/doxywizard.1.gz %changelog