From 71a26c5b5de84d0cc2704918de87df94c1469e3d Mon Sep 17 00:00:00 2001 From: happy_orange Date: Thu, 20 Oct 2022 03:06:17 -0400 Subject: [PATCH] add doc package and add api. --- libreport.spec | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/libreport.spec b/libreport.spec index c0ab6db..bc44c51 100644 --- a/libreport.spec +++ b/libreport.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %bcond_with bugzilla %define dbus_devel dbus-devel @@ -206,6 +206,15 @@ Default configuration for reporting Anaconda problems or uploading the gathered data over ftp/scp... %endif +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + + %prep %autosetup -p1 @@ -249,6 +258,9 @@ mkdir -p %{buildroot}/%{_datadir}/%{name}/workflows/ # After everything is installed, remove info dir rm -f %{buildroot}/%{_infodir}/dir +# use the %doc README +rm -f %{buildroot}/%{_datadir}/doc/libreport/README.md + # Remove unwanted Fedora specific workflow configuration files rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_FedoraCCpp.xml rm -f %{buildroot}/%{_datadir}/libreport/workflows/workflow_FedoraKerneloops.xml @@ -306,6 +318,8 @@ rm -f %{buildroot}%{_mandir}/man5/centos_report_event.conf.5 rm -f %{buildroot}%{_mandir}/man5/anaconda_event.conf.5 %endif +%generate_compatibility_deps + %check make check|| { # find and print the logs of failed test @@ -318,8 +332,8 @@ make check|| { %ldconfig_scriptlets web %files -f %{name}.lang -%doc README.md %license COPYING +%dir %{abidir} %config(noreplace) %{_sysconfdir}/%{name}/libreport.conf %config(noreplace) %{_sysconfdir}/%{name}/report_event.conf %config(noreplace) %{_sysconfdir}/%{name}/forbidden_words.conf @@ -327,6 +341,7 @@ make check|| { %config(noreplace) %{_sysconfdir}/%{name}/ignored_elements.conf %{_datadir}/%{name}/conf.d/libreport.conf %{_libdir}/libreport.so.* +%{abidir}/libreport.dump %{_mandir}/man5/libreport.conf.5* %{_mandir}/man5/report_event.conf.5* %{_mandir}/man5/forbidden_words.conf.5* @@ -378,6 +393,7 @@ make check|| { %files web %{_libdir}/libreport-web.so.* +%{abidir}/libreport-web.dump %files web-devel %{_libdir}/libreport-web.so @@ -387,18 +403,24 @@ make check|| { %files -n python3-libreport %{python3_sitearch}/report/ %{python3_sitearch}/reportclient/ +%{abidir}/_py3report.dump +%{abidir}/_reportclient3.dump %files cli %{_bindir}/report-cli +%{abidir}/report-cli-option.list %{_mandir}/man1/report-cli.1.gz %files newt %{_bindir}/report-newt +%{abidir}/report-newt-option.list %{_mandir}/man1/report-newt.1.gz %files gtk %{_bindir}/report-gtk %{_libdir}/libreport-gtk.so.* +%{abidir}/report-gtk-option.list +%{abidir}/libreport-gtk.dump %{_mandir}/man1/report-gtk.1.gz %files gtk-devel @@ -410,6 +432,7 @@ make check|| { %{_datadir}/%{name}/events/report_Kerneloops.xml %{_mandir}/man*/reporter-kerneloops.* %{_bindir}/reporter-kerneloops +%{abidir}/reporter-kerneloops-option.list %files plugin-logger %config(noreplace) %{_sysconfdir}/libreport/events/report_Logger.conf @@ -423,9 +446,11 @@ make check|| { %{_mandir}/man5/report_logger.conf.5.* %{_bindir}/reporter-print %{_mandir}/man*/reporter-print.* +%{abidir}/reporter-print-option.list %files plugin-systemd-journal %{_bindir}/reporter-systemd-journal +%{abidir}/reporter-systemd-journal-option.list %{_mandir}/man*/reporter-systemd-journal.* %files plugin-mailx @@ -441,11 +466,13 @@ make check|| { %{_mandir}/man5/report_mailx.conf.5.* %{_mandir}/man*/reporter-mailx.* %{_bindir}/reporter-mailx +%{abidir}/reporter-mailx-option.list %files plugin-ureport %config(noreplace) %{_sysconfdir}/libreport/plugins/ureport.conf %{_datadir}/%{name}/conf.d/plugins/ureport.conf %{_bindir}/reporter-ureport +%{abidir}/reporter-ureport-option.list %{_mandir}/man1/reporter-ureport.1.gz %{_mandir}/man5/ureport.conf.5.gz %{_datadir}/%{name}/events/report_uReport.xml @@ -477,6 +504,7 @@ make check|| { %{_mandir}/man5/bugzilla_formatdup_analyzer_libreport.conf.5.* %{_mandir}/man5/bugzilla_format_kernel.conf.5.* %{_bindir}/reporter-bugzilla +%{abidir}/reporter-bugzilla-option.list %endif %files plugin-mantisbt @@ -487,6 +515,7 @@ make check|| { %config(noreplace) %{_sysconfdir}/libreport/plugins/mantisbt_format_analyzer_libreport.conf %config(noreplace) %{_sysconfdir}/libreport/plugins/mantisbt_formatdup_analyzer_libreport.conf %{_bindir}/reporter-mantisbt +%{abidir}/reporter-mantisbt-option.list %{_mandir}/man1/reporter-mantisbt.1.gz %{_mandir}/man5/mantisbt.conf.5.* %{_mandir}/man5/mantisbt_format.conf.5.* @@ -498,6 +527,7 @@ make check|| { %{_mandir}/man*/reporter-upload.* %{_mandir}/man5/uploader_event.conf.5.* %{_bindir}/reporter-upload +%{abidir}/reporter-upload-option.list %{_datadir}/%{name}/events/report_Uploader.xml %config(noreplace) %{_sysconfdir}/libreport/events.d/uploader_event.conf %{_datadir}/%{name}/workflows/workflow_Upload.xml @@ -523,6 +553,12 @@ make check|| { %{_mandir}/man5/bugzilla_formatdup_anaconda.conf.5.* %endif +%files doc +%doc README.md HACKING.md INSTALL CHANGELOG.md + %changelog +* Thu Oct 20 2022 happy_orange - 2.17.1-2 +- add doc package and add api. + * Mon May 16 2022 Chunmei Xu - 2.17.1-1 - init from upstream -- Gitee