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