Update to 7.1.0

Adhere to https://docs.fedoraproject.org/en-US/packaging-guidelines/CMake/
This commit is contained in:
Luya Tshimbalanga 2020-08-14 01:13:31 -07:00
parent 6db09dbccc
commit d2cc020b20
No known key found for this signature in database
GPG Key ID: 5E528174D8A2609A
3 changed files with 15 additions and 12 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@
/openvdb-6.1.0.tar.gz
/openvdb-6.2.0.tar.gz
/openvdb-7.0.0.tar.gz
/openvdb-7.1.0.tar.gz

View File

@ -1,9 +1,12 @@
# Force out of source build
%undefine __cmake_in_source_build
# Set to 1 to enable testsuite. Fails everywhere with GCC 8+.
%global with_tests 0
Name: openvdb
Version: 7.0.0
Release: 9%{?dist}
Version: 7.1.0
Release: 1%{?dist}
Summary: C++ library for sparse volumetric data discretized on three-dimensional grids
License: MPLv2.0
URL: http://www.openvdb.org/
@ -95,10 +98,8 @@ sed -i \
-e 's|lib$|%{_lib}|g' \
%{name}/CMakeLists.txt %{name}/python/CMakeLists.txt
mkdir build
%build
pushd build
export CXXFLAGS="%{optflags} -Wl,--as-needed"
# Ignore versions (python 3, etc.)
%cmake \
@ -115,19 +116,16 @@ export CXXFLAGS="%{optflags} -Wl,--as-needed"
-DOPENVDB_ENABLE_RPATH=OFF \
-DOPENVDB_INSTALL_CMAKE_MODULES=OFF \
-DPYOPENVDB_INSTALL_DIRECTORY=%{python3_sitearch} \
..
%make_build
popd
.
%cmake_build
%if 0%{?with_tests}
%check
%make test
%ctest test
%endif
%install
pushd build
%make_install
popd
%cmake_install
# Let RPM pick up HTML documents in the files section
mv %{buildroot}%{_prefix}/doc/html .
@ -154,6 +152,10 @@ find %{buildroot} -name '*.a' -delete
%{_libdir}/*.so
%changelog
* Fri Aug 14 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 7.1.0-1
- Update to 7.1.0
- Adhere to https://docs.fedoraproject.org/en-US/packaging-guidelines/CMake/
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.0-9
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (openvdb-7.0.0.tar.gz) = f5321b22b10e192012d544cc02921d3d52f621778ec5aa21ba6d450f3e29f2fdbd76486ad390a0c008394dbc6ee4aeecc04527ef30e73adf71c1a08a021746b7
SHA512 (openvdb-7.1.0.tar.gz) = 49806375f7e6d7b12eaba24e672a068531d2f8a05f12eba29069710d2682f9983f9e6ad26047eed4b28e337f8d0e738b90130582863c710e8dd1e720bf0addad