From 80ae7e2e310b62304774360f22ea0b6a4b3e6da7 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Mon, 2 Aug 2021 13:54:38 -0400 Subject: [PATCH] Clean up gtkdoc build conditional --- libinstpatch.spec | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/libinstpatch.spec b/libinstpatch.spec index 9eeae12..ded3273 100644 --- a/libinstpatch.spec +++ b/libinstpatch.spec @@ -86,6 +86,7 @@ The %{name}-devel package contains libraries and header files for developing applications that use %{name}. +%if %{with gtkdoc} %package doc Summary: Documentation and examples for %{name} BuildArch: noarch @@ -93,6 +94,7 @@ BuildArch: noarch %description doc The %{name}-doc package contains documentation and examples for %{name}. +%endif %prep @@ -116,21 +118,37 @@ find examples -type f -name '*.py' -print -delete %files %license COPYING +%if %{without gtkdoc} %doc ABOUT-NLS %doc AUTHORS %doc ChangeLog %doc README.md %doc TODO.tasks +%endif %{_libdir}/%{name}-%{api_version}.so.%{so_version} %{_libdir}/%{name}-%{api_version}.so.%{so_version}.* %files devel +%if %{without gtkdoc} %doc examples +%endif %{_includedir}/%{name}-%{so_version} %{_libdir}/%{name}-%{api_version}.so %{_libdir}/pkgconfig/%{name}-%{api_version}.pc +%if %{with gtkdoc} +%files doc +%license COPYING +%doc ABOUT-NLS +%doc AUTHORS +%doc ChangeLog +%doc README.md +%doc TODO.tasks +%doc examples +# TODO: built gtkdoc documentation +%endif + %changelog %autochangelog