Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Björn Esser
173256dcdf
Drop manual release override
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-11-22 00:53:10 +01:00
Björn Esser
3aea26e667
Add manual release override
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-11-22 00:50:04 +01:00
Björn Esser
0eea445e95
Rebuild without soname bootstrap
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-11-22 00:19:53 +01:00
Björn Esser
295b6ba24c
Fix BuildRequires when bumping soname
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-11-22 00:10:11 +01:00
Björn Esser
d0151dc8b7
Set explicit soname
Also implement bootstrap logic for soname bumps

Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-11-22 00:01:51 +01:00

View file

@ -1,3 +1,8 @@
# Uncomment for special build to rebuild aom on bumped soname.
#global new_soname 1
%global sover_old 0.6
%global sover 0.6
%global gdk_pixbuf_moduledir $(pkgconf gdk-pixbuf-2.0 --variable=gdk_pixbuf_moduledir)
# https://github.com/libjxl/libjxl/issues/63
@ -9,7 +14,7 @@ decoder).}
Name: jpegxl
Version: 0.6.1
Release: %autorelease
Release: %autorelease %{?new_soname:-p -e 0~sonamebump}
Summary: JPEG XL image format reference implementation
# Main library: BSD
@ -52,6 +57,9 @@ BuildRequires: pkgconfig(OpenEXR)
BuildRequires: pkgconfig(Qt5)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(zlib)
%if 0%{?new_soname}
BuildRequires: libjxl < %{version}
%endif
# Header-only library to be directly included in the project's source tree
Provides: bundled(lodepng) = 0-0.1.20210522git48e5364
@ -142,6 +150,12 @@ rm -rf third_party/
%cmake_install
rm -v %{buildroot}%{_libdir}/*.a
%if 0%{?new_soname}
cp -p %{_libdir}/libjxl.so.%{sover_old}* \
%{_libdir}/libjxl_threads.so.%{sover_old}* \
%{buildroot}%{_libdir}
%endif
%files -n libjxl-utils
%doc CONTRIBUTING.md CONTRIBUTORS README.md
%{_bindir}/cjxl
@ -156,8 +170,12 @@ rm -v %{buildroot}%{_libdir}/*.a
%files -n libjxl
%license LICENSE
%{_libdir}/libjxl.so.0*
%{_libdir}/libjxl_threads.so.0*
%{_libdir}/libjxl.so.%{sover}*
%{_libdir}/libjxl_threads.so.%{sover}*
%if 0%{?new_soname}
%{_libdir}/libjxl.so.%{sover_old}*
%{_libdir}/libjxl_threads.so.%{sover_old}*
%endif
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/jxl.thumbnailer
%{_datadir}/mime/packages/image-jxl.xml