|
@@ -4,23 +4,36 @@
|
|
|
Summary: A documentation system for C/C++.
|
|
|
Summary(ja): C/C++ 向けドキュメンテーションシステム
|
|
|
Name: doxygen
|
|
|
-Version: 1.8.6
|
|
|
-Release: 2%{?_dist_release}
|
|
|
-Source0: ftp://ftp.stack.nl/pub/users/dimitri/%{name}-%{version}.src.tar.gz
|
|
|
-Patch0: doxygen-1.8.6-config.patch
|
|
|
-Patch1: doxygen-1.8.5-html_timestamp_default_false.patch
|
|
|
-Patch2: doxygen-1.8.3-multilib.patch
|
|
|
-
|
|
|
-Group: Development/Tools
|
|
|
+Version: 1.9.1
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+Group: programming
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
License: GPLv2
|
|
|
-URL: http://www.stack.nl/~dimitri/doxygen/
|
|
|
+URL: https://www.doxygen.nl/
|
|
|
+Source0: https://doxygen.nl/files/%{name}-%{version}.src.tar.gz
|
|
|
+# this icon is part of kdesdk
|
|
|
+Source1: doxywizard.desktop
|
|
|
+# these icons are part of doxygen and converted from doxywizard.ico
|
|
|
+Source2: doxywizard-icons.tar.xz
|
|
|
+# upstream patches
|
|
|
+Patch1: doxgen-1.9.1-crash-when-parsing-config-file.patch
|
|
|
+Patch2: doxgen-1.9.1-crash-when-parsing-config-file-part2.patch
|
|
|
+Patch3: doxygen-1.9.1-Coverity_issues.patch
|
|
|
+Patch4: doxygen-1.9.1-crash_in_docparser.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildRequires: perl texlive texlive-collection-fontutils ghostscript gettext
|
|
|
BuildRequires: flex bison
|
|
|
+BuildRequires: desktop-file-utils
|
|
|
+BuildRequires: graphviz
|
|
|
+BuildRequires: python3
|
|
|
+BuildRequires: cmake
|
|
|
%if %{wizard}
|
|
|
-BuildRequires: qt4-devel => 4.4
|
|
|
+BuildRequires: qt5-qtbase-devel
|
|
|
%endif
|
|
|
+Requires: graphviz
|
|
|
|
|
|
%description
|
|
|
Doxygen can generate an online class browser (in HTML) and/or a
|
|
@@ -29,69 +42,109 @@ documentation is extracted directly from the sources. Doxygen can
|
|
|
also be configured to extract the code structure from undocumented
|
|
|
source files.
|
|
|
|
|
|
+
|
|
|
%package doxywizard
|
|
|
Summary: A GUI for creating and editing configuration files.
|
|
|
-Group: Applications/Development
|
|
|
+Group: programming
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description doxywizard
|
|
|
Doxywizard is a GUI for creating and editing configuration files that
|
|
|
are used by doxygen.
|
|
|
|
|
|
+
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
-%setup -q -n %{name}-%{version}
|
|
|
-%patch0 -p1 -b .config
|
|
|
-%patch1 -p1 -b .html_timestamp_default_false
|
|
|
-%patch2 -p1 -b .multilib
|
|
|
+%autosetup -p1 -a2
|
|
|
+
|
|
|
+# convert into utf-8
|
|
|
+iconv --from=ISO-8859-1 --to=UTF-8 LANGUAGE.HOWTO > LANGUAGE.HOWTO.new
|
|
|
+touch -r LANGUAGE.HOWTO LANGUAGE.HOWTO.new
|
|
|
+mv LANGUAGE.HOWTO.new LANGUAGE.HOWTO
|
|
|
|
|
|
-%build
|
|
|
-unset QTDIR
|
|
|
|
|
|
-./configure \
|
|
|
- --prefix %{_prefix} \
|
|
|
- --shared \
|
|
|
+%build
|
|
|
+%cmake \
|
|
|
+ -DPYTHON_EXECUTABLE=%{_bindir}/python3 \
|
|
|
+ -Duse_libclang=OFF \
|
|
|
+ -Dbuild_doc=OFF \
|
|
|
%if %{wizard}
|
|
|
- --with-doxywizard \
|
|
|
+ -Dbuild_wizard=ON \
|
|
|
+%else
|
|
|
+ -Dbuild_wizard=OFF \
|
|
|
%endif
|
|
|
- --release
|
|
|
+ -Dbuild_xmlparser=ON \
|
|
|
+ -Dbuild_search=OFF \
|
|
|
+ -DMAN_INSTALL_DIR=%{_mandir}/man1 \
|
|
|
+ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
|
|
+ -DBUILD_SHARED_LIBS=OFF
|
|
|
+
|
|
|
+make %{?_smp_mflags}
|
|
|
|
|
|
-make %{?_smp_mflags} all
|
|
|
-make docs
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
-
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
-%if %{wizard}
|
|
|
-make doxywizard_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
-%else
|
|
|
-rm -f $RPM_BUILD_ROOT%{_mandir}/man1/doxywizard.*
|
|
|
+# install icons
|
|
|
+icondir=%{buildroot}%{_datadir}/icons/hicolor
|
|
|
+mkdir -m755 -p $icondir/{16x16,32x32,48x48,128x128}/apps
|
|
|
+install -m644 -p -D doxywizard-6.png $icondir/16x16/apps/doxywizard.png
|
|
|
+install -m644 -p -D doxywizard-5.png $icondir/32x32/apps/doxywizard.png
|
|
|
+install -m644 -p -D doxywizard-4.png $icondir/48x48/apps/doxywizard.png
|
|
|
+install -m644 -p -D doxywizard-3.png $icondir/128x128/apps/doxywizard.png
|
|
|
+
|
|
|
+# install man pages
|
|
|
+mkdir -p %{buildroot}/%{_mandir}/man1
|
|
|
+cp doc/*.1 %{buildroot}/%{_mandir}/man1/
|
|
|
+%if 0%{?_module_build}
|
|
|
+rm -f %{buildroot}/%{_mandir}/man1/doxywizard.1*
|
|
|
%endif
|
|
|
|
|
|
-# convert into utf-8
|
|
|
-iconv --from=ISO-8859-1 --to=UTF-8 LANGUAGE.HOWTO > LANGUAGE.HOWTO.new
|
|
|
-touch -r LANGUAGE.HOWTO LANGUAGE.HOWTO.new
|
|
|
-mv LANGUAGE.HOWTO.new LANGUAGE.HOWTO
|
|
|
+%if "x%{?xapian_core_support}" == "xOFF"
|
|
|
+rm -f %{buildroot}/%{_mandir}/man1/doxyindexer.1* %{buildroot}/%{_mandir}/man1/d
|
|
|
+oxysearch.1*
|
|
|
+%endif
|
|
|
+
|
|
|
+# remove duplicate
|
|
|
+rm -rf %{buildroot}/%{_docdir}/packages
|
|
|
+
|
|
|
+%if 0%{?wizard}
|
|
|
+desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
-%doc LANGUAGE.HOWTO LICENSE README.md examples html
|
|
|
+%license LICENSE
|
|
|
+%doc LANGUAGE.HOWTO README.md
|
|
|
%{_bindir}/doxygen
|
|
|
%{_mandir}/man1/doxygen.*
|
|
|
+%exclude %{_mandir}/man1/doxyindexer.*
|
|
|
+%exclude %{_mandir}/man1/doxysearch.*
|
|
|
|
|
|
%if %{wizard}
|
|
|
%files doxywizard
|
|
|
%defattr(-,root,root)
|
|
|
%{_bindir}/doxywizard
|
|
|
%{_mandir}/man1/doxywizard.*
|
|
|
+%{_datadir}/applications/doxywizard.desktop
|
|
|
%endif
|
|
|
+%{_datadir}/icons/hicolor/*/apps/doxywizard.png
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Feb 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.9.1-1
|
|
|
+- new upstream release.
|
|
|
+- dropped all patches.
|
|
|
+- imported Patch1-4 from rawhide.
|
|
|
+
|
|
|
* Sat Jul 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.8.6-2
|
|
|
- rebuild with gcc-5.4.0
|
|
|
|