update to address https://bugzilla.redhat.com/show_bug.cgi?id=1638768#c6
* %{_datarootdir} -> %{_datadir} * %{_libdir}/libfmt.so.5* instead of %{_libdir}/libfmt.so* * use %ldconfig_scriptlets macro instead of calling /sbin/ldconfig * use tar.gz not zip Signed-off-by: Kefu Chai <tchaikov@gmail.com>
This commit is contained in:
parent
591078f81f
commit
44de9b2aba
12
fmt.spec
12
fmt.spec
@ -77,7 +77,7 @@ pushd build
|
|||||||
%endif
|
%endif
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
||||||
-DFMT_CMAKE_DIR=%{_datarootdir}/cmake/%{name} \
|
-DFMT_CMAKE_DIR=%{_datadir}/cmake/%{name} \
|
||||||
-DFMT_LIB_DIR=%{_libdir}
|
-DFMT_LIB_DIR=%{_libdir}
|
||||||
|
|
||||||
# Remove --clean-css since that plugin isn't available
|
# Remove --clean-css since that plugin isn't available
|
||||||
@ -89,13 +89,15 @@ rm -rf ../build/doc/html/{.buildinfo,.doctrees,objects.inv}
|
|||||||
%install
|
%install
|
||||||
%make_install -C build
|
%make_install -C build
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd build
|
pushd build
|
||||||
ctest -VV %{?_smp_mflags}
|
ctest -VV %{?_smp_mflags}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_libdir}/libfmt.so.*
|
%{_libdir}/libfmt.so.5*
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
%doc ChangeLog.rst README.rst
|
%doc ChangeLog.rst README.rst
|
||||||
@ -103,16 +105,12 @@ popd
|
|||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/fmt/
|
%{_includedir}/fmt/
|
||||||
%{_libdir}/libfmt.so
|
%{_libdir}/libfmt.so
|
||||||
%{_datarootdir}/cmake/fmt/
|
%{_datadir}/cmake/fmt/
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc %{_datadir}/doc/fmt/
|
%doc %{_datadir}/doc/fmt/
|
||||||
%license doc/python-license.txt
|
%license doc/python-license.txt
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Oct 11 2018 Kefu Chai <tchaikov@gmail.com> - 5.2.1-1
|
* Thu Oct 11 2018 Kefu Chai <tchaikov@gmail.com> - 5.2.1-1
|
||||||
- Update to 5.2.1
|
- Update to 5.2.1
|
||||||
|
Loading…
Reference in New Issue
Block a user