public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Orion Poplawski <orion@nwra.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libaec] epel9: Split static cmake targets into separate export
Date: Thu, 15 Oct 2026 11:39:13 GMT	[thread overview]
Message-ID: <179206435338.1.1414407844059840630.rpms-libaec-9245f315f4ed@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-10-15 11:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179206435338.1.1414407844059840630.rpms-libaec-9245f315f4ed@fedoraproject.org \
    --to=orion@nwra.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox