[packages/ptex] - updated to 2.5.4 (new soname, libdeflate support)
qboosh
qboosh at pld-linux.org
Mon Sep 14 20:10:42 CEST 2026
commit 2650f3ec89343c19ccbcae9487465cede21678fd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Sep 14 20:10:53 2026 +0200
- updated to 2.5.4 (new soname, libdeflate support)
ptex-shared.patch | 14 ++++++++++++++
ptex.spec | 21 +++++++++++++--------
2 files changed, 27 insertions(+), 8 deletions(-)
---
diff --git a/ptex.spec b/ptex.spec
index 8d23508..8520160 100644
--- a/ptex.spec
+++ b/ptex.spec
@@ -1,22 +1,24 @@
#
# Conditional build:
-%bcond_without apidocs # do not build and package API docs
+%bcond_without apidocs # API documentation
Summary: Ptex - texture mapping system by Walt Disney Animation Studios
Summary(pl.UTF-8): Ptex - system odwzorowywania tekstur z Walt Disney Animation Studios
Name: ptex
-Version: 2.4.3
+Version: 2.5.4
Release: 1
License: BSD
Group: Libraries
#Source0Download: https://github.com/wdas/ptex/tags
Source0: https://github.com/wdas/ptex/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: dcea5a45ab22315c8dfb294682618e18
+# Source0-md5: ea4862e1107b9efce5ff87c466d015df
Patch0: %{name}-pc.patch
+Patch1: %{name}-shared.patch
URL: http://ptex.us/
-BuildRequires: cmake >= 3.8.0
+BuildRequires: cmake >= 3.10.0
%{?with_apidocs:BuildRequires: doxygen}
-BuildRequires: libstdc++-devel
+BuildRequires: libdeflate-devel
+BuildRequires: libstdc++-devel >= 6:7
BuildRequires: pkgconfig
BuildRequires: rpm-build >= 4.6
BuildRequires: zlib-devel
@@ -49,7 +51,8 @@ Summary: Header files for Ptex library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Ptex
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: libstdc++-devel
+Requires: libdeflate-devel
+Requires: libstdc++-devel >= 6:7
Requires: zlib-devel
%description devel
@@ -63,6 +66,7 @@ Summary: Static Ptex library
Summary(pl.UTF-8): Statyczna biblioteka Ptex
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
+Requires: libdeflate-static
%description static
Static Ptex library.
@@ -85,6 +89,7 @@ Dokumentacja API biblioteki Ptex.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
# see CMakeLists.txt:47-58 (if (NOT DEFINED PTEX_VER) ...)
echo %{version} > version
@@ -118,11 +123,11 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc LICENSE src/doc/filterfootprint.txt
%attr(755,root,root) %{_bindir}/ptxinfo
-%attr(755,root,root) %{_libdir}/libPtex.so.2.4
+%{_libdir}/libPtex.so.2.5
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libPtex.so
+%{_libdir}/libPtex.so
%{_includedir}/Ptex*.h
%{_libdir}/cmake/Ptex
%{_pkgconfigdir}/ptex.pc
diff --git a/ptex-shared.patch b/ptex-shared.patch
new file mode 100644
index 0000000..469e2d7
--- /dev/null
+++ b/ptex-shared.patch
@@ -0,0 +1,14 @@
+--- ptex-2.5.4/CMakeLists.txt.orig 2026-08-20 00:24:34.000000000 +0200
++++ ptex-2.5.4/CMakeLists.txt 2026-09-14 19:43:14.716769264 +0200
+@@ -107,11 +107,7 @@ if (MSVC)
+ endif()
+
+ # Set the default Ptex library to use for tools and tests.
+-if (PTEX_BUILD_STATIC_LIBS)
+- set(PTEX_LIBRARY Ptex_static)
+-else()
+ set(PTEX_LIBRARY Ptex_dynamic)
+-endif()
+
+ if (${PRMAN_15_COMPATIBLE_PTEX})
+ add_definitions(-DPTEX_NO_LARGE_METADATA_BLOCKS)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ptex.git/commitdiff/2650f3ec89343c19ccbcae9487465cede21678fd
More information about the pld-cvs-commit
mailing list