update spec file

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 2025-06-20 02:44:15 +02:00
parent 99a0986987
commit 6a42dac842
1 changed files with 15 additions and 34 deletions

View File

@ -1,8 +1,8 @@
## START: Set by rpmautospec
## (rpmautospec version 0.3.5)
## (rpmautospec version 0.7.3)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 9;
release_number = 5;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
@ -11,26 +11,26 @@
# Build with aom
%bcond_without aom
# Build SVT-AV1
%ifarch x86_64
%bcond_without svt
%endif
%if 0%{?rhel} && 0%{?rhel} < 9
%bcond_with rav1e
%else
%bcond_without rav1e
%endif
%bcond_without check

Name: libavif
Version: 0.11.1
Release: %autorelease
Summary: Library for encoding and decoding .avif files

License: BSD-2-Clause
License: BSD
URL: https://github.com/AOMediaCodec/libavif
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires: cmake
BuildRequires: gcc-c++
%{?with_check:BuildRequires: gtest-devel}
BuildRequires: nasm
%if %{with aom}
BuildRequires: pkgconfig(aom)
@ -69,7 +69,7 @@ This package holds the commandline tools to encode and decode AVIF files.
%package -n avif-pixbuf-loader
Summary: AVIF image loader for GTK+ applications
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
Requires: gdk-pixbuf2%{?_isa}
Requires: gdk-pixbuf2

%description -n avif-pixbuf-loader
Avif-pixbuf-loader contains a plugin to load AVIF images in GTK+ applications.
@ -85,18 +85,12 @@ Avif-pixbuf-loader contains a plugin to load AVIF images in GTK+ applications.
%{?with_rav1e:-DAVIF_CODEC_RAV1E=1} \
%{?with_svt:-DAVIF_CODEC_SVT=1} \
-DAVIF_BUILD_APPS=1 \
-DAVIF_BUILD_GDK_PIXBUF=1 \
%{?with_check:-DAVIF_BUILD_TESTS=1 -DAVIF_ENABLE_GTEST=1}
-DAVIF_BUILD_GDK_PIXBUF=1
%cmake_build

%install
%cmake_install

%if %{with check}
%check
%ctest
%endif

%files
%license LICENSE
# Do not glob the soname
@ -118,39 +112,25 @@ Avif-pixbuf-loader contains a plugin to load AVIF images in GTK+ applications.
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-avif.so

%changelog
* Fri Mar 17 2023 Dominik 'Rathann' Mierzejewski <dominik@greysector.net> - 0.11.1-9
- ensure gdk-pixbuf2 dependency matches avif-pixbuf-loader arch

* Fri Mar 17 2023 Dominik 'Rathann' Mierzejewski <dominik@greysector.net> - 0.11.1-8
- enable tests

* Fri Mar 17 2023 Dominik 'Rathann' Mierzejewski <dominik@greysector.net> - 0.11.1-7
- enable svt-av1 support on all arches (resolves rhbz#2162675)

* Thu Feb 23 2023 Andreas Schneider <asn@cryptomilk.org> - 0.11.1-6
- Update License to SPDX expressions

* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
## START: Generated by rpmautospec
* Wed Nov 06 2024 Fabio Valentini <decathorpe@gmail.com> - 0.11.1-5
- Rebuild for dav1d 1.5.0

* Thu Dec 01 2022 Kalev Lember <klember@redhat.com> - 0.11.1-4
- Enable rav1e support for EPEL 9

* Wed Nov 30 2022 Kalev Lember <klember@redhat.com> - 0.11.1-3
* Thu Dec 01 2022 Kalev Lember <klember@redhat.com> - 0.11.1-3
- Fix rav1e conditional for non-RHEL

* Thu Nov 03 2022 Kalev Lember <klember@redhat.com> - 0.11.1-2
* Wed Nov 16 2022 Kalev Lember <klember@redhat.com> - 0.11.1-2
- Fix typo in devel package summary

* Sun Oct 23 2022 Robert-André Mauchin <zebob.m@gmail.com> - 0.11.1-1
* Wed Nov 16 2022 Robert-André Mauchin <zebob.m@gmail.com> - 0.11.1-1
- Update to 0.11.1

* Sun Oct 23 2022 Robert-André Mauchin <zebob.m@gmail.com> - 0.10.1-4
* Sun Jul 10 2022 Robert-André Mauchin <zebob.m@gmail.com> - 0.10.1-3
- Add condition for rav1e for EPEL integration - Close: rhbz#2071940

* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Fri Jun 24 2022 Stephen Gallagher <sgallagh@redhat.com> - 0.10.1-2
- Rebuild for libdav1d soname bump in ELN

@ -233,3 +213,4 @@ Avif-pixbuf-loader contains a plugin to load AVIF images in GTK+ applications.
* Sun Feb 16 2020 Andreas Schneider <asn@redhat.com> - 0.5.3-1
- Initial version

## END: Generated by rpmautospec