doxygen/doxygen.spec

161 lines
5.2 KiB
RPMSpec
Raw Normal View History

2022-10-21 09:23:01 +08:00
%global xapian_core_support "ON"
%global BuildDir "Out"
%global clang_support OFF
2020-06-03 17:23:19 +08:00
Name: doxygen
Epoch: 1
2022-10-21 09:23:01 +08:00
Version: 1.9.3
2022-11-10 11:22:55 +08:00
Release: 2
2020-06-03 17:23:19 +08:00
Summary: A documentation system for C/C++
License: GPL+
2022-10-21 09:23:01 +08:00
Url: https://www.doxygen.nl
2022-11-10 11:22:55 +08:00
Source0: https://udomain.dl.sourceforge.net/project/doxygen/rel-%{version}/%{name}-%{version}.src.tar.gz
2020-06-03 17:23:19 +08:00
Source1: doxywizard.desktop
2022-10-21 09:23:01 +08:00
Source2: doxywizard-icons.tar.xz
Patch0: %{name}-modify_footer.patch
Patch1: %{name}-no-lowercase-man-names.patch
Patch2: doxygen-no-libclang-cpp.patch
Patch3: RTFGenerator-should-exit-with-0-when-gengrate-file-s.patch
2020-06-03 17:23:19 +08:00
BuildRequires: python3 ImageMagick gcc-c++ gcc perl-interpreter
2022-10-21 09:23:01 +08:00
BuildRequires: python3-libxml2 texlive-bibtex
BuildRequires: desktop-file-utils graphviz flex bison cmake
%if %{xapian_core_support} == "ON"
2020-06-03 17:23:19 +08:00
BuildRequires: xapian-core-devel zlib-devel
2019-12-17 10:42:29 +08:00
%endif
2022-10-21 09:23:01 +08:00
%if "x%{?clang_support}" == "xON"
BuildRequires: llvm-devel
BuildRequires: clang-devel
%endif
2021-12-28 16:56:53 +08:00
Requires: perl-interpreter
2022-10-21 09:23:01 +08:00
Requires: graphviz
2019-12-17 10:42:29 +08:00
%description
Doxygen is the de facto standard tool for generating documentation from
annotated C++ sources, but it also supports other popular programming
languages such as C, Objective-C, C#, PHP, Java, Python, IDL (Corba,
Microsoft, and UNO/OpenOffice flavors), Fortran, VHDL, Tcl, and to some
extent D.
%package doxywizard
2020-06-03 17:23:19 +08:00
Summary: A GUI for creating and editing configuration files
Requires: %{name} = %{epoch}:%{version}-%{release}
BuildRequires: qt5-qtbase-devel
2019-12-17 10:42:29 +08:00
%description doxywizard
Doxywizard is a graphical front-end to read/edit/write doxygen
configuration files.
%package_help
2019-12-17 10:42:29 +08:00
%prep
%autosetup -p1
2020-06-03 17:23:19 +08:00
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
2019-12-17 10:42:29 +08:00
%build
2020-06-03 17:23:19 +08:00
install -d %{BuildDir}
cd %{BuildDir}
2019-12-17 10:42:29 +08:00
%cmake \
2020-06-03 17:23:19 +08:00
-Dbuild_doc=OFF \
2019-12-17 10:42:29 +08:00
-Dbuild_wizard=ON \
2020-06-03 17:23:19 +08:00
-Dbuild_xmlparser=ON \
2019-12-17 10:42:29 +08:00
-Dbuild_search=%{xapian_core_support} \
-DMAN_INSTALL_DIR=%{_mandir}/man1 \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DBUILD_SHARED_LIBS=OFF \
2022-10-21 09:23:01 +08:00
-Duse_libclang=%{clang_support} \
2019-12-17 10:42:29 +08:00
..
2020-06-03 17:23:19 +08:00
cd -
%make_build -C %{BuildDir}
2019-12-17 10:42:29 +08:00
%install
2020-06-03 17:23:19 +08:00
%make_install -C %{BuildDir}
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
2019-12-17 10:42:29 +08:00
install -d %{buildroot}/%{_mandir}/man1
cp doc/*.1 %{buildroot}/%{_mandir}/man1/
2022-10-21 09:23:01 +08:00
%if %{xapian_core_support} == "OFF"
2020-06-03 17:23:19 +08:00
rm -f %{buildroot}/%{_mandir}/man1/doxyindexer.1* %{buildroot}/%{_mandir}/man1/doxysearch.1*
2019-12-17 10:42:29 +08:00
%endif
2020-06-03 17:23:19 +08:00
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
%check
make tests -C %{BuildDir}
2019-12-17 10:42:29 +08:00
%files
2020-06-03 17:23:19 +08:00
%license LICENSE
%{_bindir}/doxygen
2022-10-21 09:23:01 +08:00
%if %{xapian_core_support} == "ON"
2020-06-03 17:23:19 +08:00
%{_bindir}/{doxyindexer,doxysearch*}
2019-12-17 10:42:29 +08:00
%endif
%files doxywizard
%{_bindir}/doxywizard
%{_mandir}/man1/doxywizard*
2020-06-03 17:23:19 +08:00
%{_datadir}/applications/doxywizard.desktop
%{_datadir}/icons/hicolor/*/apps/doxywizard.png
2019-12-17 10:42:29 +08:00
%files help
%doc LANGUAGE.HOWTO README.md
%exclude %{_docdir}/packages
%{_mandir}/man1/doxygen.1*
2022-10-21 09:23:01 +08:00
%if %{xapian_core_support} == "ON"
%{_mandir}/man1/{doxyindexer.1*,doxysearch.1*}
%endif
2019-12-17 10:42:29 +08:00
%changelog
2022-11-10 11:22:55 +08:00
* Thu Nov 10 2022 liyanan <liyanan32@h-partners.com> - 1:1.9.3-2
- Change source
2022-10-21 09:23:01 +08:00
* Fri Oct 21 2022 yaoxin <yaoxin30@h-parters.com> - 1:1.9.3-1
- Update to 1.9.3-1
* Sat Mar 12 2022 zoulin<zoulin13@h-partners.com> - 1.9.2-4
- detach the sub package doxygen-help from doxygen;
- disable xapian_core_support
2021-12-31 16:04:44 +08:00
* Tue Dec 31 2021 zoulin<zoulin13@huawei.com> - 1.9.2-3
- Fix bare words are no longer supported
2021-12-28 16:56:53 +08:00
* Tue Dec 28 2021 zoulin<zoulin13@huawei.com> - 1.9.2-2
- Removeing the "graphviz" dependency
2021-12-01 15:22:31 +08:00
* Wed Dec 1 2021 zoulin<zoulin13@huawei.com> - 1.9.2-1
- update version to 1.9.2
* Fri Jun 4 2021 wangchen<wangchen137@huawei.com> - 1.8.18-9
- Fix md5 hash does not match for two different runs
* Tue May 11 2021 wangchen<wangchen137@huawei.com> - 1.8.18-8
- RTFGenerator should exit with 0 when gengrate file success
* Tue Jan 05 2020 shixuantong<shixuantong@huawei.com> - 1.8.18-7
- fix incorrect label in map of dot files in xhtml
2020-12-10 10:58:52 +08:00
* Thu Dec 10 2020 shixuantong<shixuantong@huawei.com> - 1.8.18-6
- Modify Source0
* 20201016023007641729 patch-tracking 1.8.18-5
- append patch file of upstream repository from <ef6cc2b1b3b70fba03e994e7a61926c8e2958867> to <ef6cc2b1b3b70fba03e994e7a61926c8e2958867>
2020-09-17 11:45:48 +08:00
* Fri Sep 11 2020 baizhonggui <baizhonggui@huawei.com> - 1.8.18-4
- Modify Source0
2020-06-03 17:23:19 +08:00
* Tue Jun 2 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 1.8.18-3
- Update to 1.8.18
2019-12-17 10:42:29 +08:00
* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 1:1.8.14-8
- Package init
* Mon May 6 2019 fanmenggang <fanmenggang@huawei.com> - 1:1.8.14-7.h1
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Eliminate PDF file Differences