commit
baf76c390d
Binary file not shown.
BIN
doxygen-1.8.18.src.tar.gz
Normal file
BIN
doxygen-1.8.18.src.tar.gz
Normal file
Binary file not shown.
167
doxygen.spec
167
doxygen.spec
@ -1,30 +1,23 @@
|
|||||||
%global xapian_core_support OFF
|
%global xapian_core_support ON
|
||||||
|
%global BuildDir Out
|
||||||
Summary: Generate documentation from source code
|
Name: doxygen
|
||||||
Name: doxygen
|
Epoch: 1
|
||||||
Epoch: 1
|
Version: 1.8.18
|
||||||
Version: 1.8.14
|
Release: 3
|
||||||
Release: 10
|
Summary: A documentation system for C/C++
|
||||||
License: GPL+
|
License: GPL+
|
||||||
Url: http://www.doxygen.nl
|
Url: http://www.doxygen.nl
|
||||||
Source0: https://sourceforge.net/projects/%{name}/files/rel-%{version}/%{name}-%{version}.src.tar.gz
|
Source0: http://doxygen.nl/files/%{name}-%{version}.src.tar.gz
|
||||||
Source2: doxywizard.desktop
|
Source1: doxywizard.desktop
|
||||||
|
BuildRequires: python3 ImageMagick gcc-c++ gcc perl-interpreter
|
||||||
BuildRequires: gcc-c++ gcc perl-interpreter
|
BuildRequires: tex(dvips) tex(latex) tex(multirow.sty) tex(sectsty.sty) tex(tocloft.sty)
|
||||||
%if ! 0%{?_module_build}
|
BuildRequires: tex(xtab.sty) tex(import.sty) tex(tabu.sty) tex(appendix.sty)
|
||||||
BuildRequires: tex(dvips) tex(latex) tex(multirow.sty) tex(sectsty.sty) tex(tocloft.sty)
|
BuildRequires: tex(adjustbox.sty) /usr/bin/epstopdf texlive-epstopdf ghostscript gettext
|
||||||
BuildRequires: tex(xtab.sty) tex(import.sty) tex(tabu.sty) tex(appendix.sty)
|
BuildRequires: desktop-file-utils graphviz flex bison cmake git
|
||||||
BuildRequires: tex(adjustbox.sty) /usr/bin/epstopdf texlive-epstopdf
|
|
||||||
BuildRequires: ghostscript gettext desktop-file-utils graphviz
|
|
||||||
%else
|
|
||||||
BuildRequires: zlib-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: flex bison cmake
|
|
||||||
%if %{xapian_core_support} == "ON"
|
%if %{xapian_core_support} == "ON"
|
||||||
BuildRequires: xapian-core-devel zlib-devel
|
BuildRequires: xapian-core-devel zlib-devel
|
||||||
%endif
|
%endif
|
||||||
Requires: perl-interpreter
|
Requires: perl-interpreter graphviz
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Doxygen is the de facto standard tool for generating documentation from
|
Doxygen is the de facto standard tool for generating documentation from
|
||||||
annotated C++ sources, but it also supports other popular programming
|
annotated C++ sources, but it also supports other popular programming
|
||||||
@ -32,118 +25,76 @@ languages such as C, Objective-C, C#, PHP, Java, Python, IDL (Corba,
|
|||||||
Microsoft, and UNO/OpenOffice flavors), Fortran, VHDL, Tcl, and to some
|
Microsoft, and UNO/OpenOffice flavors), Fortran, VHDL, Tcl, and to some
|
||||||
extent D.
|
extent D.
|
||||||
|
|
||||||
%if ! 0%{?_module_build}
|
|
||||||
%package doxywizard
|
%package doxywizard
|
||||||
Summary: A GUI for creating and editing configuration files
|
Summary: A GUI for creating and editing configuration files
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||||
BuildRequires: qt5-qtbase-devel
|
BuildRequires: qt5-qtbase-devel
|
||||||
|
|
||||||
%description doxywizard
|
%description doxywizard
|
||||||
Doxywizard is a graphical front-end to read/edit/write doxygen
|
Doxywizard is a graphical front-end to read/edit/write doxygen
|
||||||
configuration files.
|
configuration files.
|
||||||
|
|
||||||
%package latex
|
|
||||||
Summary: Support for producing latex/pdf output from doxygen
|
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
||||||
Requires: tex(latex) tex(multirow.sty) tex(sectsty.sty) tex(tocloft.sty)
|
|
||||||
Requires: tex(xtab.sty) tex(import.sty) tex(tabu.sty) tex(appendix.sty)
|
|
||||||
Requires: texlive-epstopdf-bin
|
|
||||||
|
|
||||||
%description latex
|
|
||||||
%{summary}.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%package_help
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
iconv --from=ISO-8859-1 --to=UTF-8 LANGUAGE.HOWTO > LANGUAGE.HOWTO.new
|
||||||
iconv --from=ISO-8859-1 --to=UTF-8 LANGUAGE.HOWTO > LANGUAGE.HOWTO.tmp
|
touch -r LANGUAGE.HOWTO LANGUAGE.HOWTO.new
|
||||||
touch -r LANGUAGE.HOWTO LANGUAGE.HOWTO.tmp
|
mv LANGUAGE.HOWTO.new LANGUAGE.HOWTO
|
||||||
mv LANGUAGE.HOWTO.tmp LANGUAGE.HOWTO
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
install -d %{_target_platform}
|
install -d %{BuildDir}
|
||||||
pushd %{_target_platform}
|
cd %{BuildDir}
|
||||||
%cmake \
|
%cmake \
|
||||||
-DPYTHON_EXECUTABLE=%{_bindir}/python3 \
|
-DPYTHON_EXECUTABLE=%{_bindir}/python3 \
|
||||||
-Dbuild_xmlparser=ON \
|
|
||||||
%if ! 0%{?_module_build}
|
|
||||||
-Dbuild_doc=ON \
|
|
||||||
-Dbuild_wizard=ON \
|
|
||||||
-Dbuild_search=%{xapian_core_support} \
|
|
||||||
%else
|
|
||||||
-Dbuild_doc=OFF \
|
-Dbuild_doc=OFF \
|
||||||
-Dbuild_wizard=OFF \
|
-Dbuild_wizard=ON \
|
||||||
-Dbuild_search=OFF \
|
-Dbuild_xmlparser=ON \
|
||||||
%endif
|
-Dbuild_search=%{xapian_core_support} \
|
||||||
-DMAN_INSTALL_DIR=%{_mandir}/man1 \
|
-DMAN_INSTALL_DIR=%{_mandir}/man1 \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
||||||
-DBUILD_SHARED_LIBS=OFF \
|
-DBUILD_SHARED_LIBS=OFF \
|
||||||
..
|
..
|
||||||
popd
|
cd -
|
||||||
|
%make_build -C %{BuildDir}
|
||||||
%if ! 0%{?_module_build}
|
|
||||||
make docs %{?_smp_mflags} -C %{_target_platform}
|
|
||||||
%else
|
|
||||||
install -d *-openEuler-linux-gnu/latex
|
|
||||||
touch *-openEuler-linux-gnu/latex/doxygen_manual.pdf
|
|
||||||
%endif
|
|
||||||
%make_build -C %{_target_platform}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install -C %{_target_platform}
|
%make_install -C %{BuildDir}
|
||||||
find %{_target_platform}/html -name struct*.pdf| xargs sed -i 's/<[0-9,A-F]\{32\}>/<011CC110A540190DBC7FD31B2A2E03B4>/g'
|
convert addon/doxywizard/doxywizard.ico doxywizard.png
|
||||||
|
icondir=%{buildroot}%{_datadir}/icons/hicolor
|
||||||
|
install -m755 -d $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 -d %{buildroot}/%{_mandir}/man1
|
install -d %{buildroot}/%{_mandir}/man1
|
||||||
cp doc/*.1 %{buildroot}/%{_mandir}/man1/
|
cp doc/*.1 %{buildroot}/%{_mandir}/man1/
|
||||||
|
%if %{xapian_core_support} == "OFF"
|
||||||
%if ! 0%{?_module_build}
|
rm -f %{buildroot}/%{_mandir}/man1/doxyindexer.1* %{buildroot}/%{_mandir}/man1/doxysearch.1*
|
||||||
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
|
|
||||||
%endif
|
%endif
|
||||||
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
||||||
|
|
||||||
|
%check
|
||||||
|
make tests -C %{BuildDir}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%if ! 0%{?_module_build}
|
|
||||||
%if %{xapian_core_support} == "ON"
|
|
||||||
%{_bindir}/doxyindexer
|
|
||||||
%{_bindir}/doxysearch*
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%{_bindir}/%{name}
|
|
||||||
|
|
||||||
%if ! 0%{?_module_build}
|
|
||||||
%files doxywizard
|
|
||||||
%{_bindir}/doxywizard
|
|
||||||
%{_datadir}/applications/doxywizard.desktop
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if ! 0%{?_module_build}
|
|
||||||
%files latex
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files help
|
|
||||||
%doc LANGUAGE.HOWTO README.md
|
%doc LANGUAGE.HOWTO README.md
|
||||||
%if ! 0%{?_module_build}
|
%license LICENSE
|
||||||
%doc %{_target_platform}/latex/doxygen_manual.pdf
|
%{_bindir}/doxygen
|
||||||
%doc %{_target_platform}/html
|
%{_mandir}/man1/doxygen.1*
|
||||||
|
%if %{xapian_core_support} == "ON"
|
||||||
|
%{_bindir}/{doxyindexer,doxysearch*}
|
||||||
|
%{_mandir}/man1/{doxyindexer.1*,doxysearch.1*}
|
||||||
%endif
|
%endif
|
||||||
%exclude %{_docdir}/packages
|
%exclude %{_docdir}/packages
|
||||||
%{_mandir}/man1/%{name}.1*
|
|
||||||
%if %{xapian_core_support} == "ON"
|
%files doxywizard
|
||||||
%{_mandir}/man1/doxyindexer.1*
|
%{_bindir}/doxywizard
|
||||||
%{_mandir}/man1/doxysearch.1*
|
|
||||||
%else
|
|
||||||
%exclude %{_mandir}/man1/doxyindexer.1*
|
|
||||||
%exclude %{_mandir}/man1/doxysearch.1*
|
|
||||||
%endif
|
|
||||||
%if ! 0%{?_module_build}
|
|
||||||
%{_mandir}/man1/doxywizard*
|
%{_mandir}/man1/doxywizard*
|
||||||
%else
|
%{_datadir}/applications/doxywizard.desktop
|
||||||
%exclude %{_mandir}/man1/doxywizard.1*
|
%{_datadir}/icons/hicolor/*/apps/doxywizard.png
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 2 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 1.8.18-3
|
||||||
|
- Update to 1.8.18
|
||||||
|
|
||||||
* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 1:1.8.14-8
|
* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 1:1.8.14-8
|
||||||
- Package init
|
- Package init
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Doxygen Wizard
|
|
||||||
Exec=doxywizard
|
|
||||||
Type=Application
|
Type=Application
|
||||||
|
Exec=doxywizard
|
||||||
|
Name=Doxygen Wizard
|
||||||
|
Icon=doxywizard
|
||||||
|
Categories=Qt;Development;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user