New release v2021.7

https://github.com/coreos/rpm-ostree/releases/tag/v2021.7
This commit is contained in:
Jonathan Lebon 2021-07-19 09:59:09 -04:00
parent 13a6c2ff4c
commit 41d9f72ece
4 changed files with 50 additions and 27 deletions

1
.gitignore vendored
View File

@ -102,3 +102,4 @@
/rpm-ostree-2021.4.tar.xz /rpm-ostree-2021.4.tar.xz
/rpm-ostree-2021.5.tar.xz /rpm-ostree-2021.5.tar.xz
/rpm-ostree-2021.6.tar.xz /rpm-ostree-2021.6.tar.xz
/rpm-ostree-2021.7.tar.xz

View File

@ -22,7 +22,7 @@ done
main() { main() {
local upstream local upstream
upstream=$(get_parsed_spec_field URL) upstream=$(get_parsed_spec_field URL)
curl -Lo rpm-ostree.spec.new "$upstream/raw/master/packaging/rpm-ostree.spec.in" curl -Lo rpm-ostree.spec.new "$upstream/raw/main/packaging/rpm-ostree.spec.in"
sed -ne '/%changelog/,$ p' rpm-ostree.spec >> rpm-ostree.spec.new sed -ne '/%changelog/,$ p' rpm-ostree.spec >> rpm-ostree.spec.new
if [ -n "${KEEP_V_R}" ]; then if [ -n "${KEEP_V_R}" ]; then

View File

@ -3,8 +3,8 @@
Summary: Hybrid image/package system Summary: Hybrid image/package system
Name: rpm-ostree Name: rpm-ostree
Version: 2021.6 Version: 2021.7
Release: 3%{?dist} Release: 1%{?dist}
License: LGPLv2+ License: LGPLv2+
URL: https://github.com/coreos/rpm-ostree URL: https://github.com/coreos/rpm-ostree
# This tarball is generated via "cd packaging && make -f Makefile.dist-packaging dist-snapshot" # This tarball is generated via "cd packaging && make -f Makefile.dist-packaging dist-snapshot"
@ -27,15 +27,20 @@ BuildRequires: rust
# RHEL8 doesn't ship zchunk today. See also the comments # RHEL8 doesn't ship zchunk today. See also the comments
# in configure.ac around this as libdnf/librepo need to be in # in configure.ac around this as libdnf/librepo need to be in
# sync, and today we bundle libdnf but not librepo. # sync, and today we bundle libdnf but not librepo. Also
# flip the rpmdb default to be bdb.
%if 0%{?rhel} && 0%{?rhel} <= 8 %if 0%{?rhel} && 0%{?rhel} <= 8
%bcond_with zchunk %bcond_with zchunk
%define rpmdb_default "--enable-bdb-rpmdb-default"
%else %else
%bcond_without zchunk %bcond_without zchunk
%endif %endif
%if 0%{?fedora} >= 34 # See https://fedoraproject.org/wiki/Changes/Sqlite_Rpmdb
%define sqlite_rpmdb_default "--enable-sqlite-rpmdb-default" # https://bugzilla.redhat.com/show_bug.cgi?id=1938928
# https://github.com/openshift/os/issues/552
%if 0%{?fedora} <= 33
%define rpmdb_default "--enable-bdb-rpmdb-default"
%endif %endif
# For the autofiles bits below # For the autofiles bits below
@ -49,10 +54,10 @@ BuildRequires: gnome-common
BuildRequires: /usr/bin/g-ir-scanner BuildRequires: /usr/bin/g-ir-scanner
# Core requirements # Core requirements
# One way to check this: `objdump -p /path/to/rpm-ostree | grep LIBOSTREE` and pick the highest (though that might miss e.g. new struct members) # One way to check this: `objdump -p /path/to/rpm-ostree | grep LIBOSTREE` and pick the highest (though that might miss e.g. new struct members)
BuildRequires: pkgconfig(ostree-1) >= 2020.7 BuildRequires: pkgconfig(ostree-1) >= 2021.1
BuildRequires: pkgconfig(polkit-gobject-1) BuildRequires: pkgconfig(polkit-gobject-1)
BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(rpm) >= 4.16.0 BuildRequires: pkgconfig(rpm) >= 4.14.0
BuildRequires: pkgconfig(libarchive) BuildRequires: pkgconfig(libarchive)
BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(libsystemd)
BuildRequires: libcap-devel BuildRequires: libcap-devel
@ -73,33 +78,47 @@ BuildRequires: pkgconfig(check)
# but duplicating to be clear) # but duplicating to be clear)
BuildRequires: pkgconfig(libsolv) BuildRequires: pkgconfig(libsolv)
# We need g++ for libdnf #########################################################################
BuildRequires: gcc-c++ # libdnf build deps #
# #
# Copy/pasted from libdnf/libdnf.spec. Removed the irrelevant bits like #
# valgrind, rhsm, swig, python, and sanitizer stuff. #
#########################################################################
# more libdnf build deps (see libdnf's spec for versions; maintain ordering)
%global libsolv_version 0.7.17 %global libsolv_version 0.7.17
%global libmodulemd_version 2.11.2-2 %global libmodulemd_version 2.11.2-2
%global librepo_version 1.13.0 %global librepo_version 1.13.1
%global swig_version 3.0.12
BuildRequires: swig >= %{swig_version} BuildRequires: cmake
BuildRequires: pkgconfig(modulemd-2.0) >= %{libmodulemd_version} BuildRequires: gcc
BuildRequires: pkgconfig(librepo) >= %{librepo_version} BuildRequires: gcc-c++
BuildRequires: libsolv-devel >= %{libsolv_version} BuildRequires: libsolv-devel >= %{libsolv_version}
BuildRequires: pkgconfig(json-c) BuildRequires: pkgconfig(librepo) >= %{librepo_version}
BuildRequires: pkgconfig(cppunit) BuildRequires: pkgconfig(check)
BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(gio-unix-2.0) >= 2.46.0
BuildRequires: pkgconfig(smartcols) BuildRequires: pkgconfig(gtk-doc)
BuildRequires: rpm-devel >= 4.11.0
%if %{with zchunk} %if %{with zchunk}
BuildRequires: pkgconfig(zck) >= 0.9.11 BuildRequires: pkgconfig(zck) >= 0.9.11
%endif %endif
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(cppunit)
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(modulemd-2.0) >= %{libmodulemd_version}
BuildRequires: pkgconfig(smartcols)
BuildRequires: gettext
BuildRequires: gpgme-devel BuildRequires: gpgme-devel
# Runtime libdnf deps
Requires: libmodulemd%{?_isa} >= %{libmodulemd_version} Requires: libmodulemd%{?_isa} >= %{libmodulemd_version}
Requires: libsolv%{?_isa} >= %{libsolv_version} Requires: libsolv%{?_isa} >= %{libsolv_version}
Requires: librepo%{?_isa} >= %{librepo_version} Requires: librepo%{?_isa} >= %{librepo_version}
#########################################################################
# end of libdnf build deps #
#########################################################################
# For now...see https://github.com/projectatomic/rpm-ostree/pull/637 # For now...see https://github.com/projectatomic/rpm-ostree/pull/637
# and https://github.com/fedora-infra/fedmsg-atomic-composer/pull/17 # and https://github.com/fedora-infra/fedmsg-atomic-composer/pull/17
# etc. We'll drop this dependency at some point in the future when # etc. We'll drop this dependency at some point in the future when
@ -133,10 +152,8 @@ The %{name}-devel package includes the header files for %{name}-libs.
%prep %prep
%autosetup -Sgit -n %{name}-%{version} %autosetup -Sgit -n %{name}-%{version}
# We hit "LLVM ERROR: out of memory" with LTO on 32 bit
# https://bugzilla.redhat.com/show_bug.cgi?id=1974927
%if 0%{?__isa_bits} == 32 %if 0%{?__isa_bits} == 32
sed -ie 's,^lto = true,# disabled: lto = true,' Cargo.toml sed -ie 's,^lto = true,lto = false,' Cargo.toml
%endif %endif
%build %build
@ -144,8 +161,10 @@ env NOCONFIGURE=1 ./autogen.sh
# Since we're hybrid C++/Rust we need to propagate this manually; # Since we're hybrid C++/Rust we need to propagate this manually;
# the %%configure macro today assumes (reasonably) that one is building # the %%configure macro today assumes (reasonably) that one is building
# C/C++ and sets C{,XX}FLAGS # C/C++ and sets C{,XX}FLAGS
%if 0%{?build_rustflags:1}
export RUSTFLAGS="%{build_rustflags}" export RUSTFLAGS="%{build_rustflags}"
%configure --disable-silent-rules --enable-gtk-doc %{?sqlite_rpmdb_default} %{?with_sanitizers:--enable-sanitizers} %endif
%configure --disable-silent-rules --enable-gtk-doc %{?rpmdb_default} %{?with_sanitizers:--enable-sanitizers}
%make_build %make_build
@ -209,8 +228,11 @@ $PYTHON autofiles.py > files.devel \
%files libs -f files.lib %files libs -f files.lib
%files devel -f files.devel %files devel -f files.devel
%changelog %changelog
* Mon Jul 19 2021 Jonathan Lebon <jonathan@jlebon.com> - 2021.7-1
- New release v2021.7
https://github.com/coreos/rpm-ostree/releases/tag/v2021.7
* Sat Jul 10 2021 Björn Esser <besser82@fedoraproject.org> - 2021.6-3 * Sat Jul 10 2021 Björn Esser <besser82@fedoraproject.org> - 2021.6-3
- Rebuild for versioned symbols in json-c - Rebuild for versioned symbols in json-c

View File

@ -1 +1 @@
SHA512 (rpm-ostree-2021.6.tar.xz) = 3e87b16d551a3364bd72ea85261cdb13cdab40f08b8513e0ee4a226730febf9117c1ff37230e30eac8d10694631adde513f9070031a929ed4c65cca6defc0f97 SHA512 (rpm-ostree-2021.7.tar.xz) = 9333ceed2df8f5a298b709313bb54f96fe3fb816ee28e1e23ac3b623fb6b85b28826554f77cbb535edd5487098ca32ce2f1f53c3164668524c138929c185df44