diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..44fdd77 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,34 @@ + +# We want to use the following Packit functions in the zlib-ng package: +# koji_build, bodhi_update, pull_from_upstream + +# See the documentation for more information: +# https://packit.dev/docs/configuration/ + +specfile_path: zlib-ng.spec + +# name in upstream package repository or registry (e.g. in PyPI) +upstream_package_name: zlib-ng +upstream_project_url: https://github.com/zlib-ng/zlib-ng/ +# downstream (Fedora) RPM package name +downstream_package_name: zlib-ng + +jobs: + - job: pull_from_upstream + trigger: release + dist_git_branches: + - fedora-latest + - fedora-rawhide + + - job: koji_build + trigger: commit + allowed_pr_authors: ["ljavorsk", "tuliom", "aekoroglu", "packit"] + allowed_committers: ["ljavorsk", "tuliom", "aekoroglu", "packit"] + dist_git_branches: + - fedora-latest + - fedora-rawhide + + - job: bodhi_update + trigger: commit + dist_git_branches: + - fedora-latest # rawhide updates are created automatically diff --git a/gating.yaml b/gating.yaml index 2fb97b2..93e252b 100644 --- a/gating.yaml +++ b/gating.yaml @@ -8,6 +8,5 @@ decision_contexts: subject_type: koji_build rules: - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} - - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpmdeplint.functional} - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpminspect.static-analysis} - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.installability.functional} diff --git a/zlib-ng.spec b/zlib-ng.spec index c7ba136..1f0dce8 100644 --- a/zlib-ng.spec +++ b/zlib-ng.spec @@ -19,7 +19,7 @@ Name: zlib-ng Version: 2.2.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Zlib replacement with optimizations License: Zlib Url: https://github.com/zlib-ng/zlib-ng @@ -118,7 +118,7 @@ _EOF_ # defining BUILD_SHARED_LIBS disables the static library %undefine _cmake_shared_libs # Disable new strategies in order to keep compatibility with zlib. -%cmake %{cmake_param} -DZLIB_COMPAT=ON -DWITH_NEW_STRATEGIES=OFF +%cmake %{cmake_param} -DZLIB_COMPAT=ON -DWITH_NEW_STRATEGIES=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON %cmake_build %endif @@ -215,6 +215,9 @@ CHOST=%{target_cpu}-%{cpu_vendor}-linux-gnu sh test/abicheck.sh --zlib-compat %changelog +* Tue Feb 25 2025 Tulio Magno Quites Machado Filho - 2.2.3-2 +- Build compat-static libraries with -fPIC + * Wed Jan 08 2025 Tulio Magno Quites Machado Filho - 2.2.3-1 - Update to version 2.2.3