public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libaec] epel9: Split static cmake targets into separate export
@ 2026-10-15 11:39 Orion Poplawski
0 siblings, 0 replies; only message in thread
From: Orion Poplawski @ 2026-10-15 11:39 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libaec
Branch : epel9
Commit : 9245f315f4ed34378cab22bd08f228347cf6d62b
Author : Orion Poplawski <orion@nwra.com>
Date : 2025-12-14T14:12:46-07:00
Stats : +78/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libaec/c/9245f315f4ed34378cab22bd08f228347cf6d62b?branch=epel9
Log:
Split static cmake targets into separate export
---
diff --git a/libaec-static.patch b/libaec-static.patch
new file mode 100644
index 0000000..020b33c
--- /dev/null
+++ b/libaec-static.patch
@@ -0,0 +1,70 @@
+diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt
+index 8617084..16cace7 100644
+--- a/packaging/CMakeLists.txt
++++ b/packaging/CMakeLists.txt
+@@ -18,21 +18,28 @@ install(FILES
+ set(TARGETS_EXPORT)
+ if(BUILD_SHARED_LIBS)
+ set(TARGETS_EXPORT aec-shared-objects sz-shared-objects aec-shared sz-shared)
++
++ install(TARGETS ${TARGETS_EXPORT}
++ EXPORT libaec_shared_targets
++ PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
++
++ install(EXPORT libaec_shared_targets
++ DESTINATION "${libaec_INSTALL_CMAKEDIR}"
++ NAMESPACE libaec::
++ FILE libaec_shared-targets.cmake)
+ endif()
+ if(BUILD_STATIC_LIBS)
+- set(TARGETS_EXPORT
+- ${TARGETS_EXPORT}
+- aec-static-objects sz-static-objects aec-static sz-static)
+-endif()
++ set(TARGETS_EXPORT aec-static-objects sz-static-objects aec-static sz-static)
+
+-install(TARGETS ${TARGETS_EXPORT}
+- EXPORT libaec_targets
+- PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
++ install(TARGETS ${TARGETS_EXPORT}
++ EXPORT libaec_static_targets
++ PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
+
+-install(EXPORT libaec_targets
+- DESTINATION "${libaec_INSTALL_CMAKEDIR}"
+- NAMESPACE libaec::
+- FILE libaec-targets.cmake)
++ install(EXPORT libaec_shared_targets
++ DESTINATION "${libaec_INSTALL_CMAKEDIR}"
++ NAMESPACE libaec::
++ FILE libaec_static-targets.cmake)
++endif()
+
+ # Cpack configuration mainly for Windows installer
+ set(CPACK_PACKAGE_NAME "libaec")
+diff --git a/packaging/libaec-config.cmake b/packaging/libaec-config.cmake
+index 6ef9350..9fcb090 100644
+--- a/packaging/libaec-config.cmake
++++ b/packaging/libaec-config.cmake
+@@ -35,10 +35,10 @@
+ # AEC library (according to the value of
+ # libaec_USE_STATIC_LIBS).
+
+-include(${CMAKE_CURRENT_LIST_DIR}/libaec-targets.cmake)
+-
+ # Alias static or shared targets depending on libaec_USE_STATIC_LIBS
+ if(libaec_USE_STATIC_LIBS)
++ include(${CMAKE_CURRENT_LIST_DIR}/libaec_static-targets.cmake)
++
+ if(TARGET libaec::aec-static AND TARGET libaec::sz-static)
+ add_library(libaec::aec ALIAS libaec::aec-static)
+ add_library(libaec::sz ALIAS libaec::sz-static)
+@@ -48,6 +48,8 @@ if(libaec_USE_STATIC_LIBS)
+ set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
+ endif()
+ else()
++ include(${CMAKE_CURRENT_LIST_DIR}/libaec_shared-targets.cmake)
++
+ if(TARGET libaec::aec-shared AND TARGET libaec::sz-shared)
+ add_library(libaec::aec ALIAS libaec::aec-shared)
+ add_library(libaec::sz ALIAS libaec::sz-shared)
diff --git a/libaec.spec b/libaec.spec
index d8c380d..d1c62e6 100644
--- a/libaec.spec
+++ b/libaec.spec
@@ -1,10 +1,12 @@
Name: libaec
Version: 1.1.4
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Adaptive Entropy Coding library
License: LicenseRef-Callaway-BSD
Url: https://gitlab.dkrz.de/k202009/libaec
Source0: https://gitlab.dkrz.de/k202009/libaec/-/archive/v%{version}/libaec-v%{version}.tar.gz
+# Split static cmake targets into separate export
+Patch: libaec-static.patch
BuildRequires: gcc
BuildRequires: cmake >= 3.1
@@ -60,11 +62,16 @@ Static variant of libaec (Adaptive Entropy Coding library).
%{_includedir}/*.h
%{_libdir}/lib*.so
%{_libdir}/cmake/%{name}
+%exclude %{_libdir}/cmake/%{name}/*_static*
%files static
%{_libdir}/lib*.a
+%{_libdir}/cmake/%{name}/*_static*
%changelog
+* Sun Dec 14 2025 Orion Poplawski <orion@nwra.com> - 1.1.4-4
+- Split static cmake targets into separate export
+
* Wed Aug 20 2025 Christoph Junghans <junghans@votca.org> - 1.1.4-3
- Add static sub-package
- Fixes: rhbz#2387206
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-15 11:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15 11:39 [rpms/libaec] epel9: Split static cmake targets into separate export Orion Poplawski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox