Compare commits

...

30 Commits
f31 ... rawhide

Author SHA1 Message Date
Fedora Release Engineering
841934a102 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 21:02:11 +00:00
Luya Tshimbalanga
5fcdd67ad8 Update to 3.6.0 2024-04-13 17:07:04 -07:00
Benjamin A. Beasley
49dca20038 Drop the -doc subpackage due to Doxygen guidelines issues
Doxygen-generated HTML documentation is not suitable for packaging; see
https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
2024-01-26 01:52:14 +00:00
Benjamin A. Beasley
3fc4edacfb Add missing license file in -doc subpackage 2024-01-26 01:52:14 +00:00
Benjamin A. Beasley
3d031ab91e Better handle bundled and pre-minified tipuesearch JS 2024-01-26 01:52:14 +00:00
Benjamin A. Beasley
c188b58b8c Correct license to Pixar AND MIT
https://gitlab.com/fedora/legal/fedora-license-data/-/issues/304
https://github.com/spdx/license-list-XML/issues/2225
https://github.com/spdx/license-list-XML/pull/2247
2024-01-26 01:52:14 +00:00
Fedora Release Engineering
e819cd9d0d Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 11:31:34 +00:00
Fedora Release Engineering
37b280f493 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 11:23:50 +00:00
Jonathan Wakely
f881919dac Build against tbb2020.3 instead of tbb 2024-01-17 22:54:22 +00:00
Jonathan Wakely
30f7d4bb22 Rebuilt for Boost 1.83 2024-01-17 22:39:48 +00:00
Fedora Release Engineering
79941cd886 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 18:13:46 +00:00
Fedora Release Engineering
3eccbd7560 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 22:59:30 +00:00
Todd Zullinger
729861a46f make doxygen generated files consistent across builds/arches
Adjust the Doxygen configuration to avoid creating output which differs
needlessly across different builds and architectures.

Re-enable the doc subpackage by default.
2023-01-03 07:14:37 +00:00
Luya Tshimbalanga
2bc0d2583c Drop libs subpackage and move version .so to core 2023-01-02 19:13:59 -08:00
Luya Tshimbalanga
57594f43a6 Disable doc subpackage due to strange failure 2023-01-02 15:25:25 -08:00
Luya Tshimbalanga
819b164bd0 Update to 3.5.0
This update also convert license to SPDX standard
2023-01-02 13:23:16 -08:00
Luya Tshimbalanga
b923fc7108 Convert to rpmautospec 2023-01-02 11:55:03 -08:00
Fedora Release Engineering
2b679d04eb Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 02:16:24 +00:00
Fedora Release Engineering
649bde6fdc - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 22:30:40 +00:00
Fedora Release Engineering
09f2949982 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 17:21:54 +00:00
Luya Tshimbalanga
0bda181f1b
Update to 3.4.4
Rebuild for ptex 2.4.0
2021-05-19 23:34:31 -07:00
Luya Tshimbalanga
082d628026 Update to 3.4.4 RC1
Enable ptex support
2021-02-06 22:22:08 -08:00
Fedora Release Engineering
e6c0c2dd9f - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 22:37:14 +00:00
Luya Tshimbalanga
eb94b753c3
Enable Ptex 2021-01-24 12:32:05 -08:00
Tom Stellard
49abdf3a4e Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-07 06:40:26 +00:00
Luya Tshimbalanga
4e9b194158 Update to 3.4.3
Port Mageia patch for building with Python 3 dependency
Add doc subpackage
Disable OpenCL due to upstream bug
2020-09-23 21:39:27 -07:00
Fedora Release Engineering
02d4d246e0 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 06:54:17 +00:00
Fedora Release Engineering
4d7bca966b - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 12:49:47 +00:00
Fedora Release Engineering
4f35b3b8eb - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-29 20:26:08 +00:00
Luya Tshimbalanga
6aa12327e4
Initial import (#1762155) 2019-11-02 13:18:03 -07:00
6 changed files with 214 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
/opensubdiv-3.4.0.tar.gz
/opensubdiv-3.4.3.tar.gz
/opensubdiv-3.4.4.RC1.tar.gz
/opensubdiv-3.4.4.tar.gz
/opensubdiv-3.5.0.tar.gz
/opensubdiv-3.6.0.tar.gz

43
changelog Normal file
View File

@ -0,0 +1,43 @@
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed May 19 2021 Luya Tshimbalanga <luya@fedoraproject.org> - 3.4.4-1
- Update to 3.4.4
- Rebuild for ptex 2.4.0
* Fri Feb 05 2021 Luya Tshimbalanga <luya@fedoraproject.org> - 3.4.4-0.1.RC1
- Update to 3.4.4 RC1
- Enable ptex support
* Mon Sep 21 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 3.4.3-1
- Update to 3.4.3
- Port Mageia patch for building with Python 3 dependency
- Add doc subpackage
- Disable OpenCL due to upstream bug
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-6
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Oct 14 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 3.4.0-3
- Remove rpath
- Remove unneeded ldconfig_scriptlets macro
- Improve spec file upon review (rhbz #1762155)
* Mon Oct 14 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 3.4.0-2
- Adjust maximum line limit on description
* Mon Oct 14 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 3.4.0-1
- Initial package

View File

@ -0,0 +1,30 @@
diff -up OpenSubdiv-3_5_0/documentation/OpenSubdiv.doxy.reproducible OpenSubdiv-3_5_0/documentation/OpenSubdiv.doxy
--- OpenSubdiv-3_5_0/documentation/OpenSubdiv.doxy.reproducible 2022-09-26 14:17:44.000000000 -0400
+++ OpenSubdiv-3_5_0/documentation/OpenSubdiv.doxy 2023-01-02 19:24:18.827692805 -0500
@@ -154,7 +154,7 @@ INLINE_INHERITED_MEMB = NO
# path before files name in the file list and in the header files. If set
# to NO the shortest path that makes the file name unique will be used.
-FULL_PATH_NAMES = YES
+FULL_PATH_NAMES = NO
# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
# can be used to strip a user-defined part of the path. Stripping is
@@ -180,7 +180,7 @@ STRIP_FROM_INC_PATH =
# (but less readable) file names. This can be useful if your file system
# doesn't support long names like on DOS, Mac, or CD-ROM.
-SHORT_NAMES = YES
+SHORT_NAMES = NO
# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
# will interpret the first line (until the first dot) of a JavaDoc-style
@@ -1031,7 +1031,7 @@ HTML_COLORSTYLE_GAMMA = 80
# page will contain the date and time when the page was generated. Setting
# this to NO can help when comparing the output of multiple runs.
-HTML_TIMESTAMP = YES
+HTML_TIMESTAMP = NO
# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
# documentation will contain sections that can be hidden and shown after the

21
opensubdiv-rpath.patch Normal file
View File

@ -0,0 +1,21 @@
--- OpenSubdiv-3_4_0/CMakeLists.txt.orig 2019-10-20 12:02:15.905162264 +0200
+++ OpenSubdiv-3_4_0/CMakeLists.txt 2019-10-20 12:27:26.934582395 +0200
@@ -132,18 +132,6 @@
endif()
-if (NOT CMAKE_COMPILER_IS_ICC)
- # Currently icc has a bug that asserts when linking rpaths containing long
- # sequences of ':' that this command causes. The consequence is that examples
- # built and installed using icc will not have an rpath pointing to the built
- # OSD library which they depend on and will have to set LD_LIBRARY_PATH instead.
- list(APPEND CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
-endif()
-
-# add the automatically determined parts of the RPATH
-# which point to directories outside the build tree to the install RPATH
-SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
-
# ensure that ARC is shown as enabled in the Xcode UI
if(CMAKE_GENERATOR STREQUAL "Xcode")
set (CMAKE_XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC "YES")

113
opensubdiv.spec Normal file
View File

@ -0,0 +1,113 @@
# Force out of source build
%undefine __cmake_in_source_build
%global upstream_version 3_6_0
#%%global prerelease RC1
Name: opensubdiv
Version: 3.6.0
Release: %autorelease
Summary: High performance subdivision surface libraries
# The entire source is Pixar except:
#
# MIT:
# - glLoader/khrplatform.h
# - documentation/tipuesearch/
License: Pixar AND MIT
#URL: http://graphics.pixar.com/%%{name}
Url: https://github.com/PixarAnimationStudios/OpenSubdiv
Source: https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v%{upstream_version}%{?prerelease}/%{name}-%{version}%{?prerelease}.tar.gz
# fix linking against libdl (see https://github.com/PixarAnimationStudios/OpenSubdiv/issues/1196)
Patch: %{name}-rpath.patch
# make doxygen generated files consistent across builds & architectures
Patch: opensubdiv-3.5.0-reproducible-docs.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: graphviz-devel
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(glfw3)
BuildRequires: pkgconfig(OpenCL)
BuildRequires: pkgconfig(Ptex)
BuildRequires: pkgconfig(python3)
BuildRequires: tbb2020.3-devel
BuildRequires: pkgconfig(zlib)
BuildRequires: python3dist(pygments)
# Drop libs subpackage
Obsoletes: %{name}-libs < %{version}-%{release}
# Doxygen-generated HTML documentation is not suitable for packaging; see
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
Obsoletes: %{name}-doc < 3.5.0-10
%description
OpenSubdiv is a set of open source libraries that implement high performance
subdivision surface (subdiv) evaluation on massively parallel CPU and
GPU architectures.
This codepath is optimized for drawing deforming subdivs with static topology
at interactive framerates.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -p1 -n OpenSubdiv-%{upstream_version}%{?prerelease}
# work around linking glitch
# https://github.com/PixarAnimationStudios/OpenSubdiv/issues/1196
sed -i 's|${PLATFORM_GPU_LIBRARIES}|${PLATFORM_GPU_LIBRARIES} ${CMAKE_DL_LIBS}|' opensubdiv/CMakeLists.txt
# https://docs.fedoraproject.org/en-US/packaging-guidelines/JavaScript/#_compilationminification
find . -type f -name '*.min.js' -print -delete
%build
%cmake \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_LIBDIR_BASE=%{_libdir} \
-DGLEW_LOCATION=%{_libdir} \
-DGLFW_LOCATION=%{_libdir} \
-DNO_CLEW=1 \
-DNO_CUDA=1 \
-DNO_DOC=1\
-DNO_EXAMPLES=1 \
-DNO_GLFW_X11=1 \
-DNO_OPENCL=1 \
-DNO_METAL=1 \
-DNO_REGRESSION=1 \
-DNO_TUTORIALS=1 \
-DOpenGL_GL_PREFERENCE=GLVND \
-DTBB_LOCATION=%{_libdir}
%cmake_build
%{?_with_tests:
%check
make test V=1
}
%install
%cmake_install
# Remove static files
find %{buildroot} -name '*.la' -delete
find %{buildroot} -name '*.a' -delete
%files
%license LICENSE.txt
%doc README.md
%{_libdir}/*.so.%{version}
%files devel
%doc NOTICE.txt README.md
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/cmake/OpenSubdiv/
%changelog
%autochangelog

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (opensubdiv-3.6.0.tar.gz) = a976733a26e2c0f6510f59d4372b1b33f5404a9d536bcbd6ae3a1a0ffd1bba5495df7108bebc854d5c069575772c97c0d00f0f16f79e87611376ba84e9ae7a4b