diff --git a/apiextractor.spec b/apiextractor.spec index 89db3f9..e089afa 100644 --- a/apiextractor.spec +++ b/apiextractor.spec @@ -14,7 +14,7 @@ Patch0: apiextractor-0.10.10-remove-sphinx-refcounting.patch BuildRequires: cmake gcc-c++ BuildRequires: libxml2-devel BuildRequires: libxslt-devel -BuildRequires: python-sphinx +BuildRequires: python2-sphinx BuildRequires: qt4-devel %description @@ -36,21 +36,20 @@ developing applications that use %{name}. %prep -%setup -q - -%patch0 -p1 -b .remove-sphinx-refcounting +%autosetup -p1 %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake} .. -popd -make %{?_smp_mflags} -C %{_target_platform} +%make_build # Build html docs -make %{?_smp_mflags} -C %{_target_platform} doc +%make_build doc + +popd rm -f %{_target_platform}/doc/html/_static/images/._* rm -f %{_target_platform}/doc/html/.buildinfo rm -f %{_target_platform}/doc/html/objects.inv @@ -58,18 +57,27 @@ rm -rf %{_target_platform}/doc/html/.doctrees %install -make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} +pushd %{_target_platform} +%make_install +%if 0%{?fedora} >= 30 +# Skip testing due to bug in qt which took advantage of a bug in gcc. +# https://bugzilla.redhat.com/show_bug.cgi?id=1676291 +# Disable when qt is rebuilt. +%else %check -make test -C %{_target_platform} +pushd %{_target_platform} +make test +%endif %ldconfig_scriptlets %files -%doc AUTHORS ChangeLog COPYING +%doc AUTHORS ChangeLog +%license COPYING %{_libdir}/libapiextractor.so.* %files devel