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
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
||||
-DFMT_CMAKE_DIR=%{_datarootdir}/cmake/%{name} \
|
||||
-DFMT_CMAKE_DIR=%{_datadir}/cmake/%{name} \
|
||||
-DFMT_LIB_DIR=%{_libdir}
|
||||
|
||||
# Remove --clean-css since that plugin isn't available
|
||||
@ -89,13 +89,15 @@ rm -rf ../build/doc/html/{.buildinfo,.doctrees,objects.inv}
|
||||
%install
|
||||
%make_install -C build
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%check
|
||||
pushd build
|
||||
ctest -VV %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
%files
|
||||
%{_libdir}/libfmt.so.*
|
||||
%{_libdir}/libfmt.so.5*
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license LICENSE.rst
|
||||
%doc ChangeLog.rst README.rst
|
||||
@ -103,16 +105,12 @@ popd
|
||||
%files devel
|
||||
%{_includedir}/fmt/
|
||||
%{_libdir}/libfmt.so
|
||||
%{_datarootdir}/cmake/fmt/
|
||||
%{_datadir}/cmake/fmt/
|
||||
|
||||
%files doc
|
||||
%doc %{_datadir}/doc/fmt/
|
||||
%license doc/python-license.txt
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%changelog
|
||||
* Thu Oct 11 2018 Kefu Chai <tchaikov@gmail.com> - 5.2.1-1
|
||||
- Update to 5.2.1
|
||||
|
Loading…
Reference in New Issue
Block a user