Clean up gtkdoc build conditional

epel9
Benjamin A. Beasley 4 years ago
parent 30a5f1abf7
commit 80ae7e2e31

@ -86,6 +86,7 @@ The %{name}-devel package contains libraries and header files for
developing applications that use %{name}. developing applications that use %{name}.
%if %{with gtkdoc}
%package doc %package doc
Summary: Documentation and examples for %{name} Summary: Documentation and examples for %{name}
BuildArch: noarch BuildArch: noarch
@ -93,6 +94,7 @@ BuildArch: noarch
%description doc %description doc
The %{name}-doc package contains documentation and examples for The %{name}-doc package contains documentation and examples for
%{name}. %{name}.
%endif
%prep %prep
@ -116,21 +118,37 @@ find examples -type f -name '*.py' -print -delete
%files %files
%license COPYING %license COPYING
%if %{without gtkdoc}
%doc ABOUT-NLS %doc ABOUT-NLS
%doc AUTHORS %doc AUTHORS
%doc ChangeLog %doc ChangeLog
%doc README.md %doc README.md
%doc TODO.tasks %doc TODO.tasks
%endif
%{_libdir}/%{name}-%{api_version}.so.%{so_version} %{_libdir}/%{name}-%{api_version}.so.%{so_version}
%{_libdir}/%{name}-%{api_version}.so.%{so_version}.* %{_libdir}/%{name}-%{api_version}.so.%{so_version}.*
%files devel %files devel
%if %{without gtkdoc}
%doc examples %doc examples
%endif
%{_includedir}/%{name}-%{so_version} %{_includedir}/%{name}-%{so_version}
%{_libdir}/%{name}-%{api_version}.so %{_libdir}/%{name}-%{api_version}.so
%{_libdir}/pkgconfig/%{name}-%{api_version}.pc %{_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 %changelog
%autochangelog %autochangelog

Loading…
Cancel
Save