forked from pool/OpenSubdiv
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 3fa2faaf25 | |||
| f2e21a5009 | |||
| 270d206f66 | |||
| 779a368296 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bebfd61ab6657a4f4ff27845fb66a167d00395783bfbd253254d87447ed1d879
|
||||
size 40746688
|
||||
3
OpenSubdiv-3_6_1.tar.gz
Normal file
3
OpenSubdiv-3_6_1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e9d99a480d80e999667643747c76eb0138d36c418fc154fd71b4bd65be103d52
|
||||
size 40745394
|
||||
@@ -1,3 +1,42 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 2 00:49:26 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
- convert patch to apply with -p1 remove-rpath-fiddling.diff
|
||||
- add no-static.patch:
|
||||
disable all static libraries
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 2 00:25:23 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
- Update to 3.6.1:
|
||||
- Changes
|
||||
- Updated CMake minimum version to 3.14 (GitHub #1349)
|
||||
- Updated documentation regarding external dependencies (GitHub
|
||||
#1346 #1360)
|
||||
- Updated API and example documentation (GitHub #1351 #1362)
|
||||
- Updated build_osd.py visual studio discovery and dependent
|
||||
package versions (GitHub #1333 #1354 #1361)
|
||||
- Updated azure pipelines agents (GitHub #1337 #1342 #1355
|
||||
#1361)
|
||||
- Updated use of OpenCL in example viewers (GitHub #1357)
|
||||
- Addressed Clang 16 compiler warnings (GitHub #1356)
|
||||
- Addressed some address sanitizer build warnings (GitHub
|
||||
#1343)
|
||||
- Added configuration options to build Osd patch shader source
|
||||
independent of other Osd dependencies (GitHub #1359 #1363)
|
||||
- Bug Fixes
|
||||
- Fixed evaluation of surface patches at valence-2 darts
|
||||
(GitHub #1336)
|
||||
- Fixed sharpening of vertices on potential non-manifold
|
||||
creases (GitHub #1338)
|
||||
- Fixed sharing of Bfr::Surface topology with valence-2
|
||||
interior vertices (GitHub #1353)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 15 12:11:18 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Drop BuildRequires: pkgconfig(glew) as it is not used for build.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 22 10:25:17 UTC 2024 - Michael Vetter <mvetter@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#
|
||||
# spec file for package OpenSubdiv
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
# Copyright (c) 2019-2020 LISA GmbH, Bingen, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -17,23 +18,23 @@
|
||||
#
|
||||
|
||||
|
||||
%define pkgver 3_6_0
|
||||
%define pkgver 3_6_1
|
||||
%define libname libosdCPU%{pkgver}
|
||||
Name: OpenSubdiv
|
||||
Version: 3.6.0
|
||||
Version: 3.6.1
|
||||
Release: 0
|
||||
Summary: Subdivision surface evaluation library
|
||||
License: Apache-2.0
|
||||
Group: Productivity/Graphics/Visualization/Raytracers
|
||||
URL: https://graphics.pixar.com/opensubdiv/docs/intro.html
|
||||
Source: https://github.com/PixarAnimationStudios/%{name}/archive/v%{pkgver}.tar.gz#/%{name}-%{pkgver}.tar.gz
|
||||
Source: https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v%{pkgver}.tar.gz#/%{name}-%{pkgver}.tar.gz
|
||||
Patch0: remove-rpath-fiddling.diff
|
||||
Patch1: no-static.patch
|
||||
BuildRequires: cmake >= 2.8.6
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: tbb-devel
|
||||
BuildRequires: pkgconfig(gl)
|
||||
BuildRequires: pkgconfig(glew)
|
||||
BuildRequires: pkgconfig(glfw3)
|
||||
BuildRequires: pkgconfig(glu)
|
||||
BuildRequires: pkgconfig(xcursor)
|
||||
@@ -71,7 +72,7 @@ libraries for %{name}. If you would like to develop programs using %{name},
|
||||
you will need to install %{name}-devel.
|
||||
|
||||
%prep
|
||||
%autosetup -p0 -n %{name}-%{pkgver}
|
||||
%autosetup -p1 -n %{name}-%{pkgver}
|
||||
|
||||
# work around linking glitch
|
||||
sed -i 's/${PLATFORM_GPU_LIBRARIES}/${PLATFORM_GPU_LIBRARIES} ${CMAKE_DL_LIBS}/' opensubdiv/CMakeLists.txt
|
||||
@@ -97,16 +98,12 @@ sseflags='-msse -msse2'
|
||||
-DGLEW_LOCATION=%{_prefix} \
|
||||
-DGLFW_LOCATION=%{_prefix} \
|
||||
-DOpenGL_GL_PREFERENCE=GLVND
|
||||
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
# remove unused build artefact
|
||||
rm %{buildroot}%{_libdir}/*.a
|
||||
|
||||
%post -n %{libname} -p /sbin/ldconfig
|
||||
%postun -n %{libname} -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets -n %{libname}
|
||||
|
||||
%files -n %{libname}
|
||||
%license LICENSE.txt
|
||||
|
||||
125
no-static.patch
Normal file
125
no-static.patch
Normal file
@@ -0,0 +1,125 @@
|
||||
diff --git a/opensubdiv/CMakeLists.txt b/opensubdiv/CMakeLists.txt
|
||||
index eb13cc1d..e72d3475 100644
|
||||
--- a/opensubdiv/CMakeLists.txt
|
||||
+++ b/opensubdiv/CMakeLists.txt
|
||||
@@ -120,63 +120,63 @@ if (NOT NO_LIB)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
- # Build static libs ------------------------------------
|
||||
- add_library(osd_static_cpu
|
||||
- STATIC
|
||||
- version.cpp
|
||||
- $<TARGET_OBJECTS:sdc_obj>
|
||||
- $<TARGET_OBJECTS:vtr_obj>
|
||||
- $<TARGET_OBJECTS:far_obj>
|
||||
- $<TARGET_OBJECTS:bfr_obj>
|
||||
- $<TARGET_OBJECTS:osd_cpu_obj>
|
||||
- )
|
||||
-
|
||||
- set_target_properties(osd_static_cpu
|
||||
- PROPERTIES
|
||||
- OUTPUT_NAME osdCPU
|
||||
- EXPORT_NAME osdCPU_static
|
||||
- CLEAN_DIRECT_OUTPUT 1
|
||||
- FOLDER "opensubdiv"
|
||||
- )
|
||||
-
|
||||
- target_include_directories(osd_static_cpu
|
||||
- INTERFACE
|
||||
- $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
||||
- )
|
||||
-
|
||||
- target_link_libraries(osd_static_cpu
|
||||
- ${PLATFORM_CPU_LIBRARIES}
|
||||
- )
|
||||
-
|
||||
- install( TARGETS osd_static_cpu EXPORT opensubdiv-targets DESTINATION "${CMAKE_LIBDIR_BASE}" )
|
||||
-
|
||||
- if( OSD_GPU )
|
||||
- # this macro uses FindCUDA.cmake to compile .cu kernel files
|
||||
- # the target then adds the other obj dependencies and include files
|
||||
- osd_add_possibly_cuda_library(osd_static_gpu "opensubdiv"
|
||||
- STATIC
|
||||
- version.cpp
|
||||
- $<TARGET_OBJECTS:osd_gpu_obj>
|
||||
- ${OPENGL_LOADER_OBJS}
|
||||
- ${CUDA_KERNEL_FILES}
|
||||
- )
|
||||
- set_target_properties(osd_static_gpu
|
||||
- PROPERTIES
|
||||
- OUTPUT_NAME osdGPU
|
||||
- EXPORT_NAME osdGPU_static
|
||||
- CLEAN_DIRECT_OUTPUT 1)
|
||||
-
|
||||
- target_include_directories(osd_static_gpu
|
||||
- INTERFACE
|
||||
- $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
||||
- )
|
||||
-
|
||||
- target_link_libraries(osd_static_gpu
|
||||
- ${PLATFORM_CPU_LIBRARIES} ${PLATFORM_GPU_LIBRARIES}
|
||||
- )
|
||||
-
|
||||
- install( TARGETS osd_static_gpu EXPORT opensubdiv-targets DESTINATION "${CMAKE_LIBDIR_BASE}" )
|
||||
- endif()
|
||||
+ # # Build static libs ------------------------------------
|
||||
+ # add_library(osd_static_cpu
|
||||
+ # STATIC
|
||||
+ # version.cpp
|
||||
+ # $<TARGET_OBJECTS:sdc_obj>
|
||||
+ # $<TARGET_OBJECTS:vtr_obj>
|
||||
+ # $<TARGET_OBJECTS:far_obj>
|
||||
+ # $<TARGET_OBJECTS:bfr_obj>
|
||||
+ # $<TARGET_OBJECTS:osd_cpu_obj>
|
||||
+ # )
|
||||
+ #
|
||||
+ # set_target_properties(osd_static_cpu
|
||||
+ # PROPERTIES
|
||||
+ # OUTPUT_NAME osdCPU
|
||||
+ # EXPORT_NAME osdCPU_static
|
||||
+ # CLEAN_DIRECT_OUTPUT 1
|
||||
+ # FOLDER "opensubdiv"
|
||||
+ # )
|
||||
+ #
|
||||
+ # target_include_directories(osd_static_cpu
|
||||
+ # INTERFACE
|
||||
+ # $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
||||
+ # )
|
||||
+ #
|
||||
+ # target_link_libraries(osd_static_cpu
|
||||
+ # ${PLATFORM_CPU_LIBRARIES}
|
||||
+ # )
|
||||
+ #
|
||||
+ # install( TARGETS osd_static_cpu EXPORT opensubdiv-targets DESTINATION "${CMAKE_LIBDIR_BASE}" )
|
||||
+
|
||||
+ # if( OSD_GPU )
|
||||
+ # # this macro uses FindCUDA.cmake to compile .cu kernel files
|
||||
+ # # the target then adds the other obj dependencies and include files
|
||||
+ # osd_add_possibly_cuda_library(osd_static_gpu "opensubdiv"
|
||||
+ # STATIC
|
||||
+ # version.cpp
|
||||
+ # $<TARGET_OBJECTS:osd_gpu_obj>
|
||||
+ # ${OPENGL_LOADER_OBJS}
|
||||
+ # ${CUDA_KERNEL_FILES}
|
||||
+ # )
|
||||
+ # set_target_properties(osd_static_gpu
|
||||
+ # PROPERTIES
|
||||
+ # OUTPUT_NAME osdGPU
|
||||
+ # EXPORT_NAME osdGPU_static
|
||||
+ # CLEAN_DIRECT_OUTPUT 1)
|
||||
+ #
|
||||
+ # target_include_directories(osd_static_gpu
|
||||
+ # INTERFACE
|
||||
+ # $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
||||
+ # )
|
||||
+ #
|
||||
+ # target_link_libraries(osd_static_gpu
|
||||
+ # ${PLATFORM_CPU_LIBRARIES} ${PLATFORM_GPU_LIBRARIES}
|
||||
+ # )
|
||||
+ #
|
||||
+ # install( TARGETS osd_static_gpu EXPORT opensubdiv-targets DESTINATION "${CMAKE_LIBDIR_BASE}" )
|
||||
+ # endif()
|
||||
|
||||
|
||||
# Build dynamic libs ----------------------------------
|
||||
@@ -1,5 +1,5 @@
|
||||
--- CMakeLists.txt.orig 2020-07-06 14:18:27.124647948 +0000
|
||||
+++ CMakeLists.txt 2020-07-06 15:59:37.934312924 +0000
|
||||
--- a/CMakeLists.txt.orig 2020-07-06 14:18:27.124647948 +0000
|
||||
+++ b/CMakeLists.txt 2020-07-06 15:59:37.934312924 +0000
|
||||
@@ -132,18 +132,6 @@
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user