Drop the -doc subpackage due to Doxygen guidelines issues

Doxygen-generated HTML documentation is not suitable for packaging; see
https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
This commit is contained in:
Benjamin A. Beasley 2023-11-10 08:40:12 -05:00 committed by luya
parent 3fc4edacfb
commit 49dca20038

View File

@ -3,7 +3,6 @@
%global upstream_version 3_5_0
#%%global prerelease RC1
%global documentation 1
Name: opensubdiv
Version: 3.5.0
@ -27,11 +26,6 @@ Patch: %{name}-rpath.patch
Patch: opensubdiv-3.5.0-reproducible-docs.patch
BuildRequires: cmake
%if 0%{?documentation}
BuildRequires: doxygen
BuildRequires: python3dist(docutils)
BuildRequires: uglify-js
%endif
BuildRequires: gcc-c++
BuildRequires: graphviz-devel
BuildRequires: pkgconfig(glew)
@ -44,6 +38,9 @@ BuildRequires: pkgconfig(zlib)
BuildRequires: python3dist(pygments)
# Drop libs subpackage
Obsoletes: %{name}-libs < %{version}-%{release}
# Doxygen-generated HTML documentation is not suitable for packaging; see
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
Obsoletes: %{name}-doc < 3.5.0-10
%description
OpenSubdiv is a set of open source libraries that implement high performance
@ -60,24 +57,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%if 0%{?documentation}
%package doc
Summary: High performance subdivision surface libraries
BuildArch: noarch
Provides: bundled(js-tipuesearch)
%description doc
OpenSubdiv is a set of open source libraries that implement high
performance subdivision surface (subdiv) evaluation on massively
parallel CPU and GPU architectures.
This code path is optimized for
drawing deforming surfaces with static topology at interactive
frame rates.
This package includes the documentation of OpenSubdiv.
%endif
%prep
%autosetup -p1 -n OpenSubdiv-%{upstream_version}%{?prerelease}
@ -86,15 +65,9 @@ This package includes the documentation of OpenSubdiv.
sed -i 's|${PLATFORM_GPU_LIBRARIES}|${PLATFORM_GPU_LIBRARIES} ${CMAKE_DL_LIBS}|' opensubdiv/CMakeLists.txt
# https://docs.fedoraproject.org/en-US/packaging-guidelines/JavaScript/#_compilationminification
rm -vf documentation/tipuesearch/tipuesearch.min.js
%build
%if 0%{?documentation}
# https://docs.fedoraproject.org/en-US/packaging-guidelines/JavaScript/#_compilationminification
uglifyjs documentation/tipuesearch/tipuesearch.js \
--compress --output documentation/tipuesearch/tipuesearch.min.js
%endif
find . -type f -name '*.min.js' -print -delete
%build
%cmake \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_LIBDIR_BASE=%{_libdir} \
@ -102,11 +75,7 @@ uglifyjs documentation/tipuesearch/tipuesearch.js \
-DGLFW_LOCATION=%{_libdir} \
-DNO_CLEW=1 \
-DNO_CUDA=1 \
%if 0%{?documentation}
-DNO_DOC=0 \
%else
-DNO_DOC=1\
%endif
-DNO_EXAMPLES=1 \
-DNO_GLFW_X11=1 \
-DNO_OPENCL=1 \
@ -140,11 +109,5 @@ find %{buildroot} -name '*.a' -delete
%{_libdir}/*.so
%{_libdir}/cmake/OpenSubdiv/
%if 0%{?documentation}
%files doc
%license LICENSE.txt
%{_docdir}/%{name}/
%endif
%changelog
%autochangelog